LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-07-2004, 02:28 AM   #1
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Slack Newbie: lilo Help


I just installed slackware 9.1 this morning, I already have Fedora Core 1 installed on a different partition on this drive. I have never used lilo, so I'm not sure how to tackle my problem. I would like to have both my Fedora and slack entries show up so that I can choose which one to boot into.

Currently, fdisk -l yields:
Disk /dev/hdc: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 1976 15767797+ 83 Linux
/dev/hdc3 1977 2106 1044225 82 Linux swap
/dev/hdc4 2107 2824 5767335 83 Linux

With slackware installed on /dev/hdc4 and sharing the swap with Fedora. The Fedora boot is on /dev/hdc1 I guess so what is the best way to add this to lilo and have the option to boot into either one?

Thanks in advance for the help!
 
Old 01-07-2004, 02:50 AM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
How did you install lilo? What options did you choose?
What happens when you reboot?
How does your lilo.conf file look like?
Regards
 
Old 01-07-2004, 03:06 AM   #3
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Original Poster
Rep: Reputation: 15
I installed lilo on the MBR in hopes that I could add Fedora to it at some point. I chose the kernel that came on the install CD (I probably need to choose a different one to get my battery monitor working on my laptop?).
When I reboot I see one option, "Linux," which then boots into Slackware.

My lilo.conf:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hdc
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdc4
label = Linux
read-only
# Linux bootable partition config ends

Hope you can shed some light on that
 
Old 01-07-2004, 06:07 AM   #4
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
This should work:
(under slack, as root) do a backup of your lilo.conf ("cp /etc/lilo.conf /etc/lilo.conf.backup") Then run "/sbin/liloconfig", and choose "expert"; "begin" a new lilo.conf file, and try to "add a linux partition to the LILO config" twice, once for slack, once for fedora; afterwards, select "install" (once you are sure you did it right).

Now you're ready to boot.

If something goes wrong, you may boot with the slack floppy you did (didn't you?) at install time, remove "/etc/lilo.conf" and do "cp /etc/lilo.conf.backup /etc/lilo.conf"; then do "/sbin/lilo -v", and all should be restored...

If you try it, tell what happens.

Regards

Last edited by Y0jiMb0; 01-07-2004 at 06:09 AM.
 
Old 01-13-2004, 05:53 AM   #5
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Even if you've already read the other replies and solved your problem, do this anyway even if you should have done it first:

$man lilo
$man lilo.conf
 
Old 01-17-2004, 09:04 AM   #6
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
mount the partition where your fedora's kernel is
add this to lilo

image = /path_to/fedora.kernel
root = /dev/hdc1
label = Fedora
read-only

also in the LILO global section you can add
either
default=Linux
(when ur cool!) or
default=Fedora
;-)
 
Old 01-20-2004, 03:24 PM   #7
BroinK
LQ Newbie
 
Registered: Jan 2004
Location: Knivsta, Sewden
Distribution: SLackware
Posts: 20

Rep: Reputation: 0
i have a simular problem; just isntalled slack on a 2,6 gig drive. I still have my 80 GB windowsdrive left, and i wonder
1; can i add the Windowsdrive in LiLo and boot windows from there?
2; i suppose that i can open files from the Wdrive, but how?

ill be back with more "noobish" questions soon
 
Old 01-20-2004, 04:54 PM   #8
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Quote:
1; can i add the Windowsdrive in LiLo and boot windows from there?
yes; this is what reads my "lilo.conf"
Code:
other = /dev/hda1
        label="w98SE"
  table = /dev/hda
don't forget doing "/sbin/lilo -v" after changing anything in lilo; see "man lilo", "man lilo.conf" for more info.
Quote:
2; i suppose that i can open files from the Wdrive, but how?
You have to mount the drive where windows is; if you want that to be done at boot time, you should edit your "/etc/fstab", adding a line like
Code:
/dev/hda1        /mnt/w98se       vfat        rw,suid,nodev,noexec,auto,uid=1005,gid=100,umask=002,async 0 0
(this is what I have) then you will have the windows drive under "/mnt/w98se" (before this you must create this directory); see "man fstab" and "man mount" for details.
Regards

Last edited by Y0jiMb0; 01-21-2004 at 12:17 AM.
 
Old 01-22-2004, 06:29 AM   #9
BroinK
LQ Newbie
 
Registered: Jan 2004
Location: Knivsta, Sewden
Distribution: SLackware
Posts: 20

Rep: Reputation: 0
I opened the file via man, and i checked everything. dont remeber really what it was. so i tried to config it, just by starting lilo and i got a screen looking like the installscrenns. then i added my Wdrive, saved the changes and rebooted the system. when LiLo was started, all i could see was the Wdrive, and it would not boot.
 
Old 01-23-2004, 05:27 PM   #10
linuxenthusiast
LQ Newbie
 
Registered: Jan 2004
Location: Texas
Distribution: Mandrake 10.1
Posts: 17

Rep: Reputation: 0
Thanks for the help Y0jiMb0
 
Old 01-31-2004, 11:03 AM   #11
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Quote:
I opened the file via man, and i checked everything. dont remeber really what it was. so i tried to config it, just by starting lilo and i got a screen looking like the installscrenns. then i added my Wdrive, saved the changes and rebooted the system. when LiLo was started, all i could see was the Wdrive, and it would not boot.
Let's see. What windows are you using?
Another question, could you post your "/etc/lilo.conf" to see what happens?

Regards
 
  


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
WinXP/Slack (LILO) Casket Linux - Newbie 7 10-16-2005 07:42 AM
slack newbie questions, vi, xorg 3button mouse, tripleboot with lilo darkleaf Slackware 7 02-24-2005 04:59 AM
Lilo with 2 Windows+Slack? nivek7 Linux - Software 3 08-27-2004 04:37 PM
Lilo, windows 98 and slack Danodare Slackware 5 02-22-2004 06:47 AM
Instaling LILO of Slack 9.0 ACJunior Slackware 8 07-20-2003 12:04 PM


All times are GMT -5. The time now is 03:51 AM.

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