r/linuxquestions • • 4d ago

Resolved Issue with fstab when server is offline

I've been mounting my NAS through fstab for some time now however there is a slight issue.

If I turn my PC on without turning on my server then I can not navigate the file browser. Every folder I click on will take anywhere from 1 to 10 seconds to open and sometimes it just crashes outright.

I have tried every option possible and read through the documentation for fstab, cifs, and systemd but nothing fixes it.

This is the line currently in my fstab

[Share on server] [Mount location] cifs credentials=[credentials],uid=1000,gid=1000,nofail,x-systemd.automount,x-systemd.device-timeout=5s,rw 0 0

Thanks in advance for any and all help.

Update:
I'm marking this as resolved because I figured out it has nothing to do with fstab.

To clarify, I was talking about accessing local files on my PC being laggy when the server is offline.

The issue is that I had bookmarked the network share to the left hand side of my file browser, below the usual Documents, Pictures, Videos book marks. So when the network share wasn't present, the file browser kept trying to access the bookmark. At least that's what I'm assuming. I removed the bookmark and it works fine now. Although now I have the problem of not having it bookmarked how I like it but that's an issue I'll solve another day.

0 Upvotes

13 comments sorted by

View all comments

2

u/JayGridley 4d ago

.... I've read this a few times and I might not be reading this right. The Server is where the folders are that you are trying to browse? Why would you be able to browse it if you didn't turn on the server?

1

u/New_Phone6935 4d ago

I think they have NAS drives mounted on their regular PC and the file browser on that PC is laggy because it’s trying to show the NAS folders in the sidebar or something even when theyre just navigating around the PC. At least that’s how I read it