Re: booting linux on different partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 06, 2003 at 09:50:08 +0530, nix wrote:
> hi guys
>     well i have 2 partitions (hda2,hda5) with 2 redhat flavor 7.2 and 8.0 
> respectively (both ext3). when i configure grub making one partition root 
> then the other partition doesnt boot.  it seems that i cannot define 2 root 
> partitions in my grub. and i cannot use "chainloader" keyword since there is 
> no bootloader at the start of these partitions. is there any way around, any 
> command i can use in grub or lilo to do this?
> please help.

Grub boots from one partition. But has absolutely no problem booting
kernels from the others, leave alone passing completely unrelated root=
parameter for that kernel. So you keep your grub on one of the
partitions and specify it as root. In menu.lst you specify kernels from
both these partitions however (use the device syntax...
(hd0,4)/boot/vmzinuz ...) and pass these kernels apropriate roots. So
you will have:
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2
boot
...
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5
boot

Now, you can boot kernel from one or another partition at will...
(you can, of course, type the same commands from grub command-line).

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux