https://wiki.ubuntu.com/MountWindowsSharesPermanently
http://ubuntuforums.org/showthread.php?t=255872&highlight=mounting+shares
sudo apt-get install smbfs
in /etc/fstab :
sudo gedit /etc/fstab
smbmount //servername/sharename /mountdirectory -o username=mywindowsusername,password=mywindowspassword
if un/pw not needed, use 'defaults'
smbmount //192.168.1.11/WDTV_DATA /wdtv -o username=defaults,password=defaults
===
Note, apparently the above does not work with live/usb boot? Manually:
sudo mkdir /media/wdtv
sudo smbmount //192.168.1.11/WDTV_DATA /media/wdtv -o username=defaults,password=defaults
ls /media/wdtv
df -l
fdisk -l
Shell Script:
===
#!/bin/bash
sudo mkdir /media/wdtv
sudo smbmount //192.168.1.11/WDTV_DATA /media/wdtv -o username=defaults,password=defaults
No comments:
Post a Comment