Monday, November 13, 2006

Mount the LAN Disk as Local Disk to Use

Source: http://myy.helia.fi/~karte/linux_as_a_client_to_windows_smb_shares.html

1. make the mount point. For me,
mkdir /media/depart

2. Edit authentication file
vi ~/sambapass
Then add the following content
username = minwang
password = password
domain = WORKGROUP

3. Mount the device:
sudo mount -t smbfs -o credentials=~/sambapass,uid=minwang,gid=root,dmask=700,fmask=700 //smb/minwang /media/depart

If receive the following error message: "mount: wrong fs type, bad option, bad superblock ...", it means smbfs not installed. Run
sudo apt-get install smbfs

No comments: