LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-13-2021, 03:31 PM   #1
IamtheSenate
LQ Newbie
 
Registered: Feb 2021
Location: Manchester
Distribution: Fedora 38 Xfce and Linux Mint 21.2 Xfce
Posts: 11

Rep: Reputation: Disabled
F33 doesn't mount NAS at startup


TL;DR - NAS mounts manually but doesn't mount at boot when added to /etc/fstab.

Hi folks,

My conundrum is that I have a Synology NAS on my network which I am able to mount manually but when added to /etc/fstab, the NAS is not mounted at boot using the NFS protocol.

The NAS (hostname 'virgo') is mounted on my Fedora machine (hostname 'orion') at /mnt/virgo and the NAS folder /volume/file_sync is mounted to this folder.

The command I used to manually mount is:

Quote:
sudo mount -t nfs 192.168.0.72:/volume1/file_sync /mnt/virgo
However when adapted for /etc/fstab, it is not mounted at startup, the contents of /etc/fstab are:

Quote:
#
# /etc/fstab
# Created by anaconda on Sun Jan 24 08:03:10 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=39f5fc59-057c-4e47-9483-930d78b6601a / ext4 defaults 1 1
UUID=F0D6-AD83 /boot/efi vfat umask=0077,shortname=winnt 0 2
UUID=bf272d14-6dc9-45f8-861e-760f45549668 /home ext4 defaults 1 2
UUID=3244c1e5-230d-4595-9416-570ee6f14ded none swap defaults 0 0

# NAS drive

192.168.0.72:/volume1/file_sync /mnt/virgo nfs rw,sync,hard,intr 0 0
When I checked the log (journalctl -b 0 | grep mount) this is the result which seems to indicate it did try to mount the NAS but failed:

Quote:
Feb 13 20:59:25 orion systemd[1]: Condition check resulted in dracut pre-mount hook being skipped.
Feb 13 20:59:25 orion kernel: EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
Feb 13 20:59:25 orion systemd[1]: Condition check resulted in dracut mount hook being skipped.
Feb 13 20:59:26 orion kernel: SELinux: Permission watch_mount in class file not defined in policy.
Feb 13 20:59:26 orion kernel: SELinux: Permission watch_mount in class dir not defined in policy.
Feb 13 20:59:26 orion kernel: SELinux: Permission watch_mount in class lnk_file not defined in policy.
Feb 13 20:59:26 orion kernel: SELinux: Permission watch_mount in class chr_file not defined in policy.
Feb 13 20:59:26 orion kernel: SELinux: Permission watch_mount in class blk_file not defined in policy.
Feb 13 20:59:26 orion kernel: SELinux: Permission watch_mount in class sock_file not defined in policy.
Feb 13 20:59:26 orion kernel: SELinux: Permission watch_mount in class fifo_file not defined in policy.
Feb 13 20:59:26 orion systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
Feb 13 20:59:26 orion systemd[1]: Starting Remount Root and Kernel File Systems...
Feb 13 20:59:26 orion systemd[1]: sysroot.mount: Succeeded.
Feb 13 20:59:26 orion kernel: EXT4-fs (sda2): re-mounted. Opts: (null)
Feb 13 20:59:26 orion systemd[1]: Finished Remount Root and Kernel File Systems.
Feb 13 20:59:26 orion systemd[1]: Condition check resulted in OSTree Remount OS/ Bind Mounts being skipped.
Feb 13 20:59:26 orion audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-remount-fs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 13 20:59:27 orion systemd[1]: tmp.mount: Directory /tmp to mount over is not empty, mounting anyway.
Feb 13 20:59:27 orion kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
Feb 13 20:59:35 orion mount[878]: mount.nfs: Network is unreachable
Feb 13 20:59:35 orion systemd[1]: mnt-virgo.mount: Mount process exited, code=exited, status=32/n/a
Feb 13 20:59:35 orion systemd[1]: mnt-virgo.mount: Failed with result 'exit-code'.
Feb 13 20:59:35 orion systemd[1]: Failed to mount /mnt/virgo.
Feb 13 21:00:06 orion systemd[1]: run-user-988.mount: Succeeded.
Feb 13 21:00:06 orion systemd[980]: run-user-988.mount: Succeeded.
Does anyone have any pointers or suggestions please? I am still fairly new to NAS's but not at all new to Linux.
 
Old 02-15-2021, 05:13 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Quote:
mount.nfs: Network is unreachable
Try adding _netdev to your mount options. Although this is supposed to be a default with systemd the purpose is to wait until the network is up before trying to mount the share.
 
1 members found this post helpful.
Old 02-28-2021, 09:01 AM   #3
IamtheSenate
LQ Newbie
 
Registered: Feb 2021
Location: Manchester
Distribution: Fedora 38 Xfce and Linux Mint 21.2 Xfce
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Try adding _netdev to your mount options. Although this is supposed to be a default with systemd the purpose is to wait until the network is up before trying to mount the share.
Thank you very much and my apologies I forgot to reply, _netdev wouldn't work for some strange reason. It would only mount when I manually reloaded /etc/fstab, however I was able to swap it out for the systemd automount unit instead:

Code:
192.168.0.72:/volume1/file_sync /mnt/virgo nfs defaults,x-systemd.automount 0 0
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to mount NAS on startup using cifs AdiLQ123 Slackware 20 10-07-2015 01:46 PM
reliable centos nas server with raid or nas boxes which is better ? Gil@LQ Linux - Server 9 09-10-2015 05:13 AM
Help figuring out: NAS, FreeNas, Linux "NAS", or Linux server JohnLocke Linux - General 24 04-18-2015 10:16 AM
automatically backup folder on Free NAS computer to another Free NAS computer tom treadway Linux - Newbie 1 01-26-2011 07:28 PM
Buffalo NAS - how do we get files on NAS syncing with Windows Sync? bykerbob Linux - Newbie 0 10-21-2008 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration