How to configure /etc/fstab to auto mount encrypted partition?
Recently installed openSUSE 12.1 dual booting with Debian.
Layout listed below: Code:
Debian ext3 /root sda1 When in Debian, I am able to manually mount openSUSE /home (sda6) and get the files that I needed from there. Wanted to know how to configure Debian's /etc/fstab so that I can automatically mount sda6 (after entering password) during boot. Thanks |
I had asked a similar question. I didn't get a response either. So I am guessing the answer is no.
|
Quote:
this is a good reply, thanks for the heads up. |
How do you mount Debian in openSUSE? Maybe you can wright a script for your autostart when logging in or maybe rclocal. Documentation seams to be skimpy on the and the only thing I could find was an FAQ that said to mount with a loop0 when doing a backup.
Try this site. http://code.google.com/p/cryptsetup/ Code:
Package: cryptsetup |
Try this Howto from Arch Linux. https://wiki.archlinux.org/index.php...tion_with_LUKS Looks like they go into it in depth.
|
Found the answer, logged here for future users who's looking for the same answer:
1. Add this line to /etc/crypttab: my_encrypted_partition /dev/sda6 none luks,timeout=30 2. Set the home partition to this in /etc/fstab: /dev/mapper/my_encrypted_partition /home ext4 nodev,nosuid,relatime 0 2 You'll be asked the passphrase for my_encrypted_partition during boot up. That's it. Merry Christmas. |
I saw this...... and set this up in CENTOS 7...
It does not prompt you for a password, it just drop you to emergency maintenance mode upon boot up. But this worked for me: udisksctl unlock -b /dev/sda2 udisksctl mount -b /dev/mapper/vg_tesla-lv_home Obtained from the 3rd answer to this ask Ubuntu post.. (1st post so can't post a web link..... but its: askubuntu.com/questions/63594/mount-encrypted-volumes-from-command-line) Automatic mounting on bootup didn't work for me... |
All times are GMT -5. The time now is 12:55 AM. |