Grub Install
Hi,
Previously, I have a dual boot of WinXP and Ubuntu using Grub. However, I did a fixmbr using the winxp disk and my grub is gone and I can't access my ubuntu now. What should I do to install the grub without deleting my ubuntu partition? Thanks. |
Boot from a live cd /rescue disk. At the prompt type:
Code:
root (hd0,0) Code:
setup (hd0) Code:
exit |
Quote:
My root is installed to sda6 of my one and only sata hdd. So it should be (hd0,5)? However, after I typed root (hd0,5), it says syntax error near unexpected token 'hd0,5' P.S I am booting from Ubuntu Live CD using its Terminal to execute the commands. |
Those commands have to be entered from a GRUB prompt. After booting, open a terminal and type:
grub ##starts the GRUB shell root (hd0,5) ##your assumption was correct---- hda6 in Bashese = hd0,5 in Grubese setup (hd0) |
Quote:
|
Huh ...
Just type in "root (" and hit the <tab> key - it should list all the valid disks it finds. What do you get ???. As a matter of interest, you can also use <tab> after the comma to get a list of known partitions. |
Quote:
Ubuntu did not recognise my hdd? However, I went back to bash, typed sudo fdisk -l, it did manage to list all the partitions correctly. Latest Update: I did not "sudo grub" in the 1st place. It works now :D |
All times are GMT -5. The time now is 08:31 AM. |