You are not logged in.

#1 2014-10-17 10:28:11

htho
Member
From: Würzburg, Germany
Registered: 2013-05-28
Posts: 4

Mounting Filesystems from crypttab after boot (cryptdisks_start)

Hi,

I have a dockingstation with a harddrive containing an encrypted partition. As my laptop is (obvoisly) not docked all the time, I set the noauto flag in /etc/crypttab. In this case /etc/crypttab has no use, as I cant use the information stored there, to unlock and mount this partition.

When googling that issue, I found cryptdisks_start(man) and cryptdisks_stop(man), which wrap around cryptsetup and use the information from /etc/crypttab These scripts are provided by the debian package maintainers.

Is there something similar for ArchLinux? Did I miss the ArchWay here?

htho

Offline

#2 2014-10-17 10:55:48

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Mounting Filesystems from crypttab after boot (cryptdisks_start)

You can write a script that contains the required cryptsetup command. Don't forget to change the permissions so that only root can read the information, similar to crypttab.
This seems to be simpler than using a wrapper that parses crypttab.

Offline

Board footer

Powered by FluxBB