LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-17-2009, 09:49 AM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
How to do a proper lilo.config with multiple partitions/OS's?


I installed (another) Slackware 12.2 to my HD, partition 6.
I messed up the lilo config during install, and can only boot the latest install(sda6).
I have a rescue floppy to get back into my original grub menu.lst on sda2-Ubuntu SE.
So, I either need to add an entry (sda6) to my menu.lst on Ubuntu, or I need to edit my lilo.config on sda6 so all partitions are bootable.
Here is my partitions.
sda1-slackware 12.2 hugesmp.s
sda2-ubuntu 8.04
sda3-superubuntu 8.10
sda4-extended
sda5-gobolinux
sda6-slack-lite
sda7-debian lenny
sda8-empty(soon to be absolute 12.2 or something)
sda9-swap
sda10-FAT32-files
What should I do?
here's the output of fdisk -l
Code:
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800200

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        3533    28378791   83  Linux
/dev/hda2   *        3534        5670    17165452+  83  Linux
/dev/hda3            5671       10979    42644542+  83  Linux
/dev/hda4           10980       19457    68099535    5  Extended
/dev/hda5           10980       12301    10618933+  83  Linux
/dev/hda6           12302       14219    15406303+  83  Linux
/dev/hda7           14220       15518    10434186   83  Linux
/dev/hda8           15519       16920    11261533+  83  Linux
/dev/hda9           16921       17209     2321361   82  Linux swap
/dev/hda10          17210       19457    18057028+   b  W95 FAT32

Last edited by linus72; 03-17-2009 at 09:55 AM.
 
Old 03-17-2009, 11:09 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,762

Rep: Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687
As you like to fiddle with new distributions, I suggest you install VirtualBox or VMware (I use the former and have heard about the latter).

This way you won't have to use Lilo anymore but instead will install each new distro in a virtual machine.

For instance I have Slackware-current and Windows 7 beta installed in Slackware-12.2 through VirtualBox, all possibly running at the same time.

You only will need enough disk space -- and a lot of memory if you want to run all your distributions at the same time
 
Old 03-17-2009, 11:34 AM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Yeah, I always took stuff apart as a kid, had to see what was inside...guess I'm still that way!
I'm definitely a tinkerer.
Anyway-never could get VmWare working, had Virtual box working on Ubuntu, but it seemed to freeze alot.
I have Qemulator and Qemu launcher now.
I never understood how to set it up properly-e.g., I only know how to get it to boot from an iso for either a live distro or install disc-Can it be setup so that it runs like a reg OS?
Running in VMware, etc can you do things just like in a real distro?
That would be cool-so like if I wanted to try and break Slack discs 1-3 into a single cd by deleting pkgs and adding pkgs via internet to the "virtual" HD?
What I'm saying is could I say install slack onto a virtual HD, reboot and do whatever-all within the virtual machine?
Or could you do programming from within the virtual console and if you break something your OK?
I know the answers to those two dumb questions are probably yes, just not sure...
Your a Righteous Dude for helping me so much Didier!
 
Old 03-17-2009, 12:05 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
OK-I think I've got my lilo.config right for each partition-Now-how do I reinstall lilo-is there a way to do it from within slack or do I have to put install disc 1 in and reconfigure?
 
Old 03-17-2009, 12:10 PM   #5
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
download the src, or if you mean how do you write lilo.conf to MBR, if so, then it's lilo -v
 
Old 03-17-2009, 01:37 PM   #6
+Alan Hicks+
Member
 
Registered: Feb 2005
Distribution: Slackware
Posts: 72

Rep: Reputation: 54
Since you didn't actually include your lilo.conf file, no one can really help you fix your problem. With that said, here are some general tips.

1- The path to the kernels in lilo.conf have to be absolute paths on the distro that's currently running, NOT the location of the kernel once booted into another distro. In other words, you'll have to mount / or /boot for every distro you have somewhere on your current system and note the path to each individual kernel in lilo.conf such as /path/to/ubuntu/kernel instead of just /boot/kernel.

2- Consider making an ext2 /boot partition and using it on all your distros. You could have /boot/hda1, /boot/hda2, etc. and put the relevant files for each OS in those directories. This simplifies things, 'cause no matter what distro you're currently booted into, the files you need for all distros will be under /boot.
 
Old 03-17-2009, 02:14 PM   #7
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by linus72 View Post
OK-I think I've got my lilo.config right for each partition-Now-how do I reinstall lilo-is there a way to do it from within slack or do I have to put install disc 1 in and reconfigure?
lilo has documentation. Try "man lilo". Or visit lilo website.
 
Old 03-17-2009, 07:18 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,762

Rep: Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687Reputation: 2687
about using VirtualBox -- on Slackware 12.2 here:
- First install VirtualBox and launch it
- Create one virtual machine for each distribution you want to try
- Reserve some space on the HD for each (between 4 and 8 GB); by default in ~/.VirtualBox
- Boot the new distribution (either from a CDROM or from an ISO image on your HD) in its VM and install it
- Run the distribution in the VM exactly as you would in its own real computer
- For instance I upgraded the kernel for Slackware-current a few minutes ago then ran lilo in the VM
- You can share folders, use an USB device, print, access a CD ROM and Internet as well
- If you make a mistake there is no consequence outside the VM
- You can keep a simple disk layout with only 3 partitions: /, /home and swap on your HD. No need to make thin slices and loose space.

 
Old 03-17-2009, 08:11 PM   #9
eerok
Member
 
Registered: Nov 2005
Location: Canada
Distribution: Mint, Debian
Posts: 168

Rep: Reputation: 32
I've been using Grub for years because I always run several distros, and Grub is just easier. You don't have to install it to the MBR more than once as long as that /boot partition survives. (Well, I did reinstall Grub to the MBR lately for ext4 support.)

I have 9 Linux installs on this machine with no problems at all. When I installed slack-current, I just skipped the Lilo installation and edited the active /grub/menu.lst to boot it.
 
Old 03-17-2009, 08:55 PM   #10
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Grub is much better than Lilo and ...esp for configurations of this type.
you can chainload most other installs
 
Old 03-17-2009, 08:58 PM   #11
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
download the src, or if you mean how do you write lilo.conf to MBR, if so, then it's lilo -v
That's not quite right. The -v parameter just adds verbosity. You can either have a boot=/dev/required-disk line in lilo.conf or supply the -b /dev/required-disk parameter adjusting for the disk device accordingly.
 
Old 03-18-2009, 05:44 AM   #12
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by eerok View Post
I've been using Grub for years because I always run several distros, and Grub is just easier. You don't have to install it to the MBR more than once as long as that /boot partition survives.
And you don't have to install lilo into mbr at all. So?
 
  


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
kickstart; how-to info needed for multiple instances of RH OS's and multiple unique v Joe_Wulf Linux - Server 4 06-22-2007 12:18 AM
Can't configure Lilo to boot multiple Linux partitions SlackwareInAZ Slackware 11 09-10-2005 02:04 PM
Lilo problems for multiple OS's klnw Slackware 5 03-08-2005 04:52 AM
Managing Multiple Partitions and OS's Echo Kilo Linux - Software 0 10-22-2004 12:28 PM
Problem with Lilo.conf booting multiple OS's sanfran49 Linux - Software 2 02-11-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration