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

Notices

Reply
 
Search this Thread
Old 05-05-2005, 03:41 PM   #1
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
lilo.conf help for new installation


Hello, I've got mandrake and slackware installed and need to know how to alter lilo so I can choose which to boot. My lilo.conf file currently says

image = /boot/vmlinuz
root = /dev/hda2
label = linux
read-only

Mandrake root is on /dev/hda1 so what do I need to write so I get a choice of both? I tried just adding another root label which it didn't like, so I'm not sure what I need to do. Thanks.

Just to clarify the above, I already had mandrake, and I partitioned the drive and then installed slackware. The lilo.conf file above is how it looks in slackware.

Last edited by simcox1; 05-05-2005 at 05:28 PM.
 
Old 05-05-2005, 03:54 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Add another stanza to your lilo.conf, along the lines of
Code:
image = /boot/vmlinuz
root = /dev/hda2
label = "Slackware"
read-only

image = /mnt/hda1/boot/vmlinuz    # or wherever the boot image is.
root = /dev/hda1
label = "Mandrake"
read-only
Mount hda1, re-run lilo, and reboot. From the sounds of it, you had Mandrake installed, after which you installed slackware (incidentally, where is your swap partition ?), overwriting the existing lilo setup from Mandrake.

Cheers,

mj

Last edited by mjrich; 05-05-2005 at 03:56 PM.
 
Old 05-05-2005, 04:09 PM   #3
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Original Poster
Rep: Reputation: 30
My swap is on /dev/hda5. It might have been easier to install slackware first but I wanted a safety net. I'm not sure about the mnt/hda1/boot/vmlinuz line. Are you saying I need to remount hda1 ? That is where the boot image for mandrake is. My hda set-up is:
hda1 mandrake root
hda2 slackware root
hda4 extended
hda5 swap
hda6 mandrake home
hda7 slackware home
 
Old 05-05-2005, 06:04 PM   #4
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Original Poster
Rep: Reputation: 30
Yes I see what I've done. I've overwritten the MBR. So I need to sort that out. I've been trying to get slackware to boot into a graphical environment. I used pico to change the run level from 3 to 4. However although I'm using KDE it launched into gnome. Not sure why. It did that last time I tried briefly to get going with slackware.

The sound is now going, better than Mandrake actually, I think I should have chosen to use the root partition instead of the MBR for booting.

Help appreciated.
 
Old 05-05-2005, 06:05 PM   #5
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
When you run lilo, it will need to read the kernel image for Mandrake - thus the reason for it to be mounted. (Obviously, it can be unmounted straight after). It is possible that you may also need an initrd entry, depending on whether the Mandrake kernel was set up for intrd. The easiest way to check whether your entry is correct, incidentally, is to read the /mnt/hda1/etc/lilo.conf entry for Mandrake.

Cheers,

mj
 
Old 05-05-2005, 06:08 PM   #6
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Quote:
I should have chosen to use the root partition instead of the MBR for booting.
Actually, I prefer to use the Mbr over the root partition for the boot loader, as that way you have one system managing the entire boot process. True, if you had installed Slackware's lilo into root you wouldn't have overwritten the existing bootloader, but instead would have been left with a two-tier boot loader (annoying, IMHO).

Cheers,

mj
 
Old 05-06-2005, 05:46 AM   #7
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Original Poster
Rep: Reputation: 30
This is a bit embarassing but I can't work out how to log in to gnome as root so I can alter files. How do I do it? Say I want to alter /etc/inittab. Do I need to type su at the terminal to use file manager?
 
Old 05-06-2005, 06:23 PM   #8
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
To get a root console, yes, just type "su" and enter (exit once finished). To use a gui file manager as root, there will probably be an entry on the Gnome menu -- I'm on KDE at the moment, where it's at System -> More apps -> File manager (super user mode).

Otherwise, you can usually just type "gksu <programname to get root access.

Cheers,

mj
 
  


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
missing lilo.conf after installation Guciacz Debian 2 02-06-2005 12:03 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 04:15 AM
lilo.conf.anaconda v. lilo.conf rbaird2001 Red Hat 1 04-01-2004 01:16 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 09:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 04:53 PM


All times are GMT -5. The time now is 06:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration