Sample Header Ad - 728x90

How to fix persistent "stale file handle" for mounted network attached storage

0 votes
0 answers
1731 views
I have a Linux server running Ubuntu, on which I am trying to successfully set up our network-attached storage drive. I can mount it without issues, but after a few hours, the folder becomes inaccessible, displaying a "stale file handle" error. I can easily fix this by unmounting the drive and remounting it, but this requires root privileges, and so the users of the server aren't able to fix this on their own. Is there any reason this would be continually happening? And if so, how might fix it or have a workaround? My mount command is:
mount -t cifs -o username=MYUSER,workgroup=d,vers=2.0,uid=user,gid=user //NASLOCATION /home/user/MNT_DIR
I use this same command for my personal computer, and I get a stale file handle every month or so, but not every few hours. Any suggestions?
Asked by user3037237 (163 rep)
Jan 19, 2023, 08:59 AM
Last activity: Mar 20, 2025, 09:32 AM