sorry if this is in the wrong forum...
Hey guys. Fairly new user to Ubuntu though I've used it a few times over the years to save my data from Windows crashes.
Have been using latest Ubuntu build (8.10) exclusively for 3 weeks. Till I just reinstalled Windows XP...
Lost GRUB, so I can't boot into Ubuntu. I'm posting this off my Live! CD (Ubuntu 8.10). Followed the first two sets of instructions at:
But couldn't get either to work. I've included the terminal outputs below. Any help would be sooo appreciated. Thanks.
using the 1st method given:
grub> find /boot/grub/stage1
grub> root (hd0,7)
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.
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,7)/boot/grub/stage2 /bo
Error 22: No such partition
so I tried the 2nd method offered on the page. using the second method (I used >>> to include my commentary):
ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# fdisk -l
omitting empty partition (5)
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x14cb14cb
Device Boot Start End Blocks Id System
/dev/sda1 * 1 146 1172713+ 7 HPFS/NTFS
/dev/sda2 147 12161 96510487+ f W95 Ext'd (LBA)
/dev/sda5 147 219 586309+ 82 Linux swap / Solaris
/dev/sda6 220 11023 86783098+ 7 HPFS/NTFS
/dev/sda7 11024 12161 9140953+ 83 Linux
>>>ok, so my Linux partition root is on sda7 and my boot is sda1. Does it matter that the tutorial has the boot partition as Linux while mine is NTFS? Moving on...
root@ubuntu:~# mount -t ext3 /dev/sda7 /mnt/root
mount: /dev/sda7 already mounted or /mnt/root busy
mount: according to mtab, /dev/sda7 is already mounted on /mnt/root
>>> I already mounted the root drive in an earlier attempt. So this is fine.
root@ubuntu:~# ls /mnt/root
bin dev home lib mnt root sys var
boot etc initrd.img lost+found opt sbin tmp vmlinuz
cdrom grub initrd.img.old media proc srv usr vmlinuz.old
>>> just proving all is well
root@ubuntu:~# mount -t ext3 /dev/sda1 /mnt/root/boot
mount: /dev/sda1 already mounted or /mnt/root/boot busy
mount: according to mtab, /dev/sda1 is mounted on /media/disk
>>> I already mounted the boot drive in an earlier attempt. So this is fine.
root@ubuntu:~# ls /mnt/root/boot
>>> just proving that all is well
root@ubuntu:~# sudo grub-install --root-directory=/mnt/root /dev/sda
The file /mnt/root/boot/grub/stage1 not read correctly.
>>> now, should sda have been hda there? What is wrong with this stage1 file that it fails in both the methods? I even downloaded the grub installer and manually put stage1 and stage 2 into the root folder of the boot partition, but it still doesn't work. I'm baffled.
Like I said, any insight would be so appreciated. Thanks, guys.