Page 1 of 1

misant, linux peops luks and mounting at boot

Posted: Sun Apr 15, 2007 6:32 am
by Underpants?
seems like a simple thing, but how to I bypass or automate the encrypted filesystem passphrase query at boot, so that my intranet (lol) server doesn't hang until I can pop in and type a simple word on a keyboard?
The only nonsense I've found so far is how to invoke crypt USERNAME in a startup script, which works with this console-less app about as much as a bicycle with no seat does a tour de france hopeful.
I am predicting the answer to be simple, in turn making me feel stupid. KTIABYE

Posted: Sun Apr 15, 2007 11:07 am
by ^misantropia^
I'd say the simple solution would be to not encrypt the file system. What are you using for encryption (and what distro)?

EDIT: I should learn to read topic titles. Still, what distro?

Posted: Sun Apr 15, 2007 12:53 pm
by ^misantropia^
A thought occurred while doing the dishes: wouldn't

Code: Select all

echo "yourpassword" | cryptsetup luksOpen /dev/loop0 fsname
do the trick?

Posted: Sun Apr 15, 2007 6:40 pm
by Underpants?
I'll bet it would, will give it a try as soon as the lawn is mowed.
Thanks!
As far as the filesystem being encrypted-it started as a multi-user samba fileserver back when it was fashionable to restrict personal use of disk usage.
Now we've got a few years of mysql data and a big hatful of poorly-documented (oops) customizations in a warrantee-less PE 2650 living a bare-wire failover existence. I'm scared to even look at it cross-eyed, much less do a full rebuild and restore.