vortmax
September 1st, 2010, 01:29 PM
I just upgraded my system to Lucid, which killed grub in the process. After much searching, I found the Grub 2 wiki and followed the instructions to rescue grub. However, now when I boot, I don't get any grub screen giving me the option to select a kernel. It just starts quickly dumping text to the screen (like the kernel is loading), then gives a warning about sdb not being able to be loaded (which is odd since, /boot and /root and all swap is on sda), then the signal to the monitor drops and it freezes like that.
Here are the steps that I took to repair grub:
first my fdisk -l output:
disk /dev/sda: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x689e689e
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 98248+ 83 Linux
/dev/sda2 14 5169 38979360 5 Extended
/dev/sda5 14 142 975208+ 82 Linux swap / Solaris
/dev/sda6 143 5169 38004088+ 83 Linux
Disk /dev/sdb: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcccdcccd
Device Boot Start End Blocks Id System
/dev/sdb1 1 30515 245111706 83 Linux
Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004ed39
Device Boot Start End Blocks Id System
/dev/sdc1 1 30515 245111706 83 Linux
sda1 is the partition with /boot and sda6 is /root
now the steps I took:
mount /dev/sda6 /mnt
mount /dev/sda1 /mnt/boot
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
chroot /mnt
update-grub
grub-install /dev/sda
any ideas on what to try next?
Here are the steps that I took to repair grub:
first my fdisk -l output:
disk /dev/sda: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x689e689e
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 98248+ 83 Linux
/dev/sda2 14 5169 38979360 5 Extended
/dev/sda5 14 142 975208+ 82 Linux swap / Solaris
/dev/sda6 143 5169 38004088+ 83 Linux
Disk /dev/sdb: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcccdcccd
Device Boot Start End Blocks Id System
/dev/sdb1 1 30515 245111706 83 Linux
Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004ed39
Device Boot Start End Blocks Id System
/dev/sdc1 1 30515 245111706 83 Linux
sda1 is the partition with /boot and sda6 is /root
now the steps I took:
mount /dev/sda6 /mnt
mount /dev/sda1 /mnt/boot
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
chroot /mnt
update-grub
grub-install /dev/sda
any ideas on what to try next?