LinuxQuestions.org
Review your favorite Linux distribution.
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 06-30-2014, 03:14 PM   #1
orasis
Member
 
Registered: Mar 2008
Distribution: Slackware, Free-BSD
Posts: 53

Rep: Reputation: 34
LUKS and changed disk orders


Hi,

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)
 
Old 06-30-2014, 03:52 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.

Last edited by Drakeo; 06-30-2014 at 03:56 PM.
 
Old 06-30-2014, 03:57 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,502

Rep: Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459
If you can't fix this in the BIOS, an IDE to SATA converter is a cheap fix.
 
Old 06-30-2014, 08:24 PM   #4
orasis
Member
 
Registered: Mar 2008
Distribution: Slackware, Free-BSD
Posts: 53

Original Poster
Rep: Reputation: 34
It still ignores the bios settings. Is it possible to simply change my /dev/crypttab device names? Or do I need to do more than that?

Slackware does boot - that's not a problem (the bios setting handles that perfectly).

Do I have to update my initrd and point it to the new /dev? ... Oh god, I hope not, I hate building initrd's.
 
Old 07-03-2014, 01:11 PM   #5
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
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.
 
  


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
How to recover deleted file from LUKS encrypted hard disk kumariarjun@gmail.com Linux - Newbie 1 06-20-2013 01:47 AM
Retain LUKS-volume in external disk through reformat Yalla-One Fedora 1 01-03-2013 06:29 AM
rsync copying everything not only changed files with luks encrypted drive changcheh Linux - General 1 09-10-2011 09:44 PM
[SOLVED] Automount LUKS encrypted USB disk as regular user gargamel Slackware 11 10-31-2009 05:13 AM
How secure LUKS/LVM disk encryption really is? <Ol>Origy Linux - Security 14 03-09-2009 12:09 PM

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

All times are GMT -5. The time now is 12:15 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