Fedora Linux Support Community & Resources Center
Old 8th January 2011, 09:55 PM
jvillain Offline
Registered User
Join Date: Aug 2008
Posts: 226
Question Systemd - Automount

I don't know if any one can help with this but I will give it a shot. I am trying to get auto-mounting working with systemd files. I know it can be done in the fstab but I want to try and get it working with the systemd files.

My under standing is that you need a .mount file and a matching .automount file and they should be in

In my case I am trying to nfs4 mount server1:/data at /data. I would like to have it available in the equivalent of run levels 3 and 5.

So first I created the file data.mount as follows.

Description=Data Directory
Wants=network.target statd.service
After=network.target statd.service 

I then created the file data.automount

Description=Data Directory Automount Point
Wants=network.target statd.service
After=network.target statd.service 


multi-user.target is a requirement of graphical.target so I figured if I installed it in multi-user.target it would be available in both. So I run

systemctl enable data.automount

And it does the following just like I wanted.

ln -s '/lib/systemd/system/data.automount' '/etc/systemd/system/multi-user.target.wants/data.automount'

But if I reboot the system and come up into the graphical.target then check the status the data.automount service is in the failed state. But if I do

systemctl start data.automount

it starts just fine. Permissions on both files I created are 644 just like the others. Can any one give me some advise for what I am doing wrong?

It seems pretty well every distro is giving systemd a go and there is documentation popping up, but I haven't seen any examples of systemd automount yet.

Some pages I looked at

Thanks for any help.

automount, systemd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
systemd? ssidhar F14 Development 5 29th September 2010 07:11 PM
Systemd kernel parameters jvillain F16 Development 0 20th September 2010 09:02 PM
Be careful with systemd-8-1 dd_wizard F14 Development 8 27th August 2010 04:12 AM
Systemd came in - here's how to boot again. :) GoinEasy9 F16 Development 15 1st August 2010 04:44 PM
Systemd + nfs mounts jvillain F16 Development 3 18th June 2010 04:13 AM

Current GMT-time: 05:38 (Tuesday, 22-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat