root partition move

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Jul 28 20:22:18 UTC 2009


On Tue, Jul 28, 2009 at 03:51:13PM -0400, Rajinder Yadav wrote:
> Is there a how-to on on chaining, would it be found in the GRUB
> how-to, if there is one? I would like to install fedora 11 when they
> get their mirror update issues worked out, and want to make sure I am
> not sharing the /boot partition between different distros.

Well here is an example:

sda1: windows with the windows boot loader
sda2: linux #1 with root and boot all in one (since generally there isn't a good reason to seperate them)
sda3: linux #2 with its root and boot all in one
sda4: extended partition containing all logical partitions for swap, /home, whatever you want
MBR contains grub for linux #1
sda3's boot sector contains grub for linux #2

The grub config for linux #1 would then look something like this:

title Windows
root (hd0,0)
chainloader +1

title Linux 2.6.26
root (hd0,1)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/sda2 ro ...
initrd /boot/initrd-2.6.26-1-686

title Linux 2.6.26
root (hd0,1)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/sda2 ro ...
initrd /boot/initrd-2.6.26-1-686

title Other GRUB
root (hd0,2)
chainloader +1

The two middle ones could then be managed automatically by linux #1,
while grub for linux #2 can be managed by linux #2.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list