Justin312
September 10th, 2009, 12:04 AM
Hello,
I just finished re-installing Windows and (as expected) grub doesn't work anymore.
I've tried everything I can to make it work but it just won't re-load. I've tried a few permutation of grub-install (from live CD) as well as (as a last resort) auto grub boot. None of these have worked.
I'm going to paste the last set off things I tried below from the live CD (the first time around I tried the same thing without the binding). There's something going on I just can't get.
Please help!
Justin
mount /dev/hda5 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
chroot /mnt
grub> find /boot/grub/stage1
(hd0,5)
grub> root (hd0,5)
grub> setup (hd0,5)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,5)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,5)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,5) /boot/grub/stage2 p /boot/grub/menu
.lst "... failed
Error 22: No such partition
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,5)/boot/grub/stage2
/boot/grub/menu.lst"... failed
Error 22: No such partition
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# grub
Probing devices to guess BIOS drives. This may take a long time.
root@ubuntu:/home/ubuntu# fdisk -l
omitting empty partition (5)
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf7a1f7a1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3669 29471211 7 HPFS/NTFS
/dev/sda2 3670 7296 29133877+ 5 Extended
/dev/sda3 7153 7296 1156680 82 Linux swap / Solaris
/dev/sda5 3670 7152 27977134+ 83 Linux
I just finished re-installing Windows and (as expected) grub doesn't work anymore.
I've tried everything I can to make it work but it just won't re-load. I've tried a few permutation of grub-install (from live CD) as well as (as a last resort) auto grub boot. None of these have worked.
I'm going to paste the last set off things I tried below from the live CD (the first time around I tried the same thing without the binding). There's something going on I just can't get.
Please help!
Justin
mount /dev/hda5 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
chroot /mnt
grub> find /boot/grub/stage1
(hd0,5)
grub> root (hd0,5)
grub> setup (hd0,5)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,5)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,5)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,5) /boot/grub/stage2 p /boot/grub/menu
.lst "... failed
Error 22: No such partition
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,5)/boot/grub/stage2
/boot/grub/menu.lst"... failed
Error 22: No such partition
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# grub
Probing devices to guess BIOS drives. This may take a long time.
root@ubuntu:/home/ubuntu# fdisk -l
omitting empty partition (5)
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf7a1f7a1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3669 29471211 7 HPFS/NTFS
/dev/sda2 3670 7296 29133877+ 5 Extended
/dev/sda3 7153 7296 1156680 82 Linux swap / Solaris
/dev/sda5 3670 7152 27977134+ 83 Linux