Get fsck to work with pam_mount
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've been trying to get luks volumes mounted at login with pam_mount
fsck
ed on mount, but without success.
fstab
provides the sixth field, where one can set a flag to determine whether the volume should be fsck
ed on mount, and its priority. I'd like to set my luks
partition, which is mounted with pam_mount
to be fsck
ed too.
/etc/security/pam_mount.conf.xml
has in it the following:
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
However, as far as I can tell fsck
is not an option to mount
. Indeed, if I include fsck
in the options=...
given to the <volume ... />
statement in /etc/security/pam_mount.conf.xml
, my volume does not get mounted at login.
<volume user="user" fstype="crypt" path="/dev/sda2" mountpoint="/mnt/myvolume" options="defaults,fsck" />
The man page for pam_mount.conf
lists fsck
among auxiliary programs for which special default parameters should be specified. In particular, for fsck
:
<fsck>fsck -p %(FSCKTARGET)</fsck>
Local volumes will be checked before mounting if this program is set.
But, I couldn't figure how to use this info. I'm not sure where the <fsck>...</fsck>
statement should go, or whether %(FSCKTARGET)
is an internal variable to pam_mount
or something I should specify directly.
What is the proper way to get volumes mounted with pam_mount
to get fsck
ed on mount?
mount pam luks fsck
add a comment |Â
up vote
0
down vote
favorite
I've been trying to get luks volumes mounted at login with pam_mount
fsck
ed on mount, but without success.
fstab
provides the sixth field, where one can set a flag to determine whether the volume should be fsck
ed on mount, and its priority. I'd like to set my luks
partition, which is mounted with pam_mount
to be fsck
ed too.
/etc/security/pam_mount.conf.xml
has in it the following:
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
However, as far as I can tell fsck
is not an option to mount
. Indeed, if I include fsck
in the options=...
given to the <volume ... />
statement in /etc/security/pam_mount.conf.xml
, my volume does not get mounted at login.
<volume user="user" fstype="crypt" path="/dev/sda2" mountpoint="/mnt/myvolume" options="defaults,fsck" />
The man page for pam_mount.conf
lists fsck
among auxiliary programs for which special default parameters should be specified. In particular, for fsck
:
<fsck>fsck -p %(FSCKTARGET)</fsck>
Local volumes will be checked before mounting if this program is set.
But, I couldn't figure how to use this info. I'm not sure where the <fsck>...</fsck>
statement should go, or whether %(FSCKTARGET)
is an internal variable to pam_mount
or something I should specify directly.
What is the proper way to get volumes mounted with pam_mount
to get fsck
ed on mount?
mount pam luks fsck
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've been trying to get luks volumes mounted at login with pam_mount
fsck
ed on mount, but without success.
fstab
provides the sixth field, where one can set a flag to determine whether the volume should be fsck
ed on mount, and its priority. I'd like to set my luks
partition, which is mounted with pam_mount
to be fsck
ed too.
/etc/security/pam_mount.conf.xml
has in it the following:
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
However, as far as I can tell fsck
is not an option to mount
. Indeed, if I include fsck
in the options=...
given to the <volume ... />
statement in /etc/security/pam_mount.conf.xml
, my volume does not get mounted at login.
<volume user="user" fstype="crypt" path="/dev/sda2" mountpoint="/mnt/myvolume" options="defaults,fsck" />
The man page for pam_mount.conf
lists fsck
among auxiliary programs for which special default parameters should be specified. In particular, for fsck
:
<fsck>fsck -p %(FSCKTARGET)</fsck>
Local volumes will be checked before mounting if this program is set.
But, I couldn't figure how to use this info. I'm not sure where the <fsck>...</fsck>
statement should go, or whether %(FSCKTARGET)
is an internal variable to pam_mount
or something I should specify directly.
What is the proper way to get volumes mounted with pam_mount
to get fsck
ed on mount?
mount pam luks fsck
I've been trying to get luks volumes mounted at login with pam_mount
fsck
ed on mount, but without success.
fstab
provides the sixth field, where one can set a flag to determine whether the volume should be fsck
ed on mount, and its priority. I'd like to set my luks
partition, which is mounted with pam_mount
to be fsck
ed too.
/etc/security/pam_mount.conf.xml
has in it the following:
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
However, as far as I can tell fsck
is not an option to mount
. Indeed, if I include fsck
in the options=...
given to the <volume ... />
statement in /etc/security/pam_mount.conf.xml
, my volume does not get mounted at login.
<volume user="user" fstype="crypt" path="/dev/sda2" mountpoint="/mnt/myvolume" options="defaults,fsck" />
The man page for pam_mount.conf
lists fsck
among auxiliary programs for which special default parameters should be specified. In particular, for fsck
:
<fsck>fsck -p %(FSCKTARGET)</fsck>
Local volumes will be checked before mounting if this program is set.
But, I couldn't figure how to use this info. I'm not sure where the <fsck>...</fsck>
statement should go, or whether %(FSCKTARGET)
is an internal variable to pam_mount
or something I should specify directly.
What is the proper way to get volumes mounted with pam_mount
to get fsck
ed on mount?
mount pam luks fsck
mount pam luks fsck
asked 19 mins ago
gusbrs
1366
1366
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479511%2fget-fsck-to-work-with-pam-mount%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password