LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Grub Multiboot 2 linuxes filesystem context (https://www.linuxquestions.org/questions/linux-general-1/grub-multiboot-2-linuxes-filesystem-context-839796/)

s1n9l3t0n 10-22-2010 11:29 AM

Grub Multiboot 2 linuxes filesystem context
 
Hi,

Does anyone know if the context is related to the current filesystem, or the one defined in root setting grub.conf.

Is this possible

Code:

title LinuxX
root=/dev/sdb2
kernel=/boot/kernel

title LinuxY
root=/dev/sdc1
kernel=/boot/kerne2

or I have to write it like this:

Code:

title LinuxX
root=/dev/sdb2
kernel=/boot/kernel

title LinuxY
root=/dev/sdc1
kernel=(/dev/sdc1)/boot/kerne2


bigrigdriver 10-22-2010 02:04 PM

Assuming that /boot is NOT in a partition of its own:

Linux X
root (hd0,0)
kernel /boot/kernel-1

Linux Y
root (hd1,0)
kernel /boot/kernel-2

In grub legacy, hd0 refers to the first drive, hd1 refers tot he second drive, etc.
0 refers to the first partition, 1 refers to the second partition, etc.

So, (hd0,0) refers to the first drive, first partition.

In your case, if sdb is the first hard drive, and Linux is on the first partition, you would use "root (hd0,0)
and for sdc, "root (hd1.0)" (without quotes of course).


All times are GMT -5. The time now is 01:49 AM.