Attaching NAS
Its nice to be able to mount an external network disk or a MS windows server on your system. It works well, except I haven't been able to make National charset work properly on my NAS. No matter how I set it up.
You need to have the following information ready:
- User id to login on the device. (mike)
- Password.
- IP address. (10.0.0.96)
- Netbios name. (FS2)
- The name of the share you wish to use on the remote device. (movie)
- Mount point on this server. (/fs2)
Make auto login
To mount the device at boot time you start by creating a hash for the password:
smbutil crypt Password: $$17c5a5325
Copy the created hash value. Now you must make an entry in /etc/nsmb.conf file. Insert something like this:
edit /etc/nsmb.conf # File System on disk 2 [FS2:MIKE] addr=10.0.0.96 password=<put hased password here>
Define mount
Now you have to create an entry in the /etc/fstab file. It might look like this:
edit /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1e /tmp ufs rw 2 2 /dev/ad0s1f /usr ufs rw 2 2 /dev/ad0s1d /var ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 add this line if the user id is “mike” the netbios name “FS2” and the share "movie" //mike@FS2/movie /fs2 smbfs rw 0 0
Create the mount point directory:
mkdir /fs2 chown mike:staff
Test it by mounting it:
mount /fs2 ls /fs2