I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 408 votes ~ 7 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article Automounting card readers and USB keys using autofs:
#6 Re: Automounting card readers and USB keys using a Posted by Seaslug (68.100.xx.xx) on Thu 28 Apr 2005 at 16:19 I'm using cryptsetup - more accurately, cryptsetup-luks (though I haven't yet played with the luks extentions). This allows me to use a keyfile in place of a password for the partition or device initialisation off an encrypted root, with single command. Can use AES with essid and a sha256 seed... Check here: http://www.saout.de/tikiwiki/tiki-index.php?page=HomePage Works good on an encrypted root, home, and swap (though the 2.6.11.7 kernel tends to thrash a bit in the cryptoswap - be warned) I'm thinking more along the lines of running this, which will give the system a mapping for the device in dev/mapper/blah and then mount and unmount through autofs when the mapping is there (dev/mapper/blah shows up). Briefly, /dev/mapper/blah ain't there until it's told to be by the cryptsetup command. After it's there, you can format it using mkfs (or whatever), mount it, and use it normally. Only gotta format once. Shutdown. Reboot. To get the device back, run the exact same cryptsetup command that you used to create the device, and it's there ready to mount. If you don't run that exact same command, the system sees nothing but random data on the device - excellent question for the bad guys to ponder ;) Cryptsetup has methods for automounting static devices on boot, but I don't think anybody's published a method for hotplugging a harddrive yet. So, back to the question: How do I run the script that runs cryptsetup on a hotplugged harddisk prior to automounting? I'll need to remember that scsi USB drives take a little time to settle before being fully identified as such... Cheers
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account