LinuxQuestions.org
Help answer threads with 0 replies.
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 10-10-2011, 09:16 AM   #1
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Rep: Reputation: Disabled
13.37 Will Not Boot, Except with Bootable USB


Greetings All!

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.

Last edited by DMTspice; 10-10-2011 at 01:20 PM.
 
Old 10-10-2011, 10:31 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
What is the "USB" you refer to? An external hard disk or flash memory?

When you say your machine won't boot without it - do you see the lilo boot splash screen when this USB device is not plugged in?
 
Old 10-10-2011, 12:17 PM   #3
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
It's a bootable USB thumb drive that I created while configuring slackware on my machine. I almost skipped that step but I'm sure glad I did it now.

When the USB stick is not plugged in, I DO NOT see the lilo splash screen. Computer just cycles through the BIOS initialization.
 
Old 10-10-2011, 12:29 PM   #4
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
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
 
Old 10-10-2011, 01:07 PM   #5
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
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

Last edited by DMTspice; 10-10-2011 at 01:09 PM.
 
Old 10-10-2011, 01:37 PM   #6
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
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.
 
Old 10-10-2011, 01:59 PM   #7
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Rep: Reputation: 6
HI there DMTspice

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


regards

Lawrence

Last edited by zasavage; 10-10-2011 at 02:15 PM.
 
Old 10-10-2011, 02:43 PM   #8
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Okay I'll try too see if changing the configuration file works.
 
Old 10-10-2011, 03:18 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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.
 
Old 10-10-2011, 04:40 PM   #10
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
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.

sda1: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________________________________

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

sdb2:
 
Old 10-10-2011, 04:42 PM   #11
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by DMTspice View Post
Greetings All!

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:

Code:
lilo -M /dev/sdb
lilo -A /dev/sdb 1
 
Old 10-10-2011, 05:50 PM   #12
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Damn! I don't know if I should go with Darth Vader, colorpurple21859, or zasavage's solution.
 
Old 10-10-2011, 09:52 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
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 :
Quote:
menuentry "Slackware" {
insmod part_msdos
insmod ext2
set root=(hd1)
chainloader +1
}
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.
 
Old 10-10-2011, 10:44 PM   #14
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
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"

I'll try your suggestion next...
 
Old 10-10-2011, 11:59 PM   #15
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
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.

Last edited by DMTspice; 10-11-2011 at 12:07 AM.
 
  


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
Custom Bootable USB Flash Drive: Boot Mounting Problem TKH Linux - Newbie 1 10-05-2011 08:27 AM
[SOLVED] Install Linux dual boot without cd drive or bootable USB on XP system? katmandieux Linux - Newbie 9 04-18-2011 12:31 AM
Creating bootable CDROM from a bootable USB drive seaquesttr Linux - Desktop 2 08-01-2010 11:57 AM
How to boot from USB using a bootable CD? neoskylla Linux - Software 6 08-30-2007 12:16 PM
boot pc from a bootable-iso without a cd or usb-device psytroll Linux - General 1 02-23-2006 01:27 PM

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

All times are GMT -5. The time now is 07:19 PM.

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