|
Post by dansumption on May 4, 2008 21:31:48 GMT 7
This may seem like a dumb question, but I've been tearing my hair out for hours over it... how do I mount one of the shared folders on my N4100+ under Linux?
On my Windows machine it's very straightforward - map network drive, browse to the shared folder, and bingo!
Under Ubuntu, I can connect to the server but I can't see anything on it, and I'm not sure how I'd go about mounting a drive anyway. If I try to connect to a specific share - e.g. smb://n4100plus/Music - I get the error message "The folder contents could not be displayed". Can anyone help?
|
|
adam
New Member
Posts: 22
|
Post by adam on May 5, 2008 2:04:40 GMT 7
Hi dansumtpion, - First login or su to root
- Next you need to create a local mount point under your Linux file system for the folder on your NAS that you want to map. Let's assume you want to map the folder called 'MyFolder'.
By convention you mount remote file systems under /mnt although you can create a mount point anywhere. Okay so: mkdir -p /mnt/nas/myfolder
- Now you need to add an entry for your remote folder, edit the file: /etc/fstab and add a new entry at the end similar to:
//192.168.0.101/MyFolder /mnt/nas/myfolder cifs noauto,defaults,username=<nas user>,uid=root,gid=root,file_mode=0644,dir_mode=0755 0 0
- The noauto means that it will not try to automatically mount, so you can mount and unmount manually when required:
mount /mnt/nas/myfolder (use umount to unmount). When you mount you will be prompted to put in the password for the NAS user that you specified (assuming you gave that user permissions to access the folder on your NAS!)
Hope that helps?
|
|
|
Post by dansumption on May 5, 2008 4:35:22 GMT 7
Brilliant! Thanks.
|
|