You are not logged in.

#1 2012-09-05 19:41:49

V01D
Member
Registered: 2006-07-18
Posts: 128

how to systemd automount? [solved]

I'm using "x-systemd.automount" option in fstab and if I try to manually mount it says: "Unknown option x-systemd.automount". How is this achieved?

Thanks

Last edited by V01D (2012-09-06 03:05:46)

Offline

#2 2012-09-05 19:58:06

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: how to systemd automount? [solved]

/dev/mapper/laptop-home	/home	ext4      	noauto,x-systemd.automount,data=ordered	0 2
/dev/mapper/laptop-backup	/mnt/backup	ext4 	noauto,x-systemd.automount,noatime,users,exec,data=ordered	0 2
user@hostname.homeip.net:/mnt/media		/mnt/media	fuse.sshfs 	noauto,x-systemd.automount,users,idmap=user,Port=22,IdentityFile=/home/firecat53/.ssh/id1_rsa,allow_other,reconnect		0	0

You have to do a

systemctl daemon-reload
systemctl restart mnt-media.automount  [replace mnt-media with your mountpoint]

after messing around with /etc/fstab to get systemd to pick up the changes. Don't try and mount the folder, just ls <mountpoint> and it should mount automagically.

Scott

Offline

#3 2012-09-06 03:05:35

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: how to systemd automount? [solved]

thanks it worked smile

Offline

Board footer

Powered by FluxBB