2010年7月14日 星期三

Mount Samba in /etc/fstab

»»mount設置(Linux)
$ mkdir -p /mnt/samba/ServerBackup
$ echo '#mount point of BuffaloNasServer for Backup
//192.168.0.6/ServerBackup /mnt/samba/ServerBackup cifs username=[username],password=[password] 0 0' >> /etc/fstab
$ mount -a
$ df

»»mount設置(Freebsd)
$ mkdir -p /mnt/samba/ServerBackup
$ vi /etc/fstab
#mount point of BuffaloNasServer for Backup
//itrue@192.168.0.6/ServerBackup /mnt/samba/ServerBackup smbfs rw,-I192.168.0.6,-N 0 0
$ vi /etc/nsmb.conf
[192.168.0.6:ITRUE] #must uppercase
password=[password]
$ mount -a
$ df

沒有留言:

wibiya widget