wademi
asked on
Help mounting a directory in UNIX
Can somone give me the exact steps to mount a remote directory in Linux Ubuntu using the following:
Machine to mount to - User: MachineA@Ubunt
Machine to mount from User MachineB@Centos
MachineB@Centos IP = 10.117.17.24
Folder beign mounted on MachineB@Centos . "FolderA"
The machine that I am mounting from is a remote machine.
Please do not send links I have explored this before but did not understand
Machine to mount to - User: MachineA@Ubunt
Machine to mount from User MachineB@Centos
MachineB@Centos IP = 10.117.17.24
Folder beign mounted on MachineB@Centos . "FolderA"
The machine that I am mounting from is a remote machine.
Please do not send links I have explored this before but did not understand
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
After issuing this command, you should be able to go to folderA and have the contents of the remote directory.
To see what folders are available on the remote, issue the following.
showmount -e 10.117.17.24
I am telling you the client side commands. So all the above commands are issued on MachineB to connect to machineA
showmount -e 10.117.17.24
I am telling you the client side commands. So all the above commands are issued on MachineB to connect to machineA
ASKER
I tried the following on the machine I am mounting to:
sshfs root@10.117.17.24:/ /FolderA
The authenticity of host '10.117.17.24 (10.117.17.24)' can't be established.
RSA key fingerprint is 87:56:c6:15:ef:ed:e5:04:61 :bf:08:6c: a2:a4:fa:1 d.
Are you sure you want to continue connecting (yes/no)? yes
root@10.117.17.24's password:
fuse: bad mount point `/FolderA': No such file or directory
FolderA definetly exsist on machineB. SSh is running on machineB.
What am I doing wrong here?
sshfs root@10.117.17.24:/ /FolderA
The authenticity of host '10.117.17.24 (10.117.17.24)' can't be established.
RSA key fingerprint is 87:56:c6:15:ef:ed:e5:04:61
Are you sure you want to continue connecting (yes/no)? yes
root@10.117.17.24's password:
fuse: bad mount point `/FolderA': No such file or directory
FolderA definetly exsist on machineB. SSh is running on machineB.
What am I doing wrong here?
@farzan:
The mount command in your comment won't work because no mount type has been specified. Remember, NFS may not be all set up. Additionally, the mount has to be permitted on the server side in /etc/exports. Furthermore, showmount -e does not take an IP address as an argument. xanandu has proposed a very valid sshfs solution, and my way will work for NFS.
*** edited by Mod_MarlEE, 26 Oct 2011 ***
The mount command in your comment won't work because no mount type has been specified. Remember, NFS may not be all set up. Additionally, the mount has to be permitted on the server side in /etc/exports. Furthermore, showmount -e does not take an IP address as an argument. xanandu has proposed a very valid sshfs solution, and my way will work for NFS.
*** edited by Mod_MarlEE, 26 Oct 2011 ***
Use simple NFS. Just issue a mount command.
You have a doubleslash in the mounting command sshfs, here is an example
Sshfs root@ipaddress:/root
This will mount the root users home directory, but just replace the /root with the fullpath to the destination folder
Sshfs root@ipaddress:/root
This will mount the root users home directory, but just replace the /root with the fullpath to the destination folder
ASKER
Thanks for your help guys.
xanandu: I am now getting the following fuse error
milligram@ubuntu:~$ ls
AdobePackager Desktop Documents Downloads examples.desktop Mtest Music Pictures Public Templates Videos
milligram@ubuntu:~$ ls
AdobePackager Desktop Documents Downloads examples.desktop Mtest Music Pictures Public Templates Videos
milligram@ubuntu:~$ mkdir mnt
milligram@ubuntu:~$ ls
AdobePackager Desktop Documents Downloads examples.desktop mnt Mtest Music Pictures Public Templates Videos
milligram@ubuntu:~$ sshfs root@10.117.17.24:/mtest2 /mnt
root@10.117.17.24's password:
root@10.117.17.24:/mtest2: No such file or directory
milligram@ubuntu:~$ sshfs root@10.117.17.24:/root/mt est2 /mnt
root@10.117.17.24's password:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
milligram@ubuntu:~$ sshfs root@10.117.17.24:/root/mt est2 /mnt
root@10.117.17.24's password:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
xanandu: I am now getting the following fuse error
milligram@ubuntu:~$ ls
AdobePackager Desktop Documents Downloads examples.desktop Mtest Music Pictures Public Templates Videos
milligram@ubuntu:~$ ls
AdobePackager Desktop Documents Downloads examples.desktop Mtest Music Pictures Public Templates Videos
milligram@ubuntu:~$ mkdir mnt
milligram@ubuntu:~$ ls
AdobePackager Desktop Documents Downloads examples.desktop mnt Mtest Music Pictures Public Templates Videos
milligram@ubuntu:~$ sshfs root@10.117.17.24:/mtest2 /mnt
root@10.117.17.24's password:
root@10.117.17.24:/mtest2:
milligram@ubuntu:~$ sshfs root@10.117.17.24:/root/mt
root@10.117.17.24's password:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
milligram@ubuntu:~$ sshfs root@10.117.17.24:/root/mt
root@10.117.17.24's password:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked: milligram@ubuntu:~$ sshfs root@10.117.17.2:/root/mte st2 ~/mnt
Thanks All.
Special TTTTHHHAAANKS!!!! TO >>>>>>>>>xanandu: , Papertrip:,xterm:
Thanks All.
Special TTTTHHHAAANKS!!!! TO >>>>>>>>>xanandu: , Papertrip:,xterm:
mount 10.117.17.24:/path/to/fold