Re: split cryptsetup?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jan Reusch wrote:

> it's in german and i haven't tested this yet.
> that's why i don't know if it works but you should have a look at this
> section of the gentoo wiki:
> http://de.gentoo-wiki.com/DM-Crypt#T.C3.A4glicher_Gebrauch
> looks like a nice trick to me.

In pam_mount, which is imho the best solution to mount user homes at login,
there is also a "mount.crypt" and "umount.crypt" script. A big advantage
of "mount.crypt" is, that it also performs an fsck when necessary.

With mount.crypt in /sbin you can use in fstab:

/dev/CRYPTED /mnt/media crypt noatime,noexec,nodev,noauto,user 0 0

(/dev/CRYPTED is the raw luks device)

And then as a user it should be possible to mount /dev/CRYPTED to /mnt/media
with

$ mount /mnt/media

A problem is, that "umount /mnt/media" only unmounts /mnt/media, but does
not close the luks device. Here one needs to use "umount.crypt /mnt/media".

I have not tested above, but I use "mount -t crypt /dev/CRYPTED /mnt/media"
sometimes manually.

Regards,
Till



---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux