Ubuntuでsmbサーバをマウント

1. smbfs をインストール
$ sudo apt-get install smbfs
2. マウントポイントを作成
$ sudo mkdir /mnt/smb
$ ls -al /mnt
total 12
drwxr-xr-x  3 root root 4096 2011-08-16 02:58 ./
drwxr-xr-x 23 root root 4096 2011-08-16 02:05 ../
drwxr-xr-x  2 root root 4096 2011-08-16 02:58 smb/
3. smbサーバの特定のディレクトリをマウント

smbサーバのIPアドレスは、192.168.24.3です。

$ sudo smbmount //192.168.24.3/path/to/mounted /mnt/smb -o user=naoyes,ip=192.168.24.3
[sudo] password for naoyes:  # ここではsudoのためのパスワード
Password: # ここではsmbサーバでのユーザnaoyesとしてのパスワード
$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1            147921360   2505744 137901608   2% /
none                   1016304       236   1016068   1% /dev
 :
 :
//192.168.24.3/path/to/mounted
                     483453720 478810660   4643060 100% /mnt/smb
4. アンマウント
$ sudo umount /mnt/smb
[sudo] password for naoyes: