I have a hard drive with some partition for windows (NTFS) and 1 partition for linux and 1 partition for linux swap. Recently, I tried Norton Partition Magic Pro 8.05 (comes with Hiren Boot CD). It suggested me something related to ExtendedX. I choose [Fix] and then boom, after restart, my grub is corrupted (What's a magic!!!).
When I boot up using Ubuntu Live CD, this is the result of fdisk -l
on my computer:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4ffe4ffd
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2615 21004956 7 HPFS/NTFS
/dev/sda2 2616 14593 96213285 f W95 Ext'd (LBA)
/dev/sda5 2616 4619 16097098+ 7 HPFS/NTFS
/dev/sda6 4620 11459 54942268+ 7 HPFS/NTFS
/dev/sda7 11460 11982 4200966 7 HPFS/NTFS
/dev/sda8 11983 14344 18972733+ 83 Linux
/dev/sda9 14345 14593 2000061 82 Linux swap / Solaris
I find and follow an article here: http://gadgetmix.com/index/how-to-restrore-grub-bootloader-in-ubuntu-9-10-standard-and-netbook-remix/
But on my computer, when I try grub-install --root-directory=/mnt /dev/sda8
(which is my ubuntu main partition), the terminal returns error:
root@ubuntu:~# grub-install --root-directory=/mnt /dev/sda8
grub-probe: error: Cannot find a GRUB drive for /dev/sda8. Check your device.map.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
What is that error? How can I fix that? Thanks.