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 01-02-2012, 12:19 PM   #1
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Rep: Reputation: Disabled
Slackware 13.37 lists removable devices before fixed hard disks


I have just installed slackware 13.37 and my first hard disk (where slackware is installed) is /dev/sdf.
It has all the removable devices as /dev/sda to /dev/sde.
The removable devices are card slots and usb ports on my epson printer and so if the printer is not attached then the system does not boot.
Does anyone know how to get the fixed disks listed before the removable ?

Thanks.
 
Old 01-02-2012, 01:15 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Are you using the huge kernel or the generic one with an initrd?

How about providing the contents of /var/log/dmesg so we can see what the boot sequence is finding?
 
Old 01-02-2012, 02:07 PM   #3
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Original Poster
Rep: Reputation: Disabled
I am using the huge (smp) kernel.
Here is the relevant part of dmesg :
root@darkstar:/home/david# dmesg | grep disk
[ 2.397561] sd 12:0:0:0: [sda] Attached SCSI removable disk
[ 2.399311] sd 12:0:0:1: [sdb] Attached SCSI removable disk
[ 2.401061] sd 12:0:0:2: [sdc] Attached SCSI removable disk
[ 2.402436] sd 12:0:0:3: [sdd] Attached SCSI removable disk
[ 2.616443] sd 13:0:0:0: [sde] Attached SCSI removable disk
[ 5.003374] sd 4:0:0:0: [sdf] Attached SCSI disk
[ 5.488155] sd 6:0:0:0: [sdh] Attached SCSI disk
[ 5.518512] sd 5:0:0:0: [sdg] Attached SCSI disk
root@darkstar:/home/david#
 
Old 01-02-2012, 06:43 PM   #4
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
If this is a brand new install only hours old, I would disconnect the epson printer and reinstall. Connect and configure the printer later.
 
Old 01-03-2012, 08:28 AM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by vovim View Post
I am using the huge (smp) kernel.
Here is the relevant part of dmesg :
root@darkstar:/home/david# dmesg | grep disk
[ 2.397561] sd 12:0:0:0: [sda] Attached SCSI removable disk
[ 2.399311] sd 12:0:0:1: [sdb] Attached SCSI removable disk
[ 2.401061] sd 12:0:0:2: [sdc] Attached SCSI removable disk
[ 2.402436] sd 12:0:0:3: [sdd] Attached SCSI removable disk
[ 2.616443] sd 13:0:0:0: [sde] Attached SCSI removable disk
[ 5.003374] sd 4:0:0:0: [sdf] Attached SCSI disk
[ 5.488155] sd 6:0:0:0: [sdh] Attached SCSI disk
[ 5.518512] sd 5:0:0:0: [sdg] Attached SCSI disk
root@darkstar:/home/david#
You should note that I didn't ask for the edited contents of dmesg. I might, just MIGHT, want to know what drivers were intialized as part of your startup.
 
Old 01-03-2012, 12:49 PM   #6
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Original Poster
Rep: Reputation: Disabled
O.K. Here is the full dmesg attached

Yes, this is a brand new install.
If I disconnect the printer and re-install then my first hard disk (that I will install on) will be /dev/sda.
But if I then re-connect the printer and re-boot will it still list the removable devices first and so find a removable disk on /dev/sda and so still not boot ?
Attached Files
File Type: txt dmesg.txt (30.7 KB, 20 views)
 
Old 01-04-2012, 04:38 PM   #7
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Original Poster
Rep: Reputation: Disabled
I have disconnected the printer and done a new installation.
Because of the other usb ports on my computer the installation disk is now /dev/sde. So slackware is still listing the connected removable drives before the fixed disks
And when I reconnect the printer and re-boot I get a kernel panic because /dev/sde is now a removable drive and the root filesystem cannot be found.
So slackware is still listing the removable drives before the fixed disks.

Does anyone know how to fix this ?

I would like to have the fixed disks listed before the removable disks.
 
Old 01-04-2012, 05:07 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Two possible ways may work:

Use UUID in /etc/fstab, or
Make some udev rules that target the devices, or
Both?
 
Old 01-04-2012, 05:30 PM   #9
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
Type in a terminal:

Code:
$ df
and post that output.

This is just weird.
 
Old 01-04-2012, 05:58 PM   #10
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Also you can specify UUID in lilo.conf

This isn't that strange, I've had it happen with a server which had a power cut while a backup drive was plugged in. On reboot it picked up the backup drive first and tried to use it for root.
 
Old 01-05-2012, 07:42 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You use this phrase several times: 'Slackware lists'. What do you mean by that? Do you mean fdisk lists them that way, or what tool/config-file are you talking about?
 
Old 01-05-2012, 11:48 AM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
OP:

In you your lilo.conf you can do this:

root = /dev/disk/by-id/ata-SAMSUNG_SV1604N_S01FJ10X999999 OR
root = "UUID=/dev/disk/by-uuid/18843936-00f9-4df0-a373-000d05a5dd44"

These files are symlinks to sdaN so you can tell easily which is which.

Last edited by dive; 01-05-2012 at 11:49 AM.
 
Old 01-05-2012, 01:37 PM   #13
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
This may be a dim comment, but there seems to be a lot of scsi stuff going on...do you actually have any scsi kit onboard?
Hard to imagine why a printers removable drive would have anything to do with scsi.

Years ago we used scsi drivers to manage optical drives iirc, but I think those days are passed, it is rare to find scsi drives in recent desktop hardware.

I wonder whether during the install you said yes to a load of scsi drivers that you didn't need, and they got greedy...

tobyl
 
Old 01-05-2012, 01:52 PM   #14
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
USB drives are treated as scsi disks.
 
Old 01-05-2012, 02:05 PM   #15
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Oh yes silly me, but the other disks?

$ cat dmesg.txt |grep scsi
[ 0.882143] scsi: <fdomain> Detection failed (no card)
[ 0.882975] iscsi: registered transport (qla4xxx)
[ 0.947612] scsi2 : sata_sil24
[ 0.947880] scsi3 : sata_sil24
[ 0.950072] scsi4 : sata_nv
[ 0.950318] scsi5 : sata_nv
[ 0.952094] scsi6 : sata_nv
[ 0.952338] scsi7 : sata_nv
[ 0.954121] scsi8 : sata_nv
[ 0.954363] scsi9 : sata_nv
[ 0.955968] scsi10 : pata_amd
[ 0.956218] scsi11 : pata_amd
[ 1.393012] scsi12 : usb-storage 1-4:1.0
[ 1.611612] scsi13 : usb-storage 1-9:1.0
[ 2.395456] scsi 12:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0
[ 2.396951] scsi 12:0:0:1: Direct-Access Generic USB CF Reader 1.01 PQ: 0 ANSI: 0
[ 2.398700] scsi 12:0:0:2: Direct-Access Generic USB SM Reader 1.02 PQ: 0 ANSI: 0
[ 2.400450] scsi 12:0:0:3: Direct-Access Generic USB MS Reader 1.03 PQ: 0 ANSI: 0
[ 2.613459] scsi 13:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
[ 4.989278] scsi 4:0:0:0: Direct-Access ATA SAMSUNG HD103SJ 1AJ1 PQ: 0 ANSI: 5
[ 5.481438] scsi 5:0:0:0: Direct-Access ATA SAMSUNG HD103SJ 1AJ1 PQ: 0 ANSI: 5
[ 5.482010] scsi 6:0:0:0: Direct-Access ATA SAMSUNG HD103UJ 1AA0 PQ: 0 ANSI: 5
[ 6.289222] scsi 9:0:0:0: CD-ROM HL-DT-ST BD-RE BH10LS30 1.00 PQ: 0 ANSI: 5
[ 6.317271] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[ 6.317766] sr 9:0:0:0: Attached scsi CD-ROM sr0
[ 7.819514] sd 12:0:0:0: Attached scsi generic sg0 type 0
[ 7.819750] sd 12:0:0:1: Attached scsi generic sg1 type 0
[ 7.823558] sd 12:0:0:2: Attached scsi generic sg2 type 0
[ 7.823799] sd 12:0:0:3: Attached scsi generic sg3 type 0
[ 7.824037] sd 13:0:0:0: Attached scsi generic sg4 type 0
[ 7.824271] sd 4:0:0:0: Attached scsi generic sg5 type 0
[ 7.824504] sd 5:0:0:0: Attached scsi generic sg6 type 0
[ 7.824739] sd 6:0:0:0: Attached scsi generic sg7 type 0
[ 7.824975] sr 9:0:0:0: Attached scsi generic sg8 type 5
 
  


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
programmatically identify removable vs fixed drives ahz Programming 4 08-15-2009 08:21 PM
formatting removable disks adluri LinuxQuestions.org Member Intro 1 10-17-2008 04:37 AM
how to format the hard disks(removable & fixed) ? himy Linux - Newbie 11 09-09-2007 06:23 PM
How to make slackware linux recognize USB removable devices and net prob jsky_20 Linux - Newbie 4 09-19-2006 11:25 PM
Listbugs in Synaptic lists fixed problems davcefai Debian 2 01-15-2006 01:59 PM

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

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

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