Mount folder from one Ubuntu box on another.
Dave Woyciesjes
woyciesjes at sbcglobal.net
Wed May 8 20:54:50 UTC 2013
Afterwards, I realized I sent this to the wrong address...
On 05/08/2013 04:08 PM, Dave Woyciesjes wrote:
> Yes, I can find ways to do this but..
> Which is the better method (easiest to setup, best performing) for
> mounting (and auto-mounting at boot time) a folder form Ubuntu on
> another Ubuntu PC. GB LAN connecting them. SMB or NFS? I'll ned it to
> work at the command line as well, have some symlinks to do.
>
Tried setting up a SMB mount, using info here:
https://wiki.ubuntu.com/MountWindowsSharesPermanently
Specifically:
Using a text editor, create a file for your remote servers logon credential:
gedit ~/.smbcredentials
Enter your Windows username and password in the file:
username=msusername
password=mspassword
Save the file, exit the editor.
Change the permissions of the file to prevent unwanted access to your
credentials:
chmod 600 ~/.smbcredentials
Then edit your /etc/fstab file (with root privileges) to add this line
(replacing the insecure line in the example above, if you added it):
//servername/sharename /media/windowsshare cifs
credentials=/home/ubuntuusername/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
Save the file, exit the editor.
Finally, test the fstab entry by issuing:
sudo mount -a
If there are no errors, you should test how it works after a reboot.
Your remote share should mount automatically.
And I get:
:~$ sudo mount -a
[sudo] password for d:
mount: wrong fs type, bad option, bad superblock on //dw49-ubuntu64/shared,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
Yes a Mac & Win box can mount the share fine...
Pointers & suggestions welcomed...
--
--- Dave Woyciesjes
--- ICQ# 905818
--- CompTIA A+ Certified IT Tech - http://certification.comptia.org/
--- HDI Certified Support Center Analyst - http://www.ThinkHDI.com/
Registered Linux user number 464583
"Computers have lots of memory but no imagination."
"The problem with troubleshooting is that trouble shoots back."
- from some guy on the internet.
More information about the ubuntu-users
mailing list