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.
So I installed a new disk into my machine which happens to be an IDE drive. It shows up as /dev/sda pushing my SATA drives back to /dev/sdb and therefore I am unable to boot my system until I take out the offending IDE drive.
I have tried all of the jumpers on the IDE disk and different cable positions... nothing, it still shows up as /dev/sda. Changing the order in my BIOS does nothing either (as should be expected...).
I only have one IDE connector on the mobo so ... it's always on the primary channel.
Is there anyway to force it to become /dev/sdb/c/d etc anything other than /dev/sda? So that I can boot my encrypted disks properly?
Thanks.
(P.S I know a USB enclosure would do the trick but I don't want to do that)
yes this is a problem with mixing them easy fix go into bios setup and set your priority disk to the manufactures harddrive you want to use and in there put your harddrives in the order you want. this will put it back the way it was.
Quote:
Changing the order in my BIOS does nothing either (as should be expected...).
yes but did you chose the correct harddrive to boot from. I have them mixed and put them in order but I have to choose the one I want to boot from also.
In your fstab, crypttab, and mkinit command line, you can specify the disk by UUID of the partition instead of /dev/sdXX.
(I find the UUID's with the blkid command. Use yours instead of blah-blah-blah.)
In fstab, replace the /dev/blah with UUID=blah-blah-blah
In the mkinit command line, replace the "-C /dev/blah" part with "-C /dev/disk/by-uuid/blah-blah-blah"
In crypttab, you can replace the /dev/blah with /dev/disk/by-uuid/blah-blah-blah too.
(Interestingly, "cryptsetup luksOpen" command will also recognize the device parameter as UUID=blah-blah-blah, but "cryptsetup isLuks" does not, so rc.0 does not open the device.)
Additionally, if your slackware boots and loads the existing initrd + kernel, you shouldn't have to adjust your initrd.
If it's just that your encrypted /home (or whatever you mount it as) isn't loading, then yes you can simply change your crypttab.
Last edited by Hangaber; 07-03-2014 at 01:28 PM.
Reason: Added last paragraph.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.