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.
I'm totally new to Linux and after a week of trial and error I have 13.37 installed on my machine. However, there are problems.
For starters I can't get Slackware to boot unless I use a USB thumb drive. It's the only OS on my hard drive. LILO is installed but it may be configured incorrectly. I have two HDs, one with Slackware and the other with Maverick. Even if I change the boot priority in BIOS, slackware will not boot, instead my machine just cycles through BIOS initialization.
I don't know if this has any relevance but it's worth noting that I get this warning message: "/dev/sdb1 is not on the first disk". What does it mean? /dev/sdb1 is the slackware partition.
Are you sure you installed lilo to the system?
Sounds like you may have just put it on a usb stick.
If not try:
in terminal as root
pkgtool
setup > liloconfig
Before I try your suggestion, I'm almost certain it's installed. There is a LILO configuration file in /etc:
Quote:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
#
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/root
#delay = 5
# VESA framebuffer at 1024x768x64k
vga = 791
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# Normal VGA console
#vga = normal
# End LILO global section
# Linux root partition section
image = /boot/vmlinuz
root = /dev/root
label = Linux
read-only
# End root Linux partition section
And then there's this error file:
Quote:
Warning: LBA32 addressing assumed
Warning: /dev/root is not on the first disk
Ok, I'm not real sharp on lilo because I use grub but I think you just need to boot from the install dvd and use cfdisk to make whatever partition lilo is on bootable.
boot = /dev/root <------------------------------------ Must be the device where lilo is to be installed /dev/sda or /dev/sdb
#delay = 5
# VESA framebuffer at 1024x768x64k
vga = 791
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# Normal VGA console
#vga = normal
# End LILO global section
# Linux root partition section
image = /boot/vmlinuz
root = /dev/root <------------------------------------- The partition with Slackware on it /dev/sda1 or /dev/sdb1 etc ..
You might just add lba32 to lilo and compact if you want
After fixing that re run lilo
My lilo
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda
compact
lba32
default = Slackware
# Linux bootable partition config ends
image = /boot/vmlinuz-custom-2.6.39
root = /dev/sda1
label = Slackware
read-only
Don't change your bios settings and add this to your /boot/grub/menu.lst in your maverick will allow you to boot Slackware. This is assuming your maverick installation is still using grub legacy to boot.
Quote:
title Slackware
root (hd1,0)
kernel /boot/vmlinuz root=/dev/sdb ro
alternative is boot up your slackware with usb key run liloconfig from terminal mode, select simple and install lilo to /dev/sdb1 partition when asked. Then add this to your /boot/grub/menu.lst
Quote:
title Slackware
root (hd1,0)
chainloader +1
If you don't have a /boot/grub/menu.lst then you might have grub2, which is different as far as making changes.
Last edited by colorpurple21859; 10-10-2011 at 09:53 PM.
This is from boot info script. You might understand it more than I do.
Quote:
============================= Boot Info Summary: ===============================
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 1 for (,msdos1)/boot/grub.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub on this drive.
File system: ext4
Boot sector type: LILO
Boot sector info: LILO is installed in boot sector of /dev/sdb1 and
looks at sector 142942454 of /dev/sdb for the "map"
file, and the "map" file was found at this location.
Operating System: Slackware 13.37.0
Boot files: /etc/fstab /etc/lilo.conf /boot/map
I'm totally new to Linux and after a week of trial and error I have 13.37 installed on my machine. However, there are problems.
For starters I can't get Slackware to boot unless I use a USB thumb drive. It's the only OS on my hard drive. LILO is installed but it may be configured incorrectly. I have two HDs, one with Slackware and the other with Maverick. Even if I change the boot priority in BIOS, slackware will not boot, instead my machine just cycles through BIOS initialization.
I don't know if this has any relevance but it's worth noting that I get this warning message: "/dev/sdb1 is not on the first disk". What does it mean? /dev/sdb1 is the slackware partition.
You have the bootloader (LILO) installed into boot partition. Then, you need that partition to be bootable (to have the BOOT flag) and the harddisk device (sdb) to have a properly (MS-DOS) MBR required to launch this partition boot.
So, I believe that in our case, if everything is fine but the partition is not booted, the magic keyword is called 'MBR'. In other words, we have a 'virgin' disk, partitioned of course, but without an bootable MBR. If this is the case, you need to repair the SDB's MBR executing:
Both Darth Vader and zasavage's and my solution are different ways of getting lilo installed to the MBR of the second harddrive. With lilo installed to the mbr of the second harddrive changing the boot disk order in bios will determine which distro gets booted.
If you don't won't to mess with bios settings, try running update-grub in maverick and see if it will pick up the slackware installation and create an entry in your grub2 menu. If update-grub doesn't pick up the slack installation then you can create a grub slackware menu item by editing the /etc/grub.d/40_custom file to add the following entry :
and then rerun update-grub again. This should give you an entry in your grub menu to chainload to the lilo bootloader installed on the second harddrive that will allow you to boot Slackware.
The following entry in /etc/grub.d/40_custom will create an entry that doesn't involve chainloading that should allow slackware to boot directly from your grub menu.
Quote:
menuentry "Slackware" {
insmod part_msdos
insmod ext2
set root=(hd1,1)
linux /boot/vmlinuz root=/dev/sdb1 ro
}
If you still have trouble booting with either of these entries, try removing the "insmod part_msdos" line and see if that helps.
Last edited by colorpurple21859; 10-10-2011 at 09:57 PM.
Hey colorpurple21859- I tried zasavage's suggestion first because it was the easiest. So now when I boot I get a grub splash screen. Slackware is one of the options but when I select that option it returns an "error out of disk space"
Editing the /etc/grub.d/40_custom files didn't work.
With the chainloading edit, it gets me to the grub splash screen, and there's two selections: linux on /dev/sdb1 and Slackware (not sure what's going on there). There's also two different selections for Ubuntu. Selecting /dev/sdb1 cycles through bios initiation. Selecting Slackware returns "error: out of disk"
Without chainloding, both selections return "error: out of disk"
Something worth noting: At one point when I was updating grub after editing the 40_custom file, my two hard drives swapped device names. In other words, Ubuntu became /dev/sdb and slackware became /dev/sda. I noticed this in the output text after updating grub. After rebooting my computer, it went back to normal. Any insight on what's going on here?
I'm going to leave this alone for tonight my brain needs a break.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.