Discussion:
Mint 21.3 fstab not mounting files
(too old to reply)
RobH
2024-04-12 19:58:48 UTC
Permalink
In my /etc/fstab file I have a nfs share which ha been working fine for
a few months. Now all of a sudden it doesn't work, ie not mounting files
or folders to my NAS server

I have:
192.168.0.42:/mnt/Media/Music /mnt/Media/Music nfs
credentials=/home/rob/.credential,rw,nfsver=3 0 0

This worked fine up until a few hours ago.

When I do
df -h to see what is mounted, the /mnt/Media/Music is not listed.

Any ideas why?
Paul
2024-04-13 05:49:50 UTC
Permalink
In my /etc/fstab file I have a nfs share which ha been working fine for a few months. Now all of a sudden it doesn't work, ie not mounting files or folders to my NAS server
192.168.0.42:/mnt/Media/Music /mnt/Media/Music nfs credentials=/home/rob/.credential,rw,nfsver=3    0    0
This worked fine up until a few hours ago.
When I do
df -h to see what is mounted,  the /mnt/Media/Music is not listed.
Any ideas why?
A million things could go wrong.

I'd check that fancy IP address and see if the NAS is still there.
Ping that address.

ping 192.168.0.42

You can't play, if you can't ping (sorta).

Paul
RobH
2024-04-13 08:05:55 UTC
Permalink
Post by Paul
In my /etc/fstab file I have a nfs share which ha been working fine for a few months. Now all of a sudden it doesn't work, ie not mounting files or folders to my NAS server
192.168.0.42:/mnt/Media/Music /mnt/Media/Music nfs credentials=/home/rob/.credential,rw,nfsver=3    0    0
This worked fine up until a few hours ago.
When I do
df -h to see what is mounted,  the /mnt/Media/Music is not listed.
Any ideas why?
A million things could go wrong.
I'd check that fancy IP address and see if the NAS is still there.
Ping that address.
ping 192.168.0.42
You can't play, if you can't ping (sorta).
Paul
A reboot solved it, Doh!

Pardon me for asking , but do you have to reboot after changing or
adding a line in fstab. I can't remember having to do that before,
Thanks
Edmund
2024-04-13 08:27:23 UTC
Permalink
Post by RobH
Post by Paul
Post by RobH
In my /etc/fstab file I have a nfs share which ha been working fine
for a few months. Now all of a sudden it doesn't work, ie not
mounting files or folders to my NAS server
192.168.0.42:/mnt/Media/Music /mnt/Media/Music nfs
credentials=/home/rob/.credential,rw,nfsver=3    0    0
This worked fine up until a few hours ago.
When I do
df -h to see what is mounted,  the /mnt/Media/Music is not listed.
Any ideas why?
A million things could go wrong.
I'd check that fancy IP address and see if the NAS is still there.
Ping that address.
    ping 192.168.0.42
You can't play, if you can't ping (sorta).
    Paul
A reboot solved it, Doh!
Pardon me for asking , but do you have to reboot after changing or
adding a line in fstab. I can't remember having to do that before,
Thanks
yes
--
-------------
FREE ASSANGE
Amnesty for Assange
Amnesty for Snowden
Rehabilitation for hero’s

Edmund
Joerg Walther
2024-04-13 10:26:41 UTC
Permalink
Post by RobH
Pardon me for asking , but do you have to reboot after changing or
adding a line in fstab. I can't remember having to do that before,
Thanks
yes
No, you don't, you just say
sudo mount -a

-jw-
--
And now for something completely different...
Paul
2024-04-13 17:29:26 UTC
Permalink
Post by RobH
Post by Paul
In my /etc/fstab file I have a nfs share which ha been working fine for a few months. Now all of a sudden it doesn't work, ie not mounting files or folders to my NAS server
192.168.0.42:/mnt/Media/Music /mnt/Media/Music nfs credentials=/home/rob/.credential,rw,nfsver=3    0    0
This worked fine up until a few hours ago.
When I do
df -h to see what is mounted,  the /mnt/Media/Music is not listed.
Any ideas why?
A million things could go wrong.
I'd check that fancy IP address and see if the NAS is still there.
Ping that address.
    ping 192.168.0.42
You can't play, if you can't ping (sorta).
    Paul
A reboot solved it, Doh!
Pardon me for asking , but do you have to reboot after changing or adding a line in fstab. I can't remember having to do that before,
Thanks
In principle, you could "sudo mount -a". But
otherwise, you would more surgically ask for
a specific item.

https://linux.die.net/man/8/mount

There are some examples here.

https://superuser.com/questions/1066097/mount-specific-fstab-entry

Maybe sudo mount /mnt/Media/Music would work ?

You could try the sequence

sudo umount /mnt/Media/Music

ls -al /mnt/Media/Music

sudo mount /mnt/Media/Music

ls -al /mnt/Media/Music

and see that everything worked OK.

Paul

Joerg Walther
2024-04-13 08:17:42 UTC
Permalink
Post by RobH
In my /etc/fstab file I have a nfs share which ha been working fine for
a few months. Now all of a sudden it doesn't work, ie not mounting files
or folders to my NAS server
I had the effect that on a different computer than the one I am writing
this a similar command wouldn't work although it does work on this one.
The reason, it turned out, was that networking wasn't even up in the
booting up process when fstab was being processed. Does the share appear
after a sudo mount -a?

-jw-
--
And now for something completely different...
RobH
2024-04-13 11:08:52 UTC
Permalink
Post by Joerg Walther
Post by RobH
In my /etc/fstab file I have a nfs share which ha been working fine for
a few months. Now all of a sudden it doesn't work, ie not mounting files
or folders to my NAS server
I had the effect that on a different computer than the one I am writing
this a similar command wouldn't work although it does work on this one.
The reason, it turned out, was that networking wasn't even up in the
booting up process when fstab was being processed. Does the share appear
after a sudo mount -a?
-jw-
Yes it's ok now. Like I said I had to reboot the machine.
Joerg Walther
2024-04-13 12:11:40 UTC
Permalink
Post by RobH
Yes it's ok now. Like I said I had to reboot the machine.
Which wouldn't have been necessary, since you could just have given the
command
sudo mount -a.

-jw-
--
And now for something completely different...
Chris Elvidge
2024-04-13 12:19:36 UTC
Permalink
Post by Joerg Walther
Post by RobH
In my /etc/fstab file I have a nfs share which ha been working fine for
a few months. Now all of a sudden it doesn't work, ie not mounting files
or folders to my NAS server
I had the effect that on a different computer than the one I am writing
this a similar command wouldn't work although it does work on this one.
The reason, it turned out, was that networking wasn't even up in the
booting up process when fstab was being processed. Does the share appear
after a sudo mount -a?
-jw-
If you put _netdev in the mount options, it will signal not to try mount
until network is up.
--
Chris Elvidge, England
THEY ARE LAUGHING AT ME, NOT WITH ME
Joerg Walther
2024-04-13 13:03:44 UTC
Permalink
Post by Chris Elvidge
Post by Joerg Walther
I had the effect that on a different computer than the one I am writing
this a similar command wouldn't work although it does work on this one.
The reason, it turned out, was that networking wasn't even up in the
booting up process when fstab was being processed. Does the share appear
after a sudo mount -a?
If you put _netdev in the mount options, it will signal not to try mount
until network is up.
Thanks for the tip, I will try it out on the other computer, which still
exists.

-jw-
--
And now for something completely different...
Loading...