[ubuntu-in] Error in command grub-install
Ravi Joshi
ravi.joshi53 at yahoo.com
Wed Jun 2 17:03:59 BST 2010
Hi. i am trying to install Grub using Ubuntu9.04 Live CD.... i tried to run grub-install command but it gives me some error... following is my terminal...
ubuntu at ubuntu:~$ sudo -i
root at ubuntu:~# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xae9bae9b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/sda2 2612 19457 135315495 f W95 Ext'd (LBA)
/dev/sda5 2612 10313 61866283+ 7 HPFS/NTFS
/dev/sda6 10314 14229 31455238+ 7 HPFS/NTFS
/dev/sda7 14230 16840 20972826 7 HPFS/NTFS
/dev/sda8 16841 17089 2000061 82 Linux swap / Solaris
/dev/sda9 17090 19457 19020928+ 83 Linux
root at ubuntu:~# mkdir /media/root
root at ubuntu:~# mount /dev/sda9 /media/root
root at ubuntu:~# ls /media/root
bin dev initrd.img media proc selinux tmp vmlinuz
boot etc lib mnt root srv usr
cdrom home lost+found opt sbin sys var
root at ubuntu:~# grub-install --root-directory=/media/root /dev/sda
grub-probe: error: Cannot open `/boot/grub/device.map'
[: 494: =: unexpected operator
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /media/root/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
root at ubuntu:~#
i tried this rub-install --root-directory=/media/root /dev/sda command so many times but still it gives me same error again and again.. and now i restart my laptop it open a black screen with grub terminal like this
GRUB>
and here when i run boot command it gives me ERROR 5. KERNEL MUST BE BOOTED BEFORE GRUB (i forgot what exactly the eroor was.) and now i can't login even my windowsXp.
so please help me..
-Ravi Joshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-in/attachments/20100602/5a60d48e/attachment-0001.htm
More information about the ubuntu-in
mailing list