root <[EMAIL PROTECTED]> wrote:
>...
I'm going to not quote everything, I'll just clarify something.
Here are some methods of booting more than one operating system.
1 - different kernels of the same OS, booted using the same root
filesystem (i.e. after the bootup, regardless of which
kernel you used, '/' is the same partition on the hard
drive).
2 - different kernels, booted to different root partitions
3 - shared kernels, booted to different root partitions.
Put another way, here are some examples:
For layout 1:
/dev/hda1 - has the boot images (vmlinuz.one, vmlinuz.two)
/dev/hda2 - root partition
/etc/lilo.conf:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz.one
label=linux.one
root=/dev/hda1
read-only
image=/boot/vmlinuz.two
label=linux.two
root=/dev/hda1
read-only
/etc/fstab:
/dev/hda2 / ext2 defaults 1 1
/dev/hda1 /boot ext2 defaults 2 2
--------------------------
For layout 2,
/dev/hda1 - root partition, OS 1
/dev/hda2 - root partition, OS 2
/etc/fstab on /dev/hda1:
/dev/hda1 / ext2 defaults 1 1
/dev/hda2 /osNo2 ext2 defaults 2 2
/etc/lilo.conf on /dev/hda1:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz.one
label=linux.one
root=/dev/hda1
read-only
image=/osNo2/boot/vmlinuz
label=linux.two
root=/dev/hda2
read-only
/etc/fstab on /dev/hda2:
/dev/hda2 / ext2 defaults 1 1
/dev/hda1 /osNo1 ext2 defaults 2 2
/etc/lilo.conf on /dev/hda2:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz
label=linux.two
root=/dev/hda1
read-only
image=/osNo1/boot/vmlinuz
label=linux.one
root=/dev/hda2
read-only
Note that, when booting to /dev/hda1, you use the /etc/fstab
and (if you run lilo when booted there) /etc/lilo.conf stored
THERE, not on /dev/hda2. (The reverse is also true!).
Finally, for situation 3:
partitions: add /dev/hda3 to partition table from situation 2, which
will hold your shared kernels.
Add this to the end of /etc/fstab from situation 2 (on both partitions!):
/dev/hda3 /boot ext2 defaults 3 3
and modify the lilo.conf file to have two different root partitions, but use the
same kernel (from /boot).
Read all the above over carefully, and remember that if you have two
different root partitions, depending upon which OS you booted, that you
have 2 DIFFERENT fstab files (and lilo.conf files) - one on each root
partition!
So, you will NEVER have the following in the same fstab!:
/dev/hda1 /here ext2 defaults 1 1
/dev/hda2 /here ext2 defaults 2 2
This is incorrect, as you will mount /dev/hda1 on to /here, then mount
/dev/hda2 ON TOP OF it, losing visibility into /dev/hda1.
If these last 2 paragraphs confuse you, read the situations again
and remember that with different root partitions, you have different
fstabs...
rc
Rusty Carruth Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621 SnailMail: Schlumberger ATE
FAX: (480) 345-8793 7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
Keep in touch with http://mandrakeforum.com:
Subscribe the "[EMAIL PROTECTED]" mailing list.