LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-22-2004, 12:29 PM   #1
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Rep: Reputation: 30
Another Lilo dual boot (Linux+Linux) question


I've searched the man pages, forums and google, and if there's an answer for this I haven't found it, or more precisely, I just don't understand how to apply the answers I've read.
I want to make a dual-boot system with my existing Slackware 9.1 and another Linux. Lilo is currently on my MBR on /hda. My /root is on /hda1 and /home is on /hdb1. I want to make another partition of about 4 Gigs for /root on /hda for another linux, and share /home. I do not have a /boot partition.

Whenever I've made a dual boot system in the past I've ended up losing my first installation of Linux. I just don't understand where to put Lilo for the second Linux, and how to make Lilo in the MBR see both. I always seem to overwrite the MBR when I install the second Linux, but the new Lilo in the MBR doesn't see the first Linux that's already installed.

Here's what /etc/lilo.conf says:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdc=ide-scsi acpi=off"
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200

# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 800x600x256
vga = 771
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section

# Linux bootable partition config begins

image = /boot/vmlinuz
root = /dev/hda1
label = SlackwareLinux
read-only

# Linux bootable partition config ends
---------------------------------------------------------

Here's my /etc/fstab:

/dev/hda2 swap swap defaults 0 0
/dev/hda1 / reiserfs defaults 1 1
/dev/hdb1 /home reiserfs defaults 1 2
/dev/scd0 /mnt/cdrw auto noauto,user,exec,suid 0 0
/dev/hdd /mnt/cdrom auto noauto,user,exec,suid 0 0
/dev/fd0 /mnt/floppy auto noauto,user,exec,suid 0 0
/dev/sda4 /mnt/zip auto noauto,user,exec,suid 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
-------------------------------------------------------

1. Should the next Linux I install be in a primary or extended partition on /hda?

2. Do I make the next /root partition bootable or not?

3. Where do I install Lilo for the next Linux so as not to lose access to my existing Slackware?

4. Can someone please give me an example of what the next entry in Lilo should look like? This is where I always screw up. Saying "Tell Lilo to point to thus-and-such" doesn't help me. I need an example of how the complete entry should read, because I always seem to leave something out and I don't know what it is.

Thanks!
Siri Amrit
 
Old 05-22-2004, 01:06 PM   #2
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
For the lilo part dont install lilo when you install the new linux distro. Leave it out then it will boot in slackware then edit the /etc/lilo.conf file and add another entry

image = /boot/vmlinuz # Im not sure if this is what it will be for your new distro or not so ah ask if u need to know.
root = /dev/hdax # Change hdax with the correct partion number and hd.
label = OtherLinux # Change the name of what you want it to be called..
read-only

After that save it and then run /sbin/lilo
 
Old 05-22-2004, 01:18 PM   #3
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Well, thanks, that actually makes sense!
I still wonder about the "vmlinuz" part, because Mandrake had a long trail of kernel version numbers there. That's what I couldn't get right when I tried to add Mandrake to Lilo before...

Siri Amrit
 
Old 05-22-2004, 01:36 PM   #4
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,601

Rep: Reputation: 142Reputation: 142
As far as I know, version numbers are ignored. But if you want to be sure you can do one of
- rename your Mandrake kernel to vmlinuz
- create a softlink to it: ln -s vmlinuz<versionNumbersAndSuch> vmlinuz

Another option would be to put Grub in your MBR and add a section for each additional system. Each section, but the first one, has only a single chainloader entry. For your other systems you may use Grub, Lilo or whatever you like, as long as you put their bootloaders into the /root partition and make that partition bootable (with fdisk). Don't forget that last step.

I think a similar concept can be realised using LILO, however, I don't know exactly, how, and found Grub pretty easy for my own systems, with three Linuces on it. One advantage of Grub certainly is that you have a chance to influence what happens during boot. Eg, when you made a mistake in the config file, Grub offers you a prompt where you can type the correct parameters and then continue. Very helpful on more complex installations! With LILO you have to reboot into the faulty system using a boot disk(ette), correct the LILO config file, type LILO on the command line as root, and then re-enter that same cycle.

Good luck!
 
Old 05-22-2004, 02:00 PM   #5
subgenius
Member
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
I once had a working triple boot with Windows, Slackware & Fedora.

Here is the Linux portion:

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda6
label = Slackware
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

# Linux bootable partition config begins
image=/boot/vmlinuz-2.4.22-1.2115.nptl
root = /dev/hda7
label = Fedora
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

One big "gotcha" is that when lilo looks for /boot/vmlinuz-whatever at boot
time it will be looking in the /boot from the installation where you ran lilo.

That means that you will have to copy the vmlinuz kernel from the new
distribution to the original's /boot, then run lilo. You may also have to copy
the modules over to the original's /lib/modules. I am not sure about that, it's
been awhile.
 
Old 05-22-2004, 02:37 PM   #6
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
subgenious

thats why you put the root = /dev/hdx so that way it knows where to look for /boot/vmlinuz
 
Old 05-22-2004, 02:49 PM   #7
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Now I'm getting confused...

iotc247 says to _not_ install Lilo with the second installation, but to just edit the existing Lilo.

gargamel says:
For your other systems you may use Grub, Lilo or whatever you like, as long as you put their bootloaders into the /root partition and make that partition bootable (with fdisk). Don't forget that last step.

Does that mean that I SHOULD install Lilo with the second installation?

And if my current /root partition (hda1) is bootable, how do I make the next /root partition bootable, too? cfdisk allows for only one bootable partition.

Thanks,
Siri Amrit
 
Old 05-22-2004, 03:04 PM   #8
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
Dont install lilo with the second distro. If you do you will end up erasing the lilo for the first distro.. That doesnt really matter. I just say to use the lilo that came with slackware... Use fdisk.. Its alot better... I dont understand what you mean bootable..
 
Old 05-22-2004, 03:30 PM   #9
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
I'll check out fdisk. I got used to cfdisk. They do the same thing. Basically, only one primary partition can be flagged as "bootable." I think the bootable partition should be the one that contains Lilo, in this case, /hda1, but I'm guessing.

Thanks for sticking with me on this.
Siri Amrit
 
Old 05-22-2004, 04:01 PM   #10
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
Do you mean active? If thats what you mean it dont matter as i always had my winxp partition as active... I think active is what you meant as thats what its called in qtparted...
 
Old 05-22-2004, 04:05 PM   #11
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
Well i think so anyway that it dont matter. I think this because the config file is so that when u run lilo or /sbin/lilo it knows what to write into the mbr.
 
Old 05-22-2004, 04:14 PM   #12
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Active and bootable are probably the same thing.
I'm starting to feel a liitle more confident about this...

Siri Amrit
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux boot question (lilo) vexer Linux - General 3 05-06-2005 07:36 PM
dual boot two linux distros on one hd with lilo darkleaf Linux - Software 11 02-24-2005 10:52 AM
dual boot - XP and Linux - Need to reinstall XP without effecting linux -LILO boot godofmind Linux - General 1 05-05-2004 08:13 AM
help me conf lilo for dual linux boot bosewicht Linux - Newbie 17 09-20-2003 10:08 AM
lilo dual boot two linux distros / hda and hdb rioguia Linux - Newbie 2 01-23-2003 12:35 AM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration