Re: HOWTO: Restore GRUB (if your MBR is messed up)
Originally Posted by
danezeq
How can i tell if i need to type "root (hd0,6)" hd0,5 hd 0,4 or whatever?
You can type "sudo fdisk -l" (make sure you type it correctly) and that'll list your partitions like displayed before in this thread. You will then know where your linux partition is.
i know i have on my main HD two partitions. C: and D:
this "hd0,x" still get me confused
As I understand it, if your linux partition is on /dev/hda or /dev/sda then that means you want root(hd0, blah). If the "a" is a "b" then "hd1", "c" hd2", etc.
If the partition is /dev/hda1, then you need root(hd0,0), /dev/hda2 would be root(hd0,1).
So to summerise:
1 = a = 0
2 = b = 1
3 = c = 2
etc.
Welcome to Computer Science.
"By three methods we may learn wisdom: First, by reflection, which is noblest; second, by imitation, which is easiest; and third by experience, which is the bitterest."
Bookmarks