PDA

View Full Version : [ubuntu] Grub cannot load; Can't boot EITHER OS



cantInstallUbu
January 31st, 2010, 08:46 AM
I've tried reading through a lot of these threads and I still haven't found one that seems to solve my issue yet. (Then again, I'm also a n00b and may just not know what I'm dealing with).

I was trying to install Ubuntu 9.10 through the Wubi, and for a while it was working. Then I got myself into a situation (I don't remember how, probably through an update to grub) that all I got was the sh:grub> menu. After trying some of the solutions I saw in other threads on the subject and trying to do a grub-install, I accidentally got myself into a situation where now when the computer boots up and tries to load grub, it complains file not found and leaves in at a grub recovery> screen, but doesn't seem to accept ANY commands other than ls. I also booted up from the Ubuntu CD and tried deleting the wubi installation to maybe get rid of grub that way, but no luck - it still tries to load grub and complains file not found. So now I can't boot into my Vista and I don't have any remaining Ubuntu installation on the HD.

1) Is there any way to uninstall grub and get back to the regular windows bootloader from here? I don't have recovery disks, since the people at Dell decided to put everything on a RECOVERY partition.
2) Is there any way I can just fix grub to let me boot up normally?

I've run the boot_info.sh script twice, once when I just had the sh:grub> command and nothing seriously wrong, and the second time when I tried reinstalling grub and then couldn't boot ANYWHERE. I've copied them here in order, if that helps.

Thanks!


============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda
sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Dell Utility: Fat16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /Windows/System32/winload.exe

sda3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/wubildr.mbr /ubuntu/winboot/wubildr.mbr
/ubuntu/disks/root.disk /ubuntu/disks/swap.disk

sda3/Wubi: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x08000000

Partition Boot Start End Size Id System

/dev/sda1 63 160,649 160,587 de Dell Utility
/dev/sda2 161,792 21,133,311 20,971,520 7 HPFS/NTFS
/dev/sda3 * 21,133,312 625,139,711 604,006,400 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 ce985a05-d804-4e11-ade4-29ad21d1c9c2 ext4
/dev/sda1 07D9-031F vfat DellUtility
/dev/sda2 E84EC8064EC7CB8E ntfs RECOVERY
/dev/sda3 3832CB2E32CAF044 ntfs OS

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (rw)
/dev/loop0 /rofs squashfs (rw)


======================== sda3/Wubi/boot/grub/grub.cfg: ========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set 3832cb2e32caf044
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda3 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set 3832cb2e32caf044
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda3 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda3)" {
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set 3832cb2e32caf044
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

============================= sda3/Wubi/etc/fstab: =============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0

================= sda3/Wubi: Location of files loaded by Grub: =================


.0GB: boot/grub/grub.cfg
.0GB: boot/initrd.img-2.6.31-14-generic
.0GB: boot/vmlinuz-2.6.31-14-generic
.0GB: initrd.img
.0GB: vmlinuz

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #3 for /boot/grub.
sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Dell Utility: Fat16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /Windows/System32/winload.exe

sda3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/wubildr.mbr

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x08000000

Partition Boot Start End Size Id System

/dev/sda1 63 160,649 160,587 de Dell Utility
/dev/sda2 161,792 21,133,311 20,971,520 7 HPFS/NTFS
/dev/sda3 * 21,133,312 625,139,711 604,006,400 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 07D9-031F vfat DellUtility
/dev/sda2 E84EC8064EC7CB8E ntfs RECOVERY
/dev/sda3 3832CB2E32CAF044 ntfs OS

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (rw)
/dev/loop0 /rofs squashfs (rw)

meierfra.
January 31st, 2010, 10:57 AM
an update to grub) that all I got was the sh:grub> menu.
This was caused by a bug in Grub2 , which can be fixed fairly easily. See

https://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Wubi_9.10

But its to late for that.


1) Is there any way to uninstall grub and get back to the regular windows bootloader from here?
Sure. This will install a windows style MBR:


sudo apt-get install lilo
ignore the message and warning you get. Just press enter.
and then

sudo lilo -M /dev/sda mbr




2) Is there any way I can just fix grub to let me boot up normally?
You can do that too. But since you don't have Wubi installed any more, that would not make much sense.