LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-19-2013, 10:56 PM   #1
saivinoba
Member
 
Registered: Oct 2007
Distribution: FreeBSD, Slackware
Posts: 48

Rep: Reputation: 9
unlocking encrypted root with keyfile on sdcard/mmc possible?


Hi,

I have Slackware 14.1 installed on my netbook with full disk encryption following README_CRYPT and README_LVM. I have also setup a USB stick for automatic decryption at boot. However, I would like to know if it is possible to use sdcard/mmc card inplace of USB sticks.

I have tried using sdcard but failed. If I use SD card instead of USB stick, automatic decryption is not happening, instead I'm presented with option to provide passphrase. If I use USB stick, unlocking works just fine.

Apart from all the standard module support required (as generated by the mkinitrd script), I also tried adding mmc_core module. Doesn't help. Is that module name wrong or unlocking from sd/mmc cards not supported? The card is also FAT32 formatted.

Please note, when I say I have installed/setup/tried, I have followed proper procedure of setting up keyfile using cryptsetup luksAddKey, creating initrd (using mkinitrd script), editing lilo.conf and finally running lilo after all these edits. If my mkinitrd line and contents of lilo.conf are required I will post later (am not on that netbook right now).

P.S.: Just in case if somebody cares to know ;-) why I want to put keyfile on sdcard. I prefer using passphrase. But when I have to give the netbook to other family members, I don't want to scare them with encryption thingy or having to giveout my most powerful and secretive passphrase ;-) I would like auto unlock using keyfile for such needs. USBs are clunky, protruding outward looking ugly whereas sdcard fits aflush. I have a 2G microsd card as spare too.

Last edited by saivinoba; 12-19-2013 at 11:02 PM. Reason: typo...added information about usgin FAT32 card.
 
Old 12-20-2013, 06:45 PM   #2
nd7rmn8
Member
 
Registered: Jan 2013
Distribution: Arch
Posts: 50

Rep: Reputation: 13
I would guess that you dont have all the modules loaded in order to read the sdcard. Try booting it up all the way, see if you can read the sdcard and take a close look at the output of lsmod. modules with mmc and sdhc would be the ones to pay attention to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ricoh Sd/mmc Card Reader Won't Read Mmc Cards it-s Linux - Hardware 4 07-02-2011 06:49 AM
usb stick unlocking scheme for root encrypted partition in current escaflown Slackware 6 05-09-2010 05:16 PM
LXer: Automatically Unlock LUKS Encrypted Drives With A Keyfile LXer Syndicated Linux News 0 07-09-2008 04:40 PM
KDE 3.5 - Only ROOT can read built in SD / MMC card reader 1kyle SUSE / openSUSE 0 07-07-2008 12:40 PM
Unlocking /root file Carpinus Linux - Newbie 4 01-16-2005 05:12 AM

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

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