LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub hard drive question - root (hd0,0) (https://www.linuxquestions.org/questions/linux-newbie-8/grub-hard-drive-question-root-hd0-0-a-509627/)

Thaidog 12-12-2006 02:26 AM

Grub hard drive question - root (hd0,0)
 
I am configuring grub and I want to know if my boot partition is /dev/hda2 does that mean the argument for root should be root (hd0,2)?

SlackDaemon 12-12-2006 02:31 AM

/boot should be (hd0,1) if its /dev/hda2.

Thaidog 12-13-2006 04:13 AM

Quote:

Originally Posted by SlackDaemon
/boot should be (hd0,1) if its /dev/hda2.

So if boot is the second hda2 and root is the 3rd hda3 the it should like this:

default 0
timeout 19

title=gentoo
root (hd0,1)
kernel /boot/kernel root=dev/hda3

##############

(hda3 being the / partition here)

saikee 12-13-2006 05:18 AM

Yes it will work.

Never done it before myself as my distroa are always in single partitions. That mean /boot is always inside the root partition of every Linux.

However I have use regularly a kernel from Linux A to boot Linux B. To me you just pick up the kernel in hda2 to boot the Linux in hda3.

Grub always counts from 0 but the parameter root=/dev/hda3 is Linux-related and for the kernel's benefit. By that time Grub has finished its work, to pass control to the kernel and on the way for its long lunch break.


All times are GMT -5. The time now is 05:32 PM.