Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I export 3 directories via NFS (pisces:/media/music, pisces:/media/video, pisces:/media/photo) that I mount individually. Currently, they all appear on my (Ubuntu) Gnome desktop as 'pisces', which is less than useful.

The doc seems to indicate that the -LABEL switch isn't supported for NFS mount; is there some other way of labeling the mounts?

The directories are mounted using /etc/fstab (unfortunately I don't have access to that machine right now, and can't remember the options; it is pretty close to the defaults though).

ta, -- peter

share|improve this question
    
How do you mount them? Do you have them in your /etc/fstab? Cause if I mount my NFS shares at home to for example /media/audio/ it shows up as "audio" in GNOME. –  tante Oct 20 '10 at 13:58
2  
I'm having a headslap moment here now ... I'm using mount pisces:/media/music ~/Music/pisces (note the machine and folder names are the same) for all ; hence my confusion. Apologies for the noise. –  nwahmaet Oct 23 '10 at 16:16
    
@nwahmaet - why don't you re-compose this as an answer to your original question, then someone can upvote it, and we can have an answer! –  gabe. Dec 31 '11 at 19:59

2 Answers 2

As far as /etc/fstab is concerned, apart from LABEL tags(variables) -- (which are generally for local disks/filesystems) it can also accept UUID identifier. So, in theory UUID can work for NFS mounts. (UUID should be generated for nfs directory for example nfsserver:/exportdir).

Although, I have not seen people using Labels nor UUIDs for NFS mounts in /etc/fstab. Instead, the better alternative approach has always been to use automounter or amd.

share|improve this answer

Per gabe's suggestion above, answering with my comment ...

I'm having a headslap moment here now ... I'm using mount pisces:/media/music ~/Music/pisces (note the machine and folder names are the same) for all ; hence my confusion. Apologies for the noise.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.