LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting another computers hard drive on the network (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-another-computers-hard-drive-on-the-network-559363/)

z940303 06-05-2007 11:52 AM

mounting another computers hard drive on the network
 
Hi I would like to mount another computers hard drive.
For example running a windows box, mount 10.1.1.3's C: drive.
The idea being that I can administer/run programs on the data
and write to that location.

While there are remote login tools such as ssh, is there
a login tool that is part of linux that lets you mount
the drive. In a similar way to ssh the login would
mount the client's home directory /.

I do not want Samba or other windows shares that share the file system, what I want is a private login mount. Does such a tool exist. Thanks.

forrestt 06-05-2007 01:51 PM

I'm a bit confused on what you want.

What you are describing in your first paragraph is sharing out 10.1.1.3's C: drive and mounting that on another computer, yet later you say you do not want to share the file system. Please try to explain more clearly what exactly it is that you want.

z940303 06-06-2007 11:10 PM

Thanks for your interest.

Sharing a computers drive I believe is insecure compared with a ssh or sftp login. What I am looking for is a way to mount the drive with an Open Source solution that can be used on different platforms - for example between Linux and Windows, or any other operating systems. ssh runs a service/deamon on the target (server). sftp must mount the server's file system itself to read and write files between the two systems.

This proves that such a mount is possible because it is already being done (in some fashion) by sftp.

Essentially I want to access the data on another computer, run programs locally on
that data as if it were just another mount.

I could achieve this laboriously by sftp'ing into the box, get the file, run the
program, then put the file back. However I want this to be invisible to the client,
hence mount the drive.

For a concrete example I gave the client as a linux box and the server as a windows box.

Is it possible to write a driver in linux that bridges the two systems and forwards the file processing to sftp. That way I would only have to work at the linux end and it would be portable wherever sftp is.

Also this sort of question may be better in another forum. This is my first posting so I wasn't sure where to post. Thanks again.

forrestt 06-07-2007 12:58 PM

What you are describing is theoretically possible, but I'm not aware of any tools currently available Open Source or not.

Moving data around doesn't have to be as laborious as you are trying to make it. If you use scp instead of sftp, things are much easier, and can be scripted.

To move a file to a remote machine:
Code:

scp /path/to/file remote_machine:/path/to/file
To move a file from a remote machine:
Code:

scp remote_machine:/path/to/file /path/to/file
To move a file between two remote machines (and you are on a third):
Code:

scp remote_machine1:/path/to/file scp remote_machine2:/path/to/file
Hope this helps

z940303 06-10-2007 07:24 AM

I have looked at similar named threads and noticed a reference to the SSH Filesystem. http://fuse.sourceforge.net/sshfs.html It appears that this does the mount using a ssh server. I have not tried it yet but will give it a go.


All times are GMT -5. The time now is 07:01 PM.