SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When you boot Ubuntu, is the path to the kernels /media/ubuntu/boot/vmlinuzXXX ? Or is that the path when you're booted in Slackware, and have the ubuntu partition mounted ?
Assuming the latter, shouldn't the image entry be :
Code:
/boot/vmlinuz-2.6.24-19-rt
since Ubuntu's /boot is where it expects to find it's kernel(s) ?
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Quote:
Assuming the latter, shouldn't the image entry be :
Code:
/boot/vmlinuz-2.6.24-19-rt
since Ubuntu's /boot is where it expects to find it's kernel(s) ?
No - this should be where the Ubuntu disk is mounted under Slackware.
I'm not that familiar with Ubuntu but I thought it used an initial ram disk. If so you'll need to add an entry to your lilo.conf. The initrd should be in the Ubuntu /boot directory and named something like initrd.img-2.6.24-19-rt. If this is the case add this line to the Ubuntu section of lilo.conf:
Actually I got a little bit confused. According to slackware in hdb1 is the swap, in hdb2 is ubuntu and in hdb3 is slackware. I have mounted hdb2 in /media/ubuntu. So in /media/ubuntu there is all the filesystem of ubuntu. So I should write something like this?
With this I take as a result when I run lilo the following:
Code:
Warning: LBA32 addressing assumed
Warning: The boot sector and map file are on different disks.
Added CLI *
Warning: The initial RAM disk is too big to fit between the kernel and
the 15M-16M memory hole. It will be loaded in the highest memory as
though the configuration file specified "large-memory" and it will
be assumed that the BIOS supports memory moves above 16M.
Added KDE ?
Added ubuntu
Added windows
3 warnings were issued.
I want also to ask something else. In /media/ubuntu/boot/grub/there is the configuration file menu.lst of grub which was set up after the installation of ubuntu and before this of slackware.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Please don't take offence but I think your questions would be better asked in the Ubuntu forum as they relate to an Ubuntu install.
For what it's worth here are some pointers ..
Quote:
Actually I got a little bit confused. According to slackware in hdb1 is the swap, in hdb2 is ubuntu and in hdb3 is slackware. I have mounted hdb2 in /media/ubuntu. So in /media/ubuntu there is all the filesystem of ubuntu. So I should write something like this?
Be aware that directory references in lilo.conf are relative to what you are running when lilo is ran - i.e. Slackware.
Quote:
With this I take as a result when I run lilo the following:
I don't think these lilo warnings are fatal - I could be wrong however.
Ubuntu's setup of grub uses the UUID of the disk - this is not necessary. In fact this is just another way of referring to the device.
You may find it easier to install Ubuntu and install grub to the superblock of hdb2 then chainload lilo to run this. However this should not be neccesary.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Quote:
Your Ubuntu stanza should be:
Quote:
# UBUNTU bootable partition config begins
image = /boot/vmlinuz-2.6.24-19-rt
root = /dev/hdb2
label = ubuntu
read-only # Partitions should be mounted read-only for checking
# UBUNTU bootable partition config ends
The "/media/ubuntu" part is only applicable when booted into Slackware.
Regards,
Bill
Sorry Bill, I was composing my post when you posted hence the late reply.
However - as I understand it the OP is running lilo from Slackware so the mount point is what should be set in lilo.conf for the kernel and initial ram disk. In other words how Slackware sees the partition. I thought lilo was being ran from a Slackware boot.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Quote:
Hi again. It's really a mess!!!
With this in my lilo.conf
Code:
# UBUNTU bootable partition config begins
image = /boot/vmlinuz-2.6.24-19-rt
root = /dev/hdb2
label = ubuntu
read-only # Partitions should be mounted read-only for checking
# UBUNTU bootable partition config ends
I get:
Code:
Fatal: open /boot/vmlinuz-2.6.24-19-rt: No such file or directory
Look Simeon - a lot of people are giving bad advice here which must be confusing you no end. I have mentioned on a few occasions that the lilo stanzas must refer to the directories where Slackware sees the mount points - i.e. this will not work
Quote:
image = /boot/vmlinuz-2.6.24-19-rt
I have supplied the entire lilo.conf that should work. You have to have the Ubuntu disk mounted to /media/ubuntu for this to work.
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb3
label = CLI
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# KDE bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb3
label = KDE
append = 4
read-only # Partitions should be mounted read-only for checking
# KDE bootable partition config ends
# UBUNTU bootable partition config begins
image = /media/ubuntu/boot/vmlinuz-2.6.24-19-rt
root = /dev/hdb2
label = ubuntu
initrd=/media/ubuntu/boot/initrd.img-2.6.24-19-rt
read-only # Partitions should be mounted read-only for checking
# UBUNTU bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
label = windows
table = /dev/hda
# Windows bootable partition config ends
This should boot all you OS's no probelm (Don't forget to rerun lilo). Alternatively you may want to try the grub "other" loaded method.
I assume in your ubuntu Grub is installed. So if you decide to give up at using lilo from Slack you only need to install grub from ubuntu into the mbr. Then configure menu.lst to point to the Slack kernel as the third default option. This way Grub can boot from all the OS's available in the hard disk including Windows.
I am not well informed about Lilo, I tried it once to load other OS's like youre doing now, but without joy. When I installed this Slackware I am using right now I didn't install any loader, I just configured the Grub menu.lst from other linux in other partition to load this kernel.
I assume in your ubuntu Grub is installed. So if you decide to give up at using lilo from Slack you only need to install grub from ubuntu into the mbr. Then configure menu.lst to point to the Slack kernel as the third default option. This way Grub can boot from all the OS's available in the hard disk including Windows.
This is what I would do also. I have WindowsXP + Ubuntu + Slackware on my system and that is how I do it. IF I were just booting Slackware, or perhaps Slackware + WIndows, then I would probably just use lilo. But for booting multiple linix OSs grub is just easier imo. With lilo, every time there is a kernel update for Ubuntu you will have to boot into Slackware, edit lilo.conf, and rerun lilo before you can boot Ubuntu. With grub, the menu.lst can be edited from either Ubuntu or Slackware. Grub also makes it possible to edit the menu,lst entries 'on the fly' if you need to make changes.
To reinstall grub to the MBR see this: http://ubuntuforums.org/showthread.p...highlight=fsck
Remeber to select the correct hard disk MBR depending on which disk you want grub installed to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.