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.
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147
Rep:
Chainloading Grub from Lilo
I am trying to dual boot my laptop between Slackware and Ubuntu. I was told to just use Grub to boot to the two OS's, so I had Ubuntu overrite the MBR with GRUB. This was able to successfully load Ubuntu, but it could not recognize Slackware, because I have an IDE based system. And Ubuntu, regardless of what type of hard drive you have, recognizes all drives on the system as SDA, not HDA. So Slackware wouldn't boot. So I am trying to configure Lilo to chainload to GRUB. How do I configure Lilo to chainload into Grub on /dev/hda2?
How Ubuntu recognizes drives is irrelevant. All you have to do is add an entry for Slackware to your GRUB menu.lst file. I infer that you have Slackware on hda1 and Ubuntu on hda2. So the Slackware entry would look somethink like this:
title Slackware
root (hd0,0)
kernel /boot/vmlinuz..... root=/dev/hda1 ro
(Assumes that there is no separate /boot partition.)
(Since you now have GRUB on the MBR, it's a lot easier to setup GRUB than to re-install LILO.)
That will work - as will installing lilo to its own boot sector, and chainloading that from grub.
Only one can be setup to be in the MBR, not both.
Either way is easier than trying to directly reference the others kernel image - that would require a full path specification on the kernel and initrd.
Distribution: Windows 8.1. Attempting to get Slack 14.1 working.
Posts: 147
Original Poster
Rep:
I had GRUB installed before and it could not load Slackware, because it would come up with an error saying that HDA did not exist. I asked what that meant in the Ubuntu IRC chat, and they said it was because Ubuntu and GRUB with Ubuntu, recognize the HDD as SDA, not HDA.
I had GRUB installed before and it could not load Slackware, because it would come up with an error saying that HDA did not exist. I asked what that meant in the Ubuntu IRC chat, and they said it was because Ubuntu and GRUB with Ubuntu, recognize the HDD as SDA, not HDA.
That's because Ubuntu users don't know what they're talking about. (Just kidding, of course)
The problem was most likely due to the change in inode size from 128 to 256 bytes in ext2/ext3 filesystems in Slackware.
Quote:
Originally Posted by extra/source/grub/grub.SlackBuild
# This is needed for the optional (but now default) increase in
# inode size from 128 to 256 bytes with ext2 and ext3:
zcat $CWD/grub_support_256byte_inode.patch.gz | patch -p1 --verbose || exit 1
During the installation, you have the option of choosing an inode size. The DEFAULT inode size for ext2/ext3 filesystems is now 256 bytes in Slackware instead of 128 bytes (which is likely what Ubuntu uses). Slackware's GRUB available from extra/ from CD number 4 (or the DVD, or your favourite mirror) is patched to handle the 256 byte filesystem. There are two options. You could either reinstall Slackware from scratch and choose a 128 byte inode size for your ext2/ext3 filesystem (the stupid way), chainload Ubuntu's GRUB from Slackware's LILO (see wadsworth's post) or install Slackware's patched GRUB and use it to boot both Slackware and Ubuntu (the smart way -- though you must edit the menu.lst to add Ubuntu as a boot option).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.