LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2007, 12:52 PM   #1
z940303
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
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.
 
Old 06-05-2007, 02:51 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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.
 
Old 06-07-2007, 12:10 AM   #3
z940303
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 06-07-2007, 01:58 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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
 
Old 06-10-2007, 08:24 AM   #5
z940303
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Network Hard Drive manicman Linux - Networking 1 03-12-2007 09:00 AM
mounting other hard drive? lilili Linux - Newbie 6 01-07-2006 02:25 PM
mounting other hard drive? lilili Linux - General 4 01-06-2006 03:47 PM
mounting a hard drive n_ick2000 Linux - Newbie 5 04-10-2002 05:40 PM
Mounting hard drive Runt888 Linux - Newbie 1 08-29-2001 03:02 AM


All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration