Hi,
I have a Nas storage device that is direct connected to my router via ethernet. The auto mount at boot time that occurs as a result of the fstab entry fails to be able to mount the device. After I boot into KDE I can quite happily mount the device albeit via using sudo. If I try specifying the users and user options in the mount definition in fstab I get errors saying that CIFS doesn't support those options, hence the only option is to use root to mount the device. Does anyone know if this is deliberate on the part of CIFS or is this a defect? Reading the man page pointed at below is seems that CIFS will only allow Superuser mounts, is that likely to change?
Looking at the systemctl output below, I have removed the userid and password for security reasons, it seems to be indicating that the boot mount failed because the network wasn't up. If that is indeed the case, how do modify systemd to not attempt the auto mount until the network is up?
systemctl status mnt-nas.mount ● mnt-nas.mount - /mnt/nas Loaded: loaded (/etc/fstab) Active: failed (Result: exit-code) since Thu 2016-06-23 07:03:48 AEST; 53min ago Where: /mnt/nas What: //192.168.1.12/Volume_1 Docs: man:fstab(5) man:systemd-fstab-generator(8) Process: 1390 ExecMount=/usr/bin/mount //192.168.1.12/Volume_1 /mnt/nas -t cifs -o username=,password=,cache=strict,rw (code=exited, status=32)
Jun 23 07:03:48 localhost.localdomain systemd[1]: Mounting /mnt/nas... Jun 23 07:03:48 localhost.localdomain mount[1390]: mount error(101): Network is unreachable Jun 23 07:03:48 localhost.localdomain mount[1390]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Jun 23 07:03:48 localhost.localdomain systemd[1]: mnt-nas.mount: Mount process exited, code=exited status=32 Jun 23 07:03:48 localhost.localdomain systemd[1]: Failed to mount /mnt/nas. Jun 23 07:03:48 localhost.localdomain systemd[1]: mnt-nas.mount: Unit entered failed state.
regards,
Steve
Sounds like a timing issue. On my phone so can't form a proper solution but search for boot priority. Should give you some answers.
Fred Roller On Jun 22, 2016 6:35 PM, "Stephen Morris" samorris@netspace.net.au wrote:
Hi,
I have a Nas storage device that is direct connected to my router via
ethernet. The auto mount at boot time that occurs as a result of the fstab entry fails to be able to mount the device. After I boot into KDE I can quite happily mount the device albeit via using sudo. If I try specifying the users and user options in the mount definition in fstab I get errors saying that CIFS doesn't support those options, hence the only option is to use root to mount the device. Does anyone know if this is deliberate on the part of CIFS or is this a defect? Reading the man page pointed at below is seems that CIFS will only allow Superuser mounts, is that likely to change?
Looking at the systemctl output below, I have removed the userid and
password for security reasons, it seems to be indicating that the boot mount failed because the network wasn't up. If that is indeed the case, how do modify systemd to not attempt the auto mount until the network is up?
systemctl status mnt-nas.mount ● mnt-nas.mount - /mnt/nas Loaded: loaded (/etc/fstab) Active: failed (Result: exit-code) since Thu 2016-06-23 07:03:48 AEST; 53min ago Where: /mnt/nas What: //192.168.1.12/Volume_1 Docs: man:fstab(5) man:systemd-fstab-generator(8) Process: 1390 ExecMount=/usr/bin/mount //192.168.1.12/Volume_1 /mnt/nas -t cifs -o username=,password=,cache=strict,rw (code=exited, status=32)
Jun 23 07:03:48 localhost.localdomain systemd[1]: Mounting /mnt/nas... Jun 23 07:03:48 localhost.localdomain mount[1390]: mount error(101): Network is unreachable Jun 23 07:03:48 localhost.localdomain mount[1390]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Jun 23 07:03:48 localhost.localdomain systemd[1]: mnt-nas.mount: Mount process exited, code=exited status=32 Jun 23 07:03:48 localhost.localdomain systemd[1]: Failed to mount /mnt/nas. Jun 23 07:03:48 localhost.localdomain systemd[1]: mnt-nas.mount: Unit entered failed state.
regards,
Steve
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
On 06/22/2016 03:34 PM, Stephen Morris wrote:
I have a Nas storage device that is direct connected to my router
via ethernet. The auto mount at boot time that occurs as a result of the fstab entry fails to be able to mount the device. After I boot into KDE I can quite happily mount the device albeit via using sudo. If I try specifying the users and user options in the mount definition in fstab I get errors saying that CIFS doesn't support those options, hence the only option is to use root to mount the device. Does anyone know if this is deliberate on the part of CIFS or is this a defect? Reading the man page pointed at below is seems that CIFS will only allow Superuser mounts, is that likely to change?
Just a thought: it may be that the automount is failing because it comes before the network is up. If so, you could create a script that mounts it and call it from rc.local, as that's the last thing done during boot, and you know that you'll have connectivity by then. It's not the most elegant way to do it, I know, but that's exactly the type of thing rc.local is for.
On Wed, Jun 22, 2016 at 10:24 PM, Joe Zeff joe@zeff.us wrote:
On 06/22/2016 03:34 PM, Stephen Morris wrote:
I have a Nas storage device that is direct connected to my router
via ethernet. The auto mount at boot time that occurs as a result of the fstab entry fails to be able to mount the device. After I boot into KDE I can quite happily mount the device albeit via using sudo. If I try specifying the users and user options in the mount definition in fstab I get errors saying that CIFS doesn't support those options, hence the only option is to use root to mount the device. Does anyone know if this is deliberate on the part of CIFS or is this a defect? Reading the man page pointed at below is seems that CIFS will only allow Superuser mounts, is that likely to change?
Just a thought: it may be that the automount is failing because it comes before the network is up. If so, you could create a script that mounts it and call it from rc.local, as that's the last thing done during boot, and you know that you'll have connectivity by then. It's not the most elegant way to do it, I know, but that's exactly the type of thing rc.local is for.
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
here is a link to help in change of the rc files so you can bump the mount to after the network...
On 06/22/2016 03:34 PM, Stephen Morris wrote:
Looking at the systemctl output below, I have removed the userid and
password for security reasons, it seems to be indicating that the boot mount failed because the network wasn't up. If that is indeed the case, how do modify systemd to not attempt the auto mount until the network is up?
Add "_netdev" to the mount options. See https://www.freedesktop.org/software/systemd/man/systemd.mount.html
On 23/06/16 14:05, Samuel Sieb wrote:
On 06/22/2016 03:34 PM, Stephen Morris wrote:
Looking at the systemctl output below, I have removed the userid and
password for security reasons, it seems to be indicating that the boot mount failed because the network wasn't up. If that is indeed the case, how do modify systemd to not attempt the auto mount until the network is up?
Add "_netdev" to the mount options. See https://www.freedesktop.org/software/systemd/man/systemd.mount.html
Thanks Samuel, that worked great. Now to work out why I get access denied by the server failures when trying to mount the nfs share when I don't believe there is any security configured.
regards, Steve
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org