LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-20-2015, 08:27 PM   #1
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Rep: Reputation: 32
Booting Slack LVM over LUKS from USB SATA Enclosure


Seems a very long time since I had any problems, either I was not tinkering or I am getting more competent with Slack

So I have been tinkering again. Due to some issues with my MOBO I have my second 1 GIG HD in a USB enclosure which I wish to use as an independent bootable drive where I can copy my home dir to and copy system updates too, in effect a mirror. I know I can use RAID-1 but the problem with that is that it immediately mirrors any accidental deletions or other errors I may make.

On sdb I did a fresh install of Slackware 14.1, using LVM over LUKS. To make the initrd I used the initrd_command_generator.sh. The command I used was

Code:
mkinitrd -c -k 3.10.17-smp -f reiserfs -r /dev/slackcrypto_backup/root -m usb-storage:ehci-hcd:ehci-pci:ohci-hcd:reiserfs -C /dev/sdb2 -L -u -o /boot/initrdsdb2.gz
Then I went into the BIOS and changed the first bootable HDD to sdb.

But it does not boot correctly. It gets as far as unlocking LUKS and complains along the lines of

FROM MEMORY
Code:
LUKS unlocking device /dev/sdb2 not available
mounting /dev/slackcrypto_backup/root on /mnt failed no such file or directory
..................
..................
..................
..................
..................
scsi: 9.0.0.0 [sdb] WDC-EZEX-22BN5A0
19533525168 512 byte logical blocks
..................
..................
..................
..................
..................
sdb: sdb1 sdb2 sdb3
So the problem seems clear. Luks seems to attempting to unlock sdb2 before it is fully initialised. After the error I am dropped to the command line and I can indeed unlock sdb2 'manually'and open the LVM partitions too.

Is my diagnosis correct? If so how can I delay LUKS (or speed up sbd initialisation).

Any advice as always greatly appreciated.

BashTin
 
Old 05-21-2015, 02:39 AM   #2
fsLeg
Member
 
Registered: Dec 2013
Location: Russia, Moscow
Distribution: Slackware, EndeavourOS
Posts: 89

Rep: Reputation: Disabled
Did you try `rootdelay` kernel option or `WAIT` mkinitrd.conf option? It takes a few seconds for USB devices to appear in /dev.
 
Old 05-21-2015, 05:59 AM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
I can't help but wonder why you don't save yourself trouble and also enable full speed by going all SATA? Even the enclosure you have now is likely easily outfitted with SATA or eSATA connectors.
 
Old 05-21-2015, 06:46 AM   #4
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Original Poster
Rep: Reputation: 32
fsLeg, that is just what was required, thanks.

enorbet, they are sata and the enclosure is a sata enclosure. Just wondered why you thought they were not?

I am using an enclosure because I am pretty certain that there is some input/output issues with at least some of the other sata ports on the mobo. Would get frequent i/o errors, drive not being detected, boot up problems, etc. I checked this by swapping the hdds around on the mobo and the problems were still there. I took out the extra drive and the problems went away. So I really bought the enclosure to double check the mobo/drive and with the enclosure there are no more issues.

BashTin
 
  


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
[SOLVED] Problems booting from LUKS on top of LVM nake Linux - Software 2 12-30-2013 05:59 AM
Trouble booting new Slack 13. LVM on Luks BashTin Slackware 8 10-22-2011 07:56 PM
LUKS LVM with usb token at boot mrmnemo Ubuntu 3 02-26-2011 08:35 AM
12.1 LUKS and LVM install on system with multiple SATA and IDE HDD Z038 Slackware - Installation 10 02-03-2010 05:05 PM
[SOLVED] USB SATA HD Docking Enclosure - AHDDU100F not recognized with Slackware 12.1 mostlyharmless Slackware 1 04-04-2009 06:39 PM

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

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