{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/795","labels_url":"https://api.github.com/repos/systemd/systemd/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/795/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/795/events","html_url":"https://github.com/systemd/systemd/issues/795","id":98282783,"number":795,"title":"fstab auto,nofail behavior is not intuitive","user":{"login":"archenemies","id":12960503,"avatar_url":"https://avatars.githubusercontent.com/u/12960503?v=3","gravatar_id":"","url":"https://api.github.com/users/archenemies","html_url":"https://github.com/archenemies","followers_url":"https://api.github.com/users/archenemies/followers","following_url":"https://api.github.com/users/archenemies/following{/other_user}","gists_url":"https://api.github.com/users/archenemies/gists{/gist_id}","starred_url":"https://api.github.com/users/archenemies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archenemies/subscriptions","organizations_url":"https://api.github.com/users/archenemies/orgs","repos_url":"https://api.github.com/users/archenemies/repos","events_url":"https://api.github.com/users/archenemies/events{/privacy}","received_events_url":"https://api.github.com/users/archenemies/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/fstab-generator","name":"fstab-generator","color":"d4c5f9"},{"url":"https://api.github.com/repos/systemd/systemd/labels/needs-user-feedback","name":"needs-user-feedback","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-30T23:03:54Z","updated_at":"2015-08-01T05:53:00Z","closed_at":null,"body":"When I create an entry in fstab for an external USB hard drive, I read the fstab man page and it makes me think that I should have the options auto,nofail - auto because I want it to mount automatically if it is there, but nofail because I don't want my boot to fail. However, systemd translates auto,nofail into waiting 90 seconds every time I boot without the device plugged in. To work around this, I have to add x-systemd.device-timeout=1 as described here:\r\n\r\nhttps://wiki.archlinux.org/index.php/Fstab#External_devices\r\n\r\nThis is OK, but not what I really want. I've specified a device and a mount point in fstab. I said I wanted the device to be mounted automatically (auto), and I said that it is not essential (nofail). Hence, shouldn't the desired behavior be for systemd to mount the device at the mountpoint as soon as the device appears? I don't see why a timeout should be necessary at all. If I plug in the device after I boot up, fstab specifies what to do with it, but nothing happens. Plus, the timeout solution creates yellow error messages when I boot."},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/126867958","html_url":"https://github.com/systemd/systemd/issues/795#issuecomment-126867958","issue_url":"https://api.github.com/repos/systemd/systemd/issues/795","id":126867958,"user":{"login":"arvidjaar","id":187138,"avatar_url":"https://avatars.githubusercontent.com/u/187138?v=3","gravatar_id":"","url":"https://api.github.com/users/arvidjaar","html_url":"https://github.com/arvidjaar","followers_url":"https://api.github.com/users/arvidjaar/followers","following_url":"https://api.github.com/users/arvidjaar/following{/other_user}","gists_url":"https://api.github.com/users/arvidjaar/gists{/gist_id}","starred_url":"https://api.github.com/users/arvidjaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvidjaar/subscriptions","organizations_url":"https://api.github.com/users/arvidjaar/orgs","repos_url":"https://api.github.com/users/arvidjaar/repos","events_url":"https://api.github.com/users/arvidjaar/events{/privacy}","received_events_url":"https://api.github.com/users/arvidjaar/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T05:53:00Z","updated_at":"2015-08-01T05:53:00Z","body":"> automount ... which is what I think \"auto\" should mean\r\n\r\nOh, no. \"auto\" in /etc/fstab means - this filesystem should be mounted when system boots. It never implied anything else, and definitely not \"try to mount every time it is accessed\".\r\n\r\n> Are you sure you're not confusing these two?\r\n\r\nYes.\r\n```\r\nbor@opensuse:~/src/systemd> systemctl show -p WantedBy boot.mount\r\nWantedBy=dev-sda1.device\r\n```\r\nsystemd automatically adds Wants dependency to device indicated in /etc/fstab if \"auto\" is present. This means when device appears it will trigger start of boot.mount unit."}}