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...

ubu...@ubuntu:~$ sudo -i
r...@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
r...@ubuntu:~# mkdir /media/root
r...@ubuntu:~# mount /dev/sda9 /media/root
r...@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
r...@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
r...@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


      
-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in

Reply via email to