This is a discussion on Using Lilo to boot more than one Linux distro. within the Linux Operating System forums, part of the Unix Operating Systems category; --> I have two linux distros on my machine, but cannot figure out how to configure lilo to boot them. ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have two linux distros on my machine, but cannot figure out how to configure lilo to boot them. Searching on the web, I don't find many answers just a few hints. Here is my lilo.conf on the (for the time being) only bootable os: prompt timeout=50 default=rawhide boot=/dev/hda map=/boot/map install=/boot/boot.b message=/boot/message linear image=/boot/vmlinuz-2.4.20-2.21 label=rawhide initrd=/boot/initrd-2.4.20-2.21.img read-only append="hdc=ide-scsi root=LABEL=/ resume=force" image=/debian/vmlinuz label=debian root=/dev/hda1 read-only append="hdc=ide-scsi root=LABEL=/ resume=force" initrd=/debian/initrd.img /debian is a symbolic link to /mnt/debinstall which is mounted at my debian root partition, i.e. /dev/hda1. Some suggestions have been to install a single lilo boot loader on each root partition's boot sector such that each individual installation does not need to know about any other installation. Then one should (somehow) install "master boot" something on the boot sector of /dev/hda. Not daring to destroy anything more on my machine, I haven't even tried to figure this out. But is the following on track? For each installation: mount root partition : mount /dev/hdax /mnt chroot to this partition : chroot /mnt configure lilo with no prompt or anything: editor /etc/lilo.conf run lilo: lilo exit this root and umount: exit, umount /mnt Then make a single master boot sector like the following: boot=/dev/hda other=/dev/hda1 label=linux1 other=/dev/hda2 label=linux2 ... Or is this approach far off? Maybe the single master boot sector configuration needs more stuff in it? Thanks for any input. -- Jon Haugsand Dept. of Informatics, Univ. of Oslo, Norway, mailto:jonhaug@ifi.uio.no http://www.ifi.uio.no/~jonhaug/, Phone: +47 22 95 21 52 |
| |||
| On 29 Jun 2003 17:13:57 +0200, Jon Haugsand wrote: > I have two linux distros on my machine, but cannot figure out how to > configure lilo to boot them. Searching on the web, I don't find many > answers just a few hints. Ok, http://groups.google.com/advanced_group_search initrd=/md91n/boot/initrd.img in the first box *linux* in the Newsgroup, pick English |
| |||
| Jon Haugsand wrote: > I have two linux distros on my machine, but cannot figure out how to > configure lilo to boot them. Searching on the web, I don't find many > answers just a few hints. > Here is my lilo.conf on the (for the time being) only bootable os: .... and here is a link to the subject matter you require: "Running Multiple OS's" ... http://www.linuxselfhelp.com/cats/running_multiple.html -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ Michael J. Tobler: motorcyclist, surfer, # Black holes result skydiver, and author: "Inside Linux", # when God divides the "C++ HowTo", "C++ Unleashed" # universe by zero |
| ||||
| On Sun, 29 Jun 2003 at 15:13 GMT, Jon Haugsand eloquently wrote: > I have two linux distros on my machine, but cannot figure out how to > configure lilo to boot them. Searching on the web, I don't find many > answers just a few hints. ========= One of my /etc/lilo.conf ============== boot=/dev/hda map=/boot/map install=/boot/boot.b vga=5 prompt timeout=30 message=/boot/message linear default=RH9 # append="video=matrox:vesa:447" image=/mnt/rh9boot/vmlinuz-2.4.20-9SGI_XFS_1.2.0 label=RH9 initrd=/mnt/rh9boot/initrd-2.4.20-9SGI_XFS_1.2.0.img append="video=matrox:vesa:443 hdc=ide-scsi" read-only root=/dev/hdb3 image=/boot/vmlinuz-2.4.16-xfs label=RH72 append="video=matrox:vesa:443 hdc=ide-scsi" read-only root=/dev/hda12 ========= end One of my /etc/lilo.conf ========== ========= The /etc/fstab for the above system ======= /dev/hda12 / xfs defaults 1 1 /dev/hda1 /boot xfs defaults 1 2 /dev/hda13 /tmp xfs defaults 1 2 /dev/hda6 /usr xfs defaults 1 2 /dev/hdb1 /mnt/rh9boot xfs defaults 1 2 /dev/hdb3 /mnt/rh9root xfs defaults 1 2 /dev/hdb6 /mnt/rh9home xfs defaults 1 2 ========= end /etc/fstab for the above system ======= HTH -- Registered Linux User # 125653 (http://counter.li.org) | Please remove Certified: 55% bastard, 31% of which is tard. | '.invalid' http://www.thespark.com/bastardtest | to reply. Switch to: http://www.speakeasy.net/refer/190653 |