This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need to mount a drive from one Linux server to another, I tried:
mount <servername>:/home/user/apps/tomcat/webapps/myApp/images /home/user/tomcat/webapps/myApps/images
but I get the following error:-
mount: Wrong fs type, bad option, bad superblock on <server> 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
There are several ways to mount remote filesystems, including the Windows-compatible Samba version and Sun's Unix NFS system.
The mount syntax you are using is NFS style. That means that you need to have exported the drive you want to share out by defining an entry in the owning machine's /etc/exports file, starting that machine's NFS server, and ensuring that it isn't blocked by the firewall. And NFS can be a real pain where firewalls are concerned.
Once the server machine is properly prepped, you can mount the exported filesystem. However it looks like you've issues a questionable mount command. For NFS, the usual mount is going to look something like:
mount servername:/export/home/images /mnt/images
If you don't supply a distinct mount point, it's going to mount on "images" in whatever your current working directory is.
An IDE is no substitute for an Intelligent Developer.
Kevin P Smith
Joined: Feb 18, 2005
Cheers for that,
I've created the follwing in the /etc/export file
Actually, for years I used Samba for Unix/Unix instead of NFS. Ironically enough, because I felt it was more secure to use Windows Networking than NFS, which long held a pretty poor reputation in that regard. Plus Samba was more firewall-friendly.