nfs mount shown under devices not network

Bug #1433547 reported by Jens Breitbart
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Files
Confirmed
Low
Unassigned

Bug Description

I have an nfs mount, which gets automatically mounted at startup using /etc/fstab. Files shows the mount in the sidebar under the device category using he network icon. I think it would make more sense to show it under the network category.

Changed in pantheon-files:
status: New → Opinion
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

What address appears in the pathbar when you are viewing this location? If it appears as /media/xxxx/yyyy then it would not be easy to distinguish it from any other mounted device/location.

Locations that appear under "Network" have schemas other than file:// or trash://, for example smb:// or ftp://

Revision history for this message
Jens Breitbart (jbreitbart) wrote :

Oh, I see the issue. Yes, it shows itself as /media/...

Solution:
I am not sure. From a command line I would just run

$ stat -f -L -c %T /media/xxx/yyy
nfs

and get the required information. However, what confuses me, is that you already show the correct icon (see attachment), so you should already have the required information.

Revision history for this message
Jens Breitbart (jbreitbart) wrote :
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Hmm, yes, I agree the icon contradicts the position of the item under Devices. I'll check the code that assigns the icon.

Changed in pantheon-files:
status: Opinion → Confirmed
importance: Undecided → Medium
assignee: nobody → Jeremy Wootten (jeremywootten)
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

The icon is obtained from the VolumeMonitor. However, I have tried setting up NFS server on another machine on the local network and mounting the exported folders at /mnt in fstab - but in Files these just appears as ordinary folders below /mnt - not as mounted devices. Please could you give more details regarding your set up so that I can reproduce it?

Revision history for this message
Jens Breitbart (jbreitbart) wrote :

I think you need to mount it to a different directory. Please try /media/<username>/something

I don't know why /mnt is not showing up under devices, but I just used my configuration and only changed the mount point to /mnt/ and it disappeared from files. Changing it back to /media/jbreitbart/piserve/ made it appear again. For what it is worth, this is my /etc/fstab line:

piserve:/media/disk /media/jbreitbart/piserve nfs soft,intr,rsize=8192,wsize=8192 0 0

Changed in pantheon-files:
assignee: Jeremy Wootten (jeremywootten) → nobody
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.