D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Auto-mount NAS Drive

 

Grant Sewell wrote:
> If /disks/H is mounted but inaccessible by normal users, try:
> + unmounting it
> + chowning and chmodding the directory /disks/H (after it's been
> unmounted)
> + modifying the entry in /etc/fstab to allow users to read
> it(uid=gid=,etc)
> + remount
>
> Grant.
Thanks Grant :)

I unmounted /disks/H and then tried to chown it to user julian.  
'Invalid user'.  'Oh no it isn't you lying little...' mutters me....

So I went to the fstab for a look [apologies for the alignment]:

# /etc/fstab -- static file system information
auto generation: off
# generated by: /sbin/etcdev2fstab
#
# NOTE: to make this file readable, it has been formatted for 132 columns
#
#<device>                              <mountpoint>      <fstype>  
<options>                                       <dbg> <pass>
/dev/hda8                               /                 ext3      
defaults                                        0     0
/dev/hda1                               /disks/C          vfat      
rw,nosuid,nodev,noexec,nouser,async,umask=0     0     0
/dev/hda5                               /disks/D          vfat      
rw,nosuid,nodev,noexec,nouser,async,umask=0     0     0
/dev/hda6                               /disks/E          vfat      
rw,nosuid,nodev,noexec,nouser,async,umask=0     0     0
/dev/hdc5                               /disks/F          vfat      
rw,nosuid,nodev,noexec,nouser,async,umask=0     0     0
/dev/hdc6                               /disks/G          vfat      
rw,nosuid,nodev,noexec,nouser,async,umask=0     0     0
//Oracle/ARAGORN                        /disks/H          smbfs     
rw,username=julian,password=*****               0     0
/dev/hda10                              /home             ext3      
defaults                                        0     0
/dev/cdroms/hdd                         /media/cdrom0     iso9660   
ro,nosuid,nodev,exec,user,noauto,async,unhide   0     0
/dev/floppy/0                           /media/floppy0    auto      
rw,nosuid,nodev,exec,nouser,noauto,async        0     0
proc                                    /proc             proc      
rw                                              0     0
usbfs                                   /proc/bus/usb     usbfs     
rw,devmode=0666                                 0     0
/dev/hda9                               /usr/local        ext3      
defaults                                        0     0
/dev/hda7                               none              swap      
sw                                              0     0


as you can see /disks/H is there.  So then I changed the line 'auto 
generation: off' to read '# auto generation: on', saved it and manually 
executed /sbin/etc2fstab

It *seems* to have done the trick.

Kidn regards,

Julian

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html