My technical adventures, hacks or what I do in my free time.

Saturday, September 16, 2006

mynslu2 on mypc

mynsul2 is my little NAS, which I want to be accessible on my PC. This nslu2 runs V2.3R63-uNSLUng-6.8-beta and till now not able to access it as root. Hope it gets fixed with stable version or planning to move to openslug in some time.

So, for now, the nslu2 is accessible only via samba and I had to mount my shares via samba rather than nfs. Installed smbfs
sudo aptitude install smbfs
smbclient -L returned all shares. Now,
mount -t smbfs -o username=
<user>,password=<passwd> //<nslu2>/<share> /mnt/<shared_folder>
It got mounted and I could browse the NAS. Now to make it permanent, I found an excellent resource (http://www.mattvanstone.com/2006/06/automatically_mounting_smb_sha.html thanks to Matt). Not that I didnt know this before, but I was lazy on a saturday morning and wanted to avoid reading man pages :-)

sudo vi /etc/fstab
//<nslu2>/<share> /mnt/<shared_folder> smbfs credentials=/home/<user>/.smbcredentials,uid=<user>,gid=<group> 0 0

sudo chmod 600 /home/
<user>/.smbcredentials

sudo mount -a worked.

No comments: