LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 05-12-2010, 01:14 AM   #1
carla schneider
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Slackware current : boot problem on ata disk


Booting stops with kernel panic when trying to mount the root fs.


The kernel is huge-smp-2.6.33.3-smp.
This is the lilo.conf , the problem is booting alt_linux which
is a new installation of slackware current on /dev/hda5

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32
boot = /dev/hda
#compact # faster, but won't work on all systems.
delay = 50
vga = normal
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
# Linux bootable partition config begins
image = /boot/vmlinuz-huge-smp-2.6.27.7-smp
root = /dev/hda6
label =slackw12
append = "max_luns=8"
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
image = /altlnx/boot/vmlinuz
root = /dev/hda5
label =alt_linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

Here the boot screen:
http://yfrog.com/cbpaniccj
The listing on top looks like the partiontions of disk hda,
but it says sda - when there was an other sata disk connected
it was listed as sdb. Could it be that there is now a problem
booting from ata disks ?

Using the lilo and lilo.conf from the new installation
gives the same results, obviously the new kernel cannot
mount the hda5 partition.
Is there any solution except using a sata disk as root device ?
 
Old 05-12-2010, 01:30 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
This sounds like this:
http://rlworkman.net/howtos/libata-switchover
 
Old 05-12-2010, 01:33 AM   #3
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,862

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Clearly your drive is being assigned as sda at boot time, so changing the line:

root = /dev/hda5

to

root = /dev/sda5
(And make sure the fstab entries are correct - probably are if new install)

for the alt_linux stanza should make it work.

But just to be clear, I assume that you are managing lilo from the first linux on hda6 and that the kernel running at that time is assigning the drive as hda, so do not change the other instances of 'hda' to 'sda' and you should be OK.

Last edited by astrogeek; 05-12-2010 at 01:35 AM.
 
Old 05-12-2010, 01:37 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you're installing the loader from the older system and it doesn't grok sda5, you should be able to add a line like 'append = "root=/dev/sda5"' to that stanza so the old and new system can agree to disagree.
 
Old 05-12-2010, 01:12 PM   #5
carla schneider
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by slakmagik View Post
If you're installing the loader from the older system and it doesn't grok sda5, you should be able to add a line like 'append = "root=/dev/sda5"' to that stanza so the old and new system can agree to disagree.
That solves the problem , but when a sata disks is connected
I have to use /dev/sdb , when two sata disks are connected /dev/sdc ...
So one has to change lilo.conf and fstab depending on how
many sata disks are connected - not very practical.
 
Old 05-12-2010, 02:53 PM   #6
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,862

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by carla schneider View Post
That solves the problem , but when a sata disks is connected
I have to use /dev/sdb , when two sata disks are connected /dev/sdc ...
So one has to change lilo.conf and fstab depending on how
many sata disks are connected - not very practical.
You can use the device UUID to always mount the same device.

append = "root=UUID=xxxxxxxxxxxxxxxx", where "xxxx..." is the UUID of the root device (include quotes in the lilo append line).

You can find the UUID like this (from my current system)...

Code:
# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2010-05-12 04:09 0e7ff4a6-ca3e-4d38-b278-e68de9b7162b -> ../../sda5
lrwxrwxrwx 1 root root 11 2010-05-12 04:09 1532502f-7114-4909-a3eb-1d83429ce0ec -> ../../sda10
lrwxrwxrwx 1 root root 11 2010-05-12 04:09 3936e374-a7b2-4b0f-8a8d-578f8af51284 -> ../../sda11
lrwxrwxrwx 1 root root 10 2010-05-12 04:09 3d632f3b-aacf-4eb6-a843-7409ddd27ef4 -> ../../sda9
lrwxrwxrwx 1 root root 10 2010-05-12 04:09 8189bf49-8fe3-49b1-9fd3-e918b2104186 -> ../../sda8
lrwxrwxrwx 1 root root 10 2010-05-12 04:09 af38f3b8-069e-4074-a718-1a9596239211 -> ../../sda7
lrwxrwxrwx 1 root root 10 2010-05-12 04:09 b65e57b2-81e2-11da-b9de-03c5249d19b2 -> ../../sda6
lrwxrwxrwx 1 root root 10 2010-05-12 04:09 f467713c-98ba-11dd-af55-cd9288478ce2 -> ../../sda1
Copy the UUID of the target partition into the lilo append line AND into your fstab in that partition and you should be all set!

(Example fstab line : UUID=xxxxxxxxxxxx / ext3 defaults 1 1)

You can do a similar thing using labels if you have assigned labels to the partitions, like this...

append = "root=LABEL=alt_linux_root"
fstab : LABEL=alt_linux_root / ext3 defaults 1 1

Either of these will keep the device consistent across different hardware configs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel boot option for using enhanced mode P-ATA+S-ATA dont_stop_me Linux - Hardware 0 12-22-2006 03:39 PM
Booting problem with Slackware in S-Ata disk.... avols143 Linux - General 5 09-26-2006 06:28 PM
usb modem and S-ATA Disk problem...need your help avols143 Slackware 2 07-24-2006 10:51 AM
Boot Loader needed for Windows x64 / RHEL 4 WS/ S-ATA Hard Disk I_M_Tired_Of_XP Red Hat 5 07-19-2005 01:31 AM
Dual boot Xp/Slackware on ATA Raid Controller wma Slackware 4 07-27-2003 11:18 AM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration