LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-20-2008, 01:46 PM   #1
grimx
Member
 
Registered: Oct 2008
Distribution: Slackware 14 i686
Posts: 111

Rep: Reputation: 16
Question Trying to add Debian to lilo


Slackware 12.1 is installed and is the only one
i can boot into
i also have Debain Etch installed before Slackware
here is what my partitions look like
cfdisk (util-linux-ng 2.13.1)

Disk Drive: /dev/hda
Size: 80026361856 bytes, 80.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 9729

Name Flags Part Type FS Type [Label] Size (MB)
-----------------------------------------------------------------------
hda1 Primary Linux ext3 67998.39
hda2 Primary Linux swap 1998.
hda3 Primary Linux swap 1003.49
hda4 Boot Primary Linux ext3 9023.14
_____________
Debian has hda1 and hda2
Slackware has hda3 and hda4
_____________________________
my lilo.conf from Slackware looks like this
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/hda

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
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/hda4
label = Slackware
read-only

image = /boot/vmlinuz-2.6.18-6-k7
root = /dev/hda1
label = Debian
read-only
#Linux bootable partition config ends
_______________________________________

when adding Debian as above to lilo.conf
i get this error:

bash-3.1# lilo
Warning: LBA32 addressing assumed
Added Slackware *
Fatal: open /boot/vmlinuz-2.6.18-6-k7: No such file or directory
bash-3.1#
___________________________________
when i boot into /dev/hda1 i get:
directorys:
bin boot cdrom dev etc home initrd lib lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
a Gzip. file
initrd.img
a link to boot file:
vmlinuz

inside the boot directory:
grub dirctory, text document config-2.6.18-6-k7, Gzip file initrd.img-2.6.18-6-k7,
text document System.map-2.6.18-6-k7, unkown type vmlinuz-2.6.18-6-k7
HELP

Last edited by grimx; 11-20-2008 at 01:57 PM.
 
Old 11-20-2008, 02:50 PM   #2
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Here's how I multiboot:
* Make a dir to mount your debian root partition: mkdir /mnt/debian
* Add to /etc/fstab that partition: /dev/hda(NUMBER) /mnt/debian ext3 defaults 1 1 <--depends on your file system, etc.
(NUMBER= where your debian /boot dir is located)
* as root: mount -a (to mount all partitions)
* edit /etc/lilo.conf
* Add something like:
Code:
# Debian
image = /mnt/debian/boot/vmlinuz-2.6.26
 initrd = /mnt/debian/boot/initrd.img-2.6.26-1-686
  root = /dev/hda(NUMBER)
  label = Debian
  read-only
* (add lba32 to your lilo.conf to get rid of the: 'Warning: LBA32 addressing assumed'. After 'timeout' is fine)
* And then: /sbin/lilo

Should work, hopefully
 
Old 11-20-2008, 02:50 PM   #3
jannekrille
Member
 
Registered: Jul 2005
Location: Dalsland, Sweden
Distribution: Slackware 13.0 and 13.1
Posts: 75

Rep: Reputation: 22
Some reading:
http://www.linuxquestions.org/questi...ight=chainload

Last edited by jannekrille; 11-20-2008 at 03:46 PM. Reason: Found a thread with a posssible solution
 
Old 11-20-2008, 02:57 PM   #4
grimx
Member
 
Registered: Oct 2008
Distribution: Slackware 14 i686
Posts: 111

Original Poster
Rep: Reputation: 16
ok i'll try those.
 
Old 11-20-2008, 03:07 PM   #5
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
Are you sure that you have the correct path to your Kernel for the Debian install on drive /dev/hda1? Maybe chroot to /dev/hda1 and double check that is the correct kernel image. Just a thought.
 
Old 11-20-2008, 03:34 PM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Lilo is telling you it can't find the debian kernel. You need to boot into Slackware and, as root, mount the debian root partition and copy the debian kernel from the /boot directory of the debian install to the /boot directory of the slackware install. Then when you run lilo -t (and then lilo) you will not get the error "Fatal: open /boot/vmlinuz-2.6.18-6-k7: No such file or directory". Now slackware's lilo will find the debian kernel and continue the boot process.

HTH
 
Old 11-20-2008, 03:43 PM   #7
grimx
Member
 
Registered: Oct 2008
Distribution: Slackware 14 i686
Posts: 111

Original Poster
Rep: Reputation: 16
Thanx Jannekrille, your way worked
 
Old 11-20-2008, 03:47 PM   #8
grimx
Member
 
Registered: Oct 2008
Distribution: Slackware 14 i686
Posts: 111

Original Poster
Rep: Reputation: 16
one more question
in KDE or any other Desktop
when i run either (/sbin/shutdown -h now) or
(/sbin/shutdown -r now) all i get is a black
screen that i can't get out of,
the keyboard and mouse won't work.
HELP

Sorry to say but i have to hard boot everytime
that happens and i think because i use EXT3
it seems to be ok.
 
Old 11-20-2008, 03:53 PM   #9
jannekrille
Member
 
Registered: Jul 2005
Location: Dalsland, Sweden
Distribution: Slackware 13.0 and 13.1
Posts: 75

Rep: Reputation: 22
I just realized that I might have fooled you, it can be that you actually booting debian with your slackware kernel. If so, sorry if I messed it up for you. I edited my post with a link to another thread that can be an better solution.
 
Old 11-22-2008, 01:03 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
For each kernel image provide it's own root
 
  


Reply



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
How to add another Linux Distro in Lilo duryodhan Slackware 48 01-18-2012 04:34 PM
Can I add a new background to lilo? LinuxSeeker Mandriva 1 07-26-2005 10:37 AM
how to add windows to lilo? mrgrieves Linux - Software 9 06-27-2004 02:09 PM
How to add LILO to existing Linux? Freederick Linux - Newbie 9 03-28-2004 05:05 PM
How to add entry for Windows in lilo Wynd Linux - General 2 09-04-2003 04:58 PM

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

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

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
Open Source Consulting | Domain Registration