Manually mounting MyBookWorld on Ubuntu
Just a simple reminder how to use the WD MyBook WE with Linux properly.
sudo aptitude install smbfs
sudo mkdir /media/sharename
sudo vim /etc/nsswitch.conf
change
hosts: files dns
to read
hosts: files wins dns
sudo aptitude install winbind
Manually mounting MyBookWorld on Ubuntu
With any editor, create a file containing your Windows/Samba user account details:
... it should contain two lines as follows:
Note: "samba_user" = the user name on the samba server (may be different from your log-in name on the client). "samba_user_password" is the password you assigned to the samba_user on the samba server.
Save the file and exit gedit.
Change the permissions on the file for security:
Now create a directory where you want to mount your share (e.g. /media/samba_share):
Now, using any editor, and add a line to /etc/fstab for your SMB share as follows:
and in fstab...
sudo aptitude install smbfs
sudo mkdir /media/sharename
sudo vim /etc/nsswitch.conf
change
hosts: files dns
to read
hosts: files wins dns
sudo aptitude install winbind
Manually mounting MyBookWorld on Ubuntu
sudo mount -t cifs //MyBookWorld/PUBLIC /media/mybook -o username="MOUNTER",password="mount",iocharset=utf8,uid=jim,guid=jim,rw,noperm
With any editor, create a file containing your Windows/Samba user account details:
gksu gedit /etc/samba/user
... it should contain two lines as follows:
username=samba_user password=samba_user_password
Note: "samba_user" = the user name on the samba server (may be different from your log-in name on the client). "samba_user_password" is the password you assigned to the samba_user on the samba server.
Save the file and exit gedit.
Change the permissions on the file for security:
sudo chmod 0400 /etc/samba/user # permissions of 0400 = read only
Now create a directory where you want to mount your share (e.g. /media/samba_share):
sudo mkdir /media/samba_share
Now, using any editor, and add a line to /etc/fstab for your SMB share as follows:
sudo cp /etc/fstab /etc/fstab.bak gksu gedit /etc/fstab
and in fstab...
//MyBookWorld/PUBLIC /media/mybook cifs credentials=/etc/samba/user,noexec,iocharset=utf8,uid=jim,guid=jim,rw,noperm