On Thu, Sep 4, 2008 at 2:48 PM, Andrea Bicciolo
<a.bicciolo@mtouch.it> wrote:
Alexander,
a far as I know the mapping should be recreated each time you reboot using /sbin/cryptsetup. We are using luks extension and at each reboot we need to issue cryptsetup luksOpen </dev/name> <mappername>.
/etc/crypttab should make the use of this command unecessary. The passphrase will then be asked at boot time.
Cheers,
Cassiano Leal
P.S.: Please, do not top post on the list. tx
Then we can mount /dev/mapper/mappername.
Hope this help,
Andrea
Alexander Golovin ha scritto:
I was trying to encrypt my ext3 partition /dev/hda6, that's what I did:
1. I've added modules: aes, dm_mod, dm_crypt, to /etc/modules
2. Created the cryptographic device mapper: cryptsetup -y create crypt /dev/hda6 (entered passphrase twice)
3. Changed this options: echo "crypt /dev/hda6" >> /etc/crypttab; echo "/dev/mapper/crypt /mnt/crypt ext3 defaults 0 1" >> /etc/fstab
4. Created mount directory; mkdir /mnt/crypt
5. Created a filesystem on the mapped device: mkfs.ext3 /dev/mapper/crypt
So, when I've tryied to mount /mnt/crypto It was mounted without passphrase question, but it was mounted. But , after reboot I've tried to mount my partition, and that what I have now:
# mount /mnt/crypt/
mount: special device /dev/mapper/crypt does not exist
And I don't have a crypt file in /dev/mapper/ directory.
--
Andrea Bicciolo
a.bicciolo@mtouch.it
----------------------------------------------------------
MediaTouch 2000 Srl
Digital media per la comunicazione e la formazione
Official Moodle Partner for Italy
Company site: http://www.mediatouch.it
Moodle services site: http://mediatouch.moodle.com
-----------------------------------------------------------
V.Michele di Lando,10 - 00162 Roma - Italy
Tel.+39.6.9028.6188 - Fax +39.6.6227.7062 - voip 6898531160
-----------------------------------------------------------