[SOLVED] Slackware 13.37 lists removable devices before fixed hard disks
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: Slackware64 current and Slackware arm current
Posts: 64
Rep:
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 ?
Distribution: Slackware64 current and Slackware arm current
Posts: 64
Original Poster
Rep:
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#
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.
Distribution: Slackware64 current and Slackware arm current
Posts: 64
Original Poster
Rep:
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 ?
Distribution: Slackware64 current and Slackware arm current
Posts: 64
Original Poster
Rep:
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.
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.
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?
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.