LinuxQuestions.org
Visit Jeremy's Blog.
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 05-09-2006, 04:51 AM   #1
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Rep: Reputation: 15
Mounting Network Drive


Hello I am trying to mount a Hard drive on my PC onto my Laptop via the Network. I have made some progress as well i have set up ssh and sshfs and i have managed to mount the drive successfully the only problem is that every time i boot to do this i have to enter the command
Code:
sshfs 192.168.2.4:/mnt/data /mnt/pc
and then enter my password is there a way to automate this so it mounts the network drive on boot up. Or to get sshfs to remember my password so i can simply put the command in my ~/.xsession. thanks for any help in advance
 
Old 05-09-2006, 06:28 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Hello,

The right place for your startup mount is in /etc/fstab IMO.
If you don't want to enter password, please use ssh-keygen to generate a key pair.
If you need more specific information, please let me know and I can provide the code in detailed form.

Regards,
Agrouf
 
Old 05-09-2006, 07:01 AM   #3
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Yes /etc/fstab is the 'standard' way to do it, but check the file and it's format to put your own in.

Out of curiosity, was there anything wrong with NFS? that seems a whole lot simpler to me.
 
Old 05-09-2006, 10:25 AM   #4
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
IT WORKS thanks for your help i now have it mounting on boot up

The reason i didn't use NFS was beacuse i had never heard of it and i already had ssh set up on my system. Does NFS have many benefits over sshfs ?
 
  


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 a network Drive ruslombia Linux - Networking 1 08-28-2005 04:17 AM
Mounting a network drive DanW85 Linux - Newbie 3 03-28-2005 04:23 PM
mounting drive over network spideywebsling Linux - Networking 7 07-20-2004 10:27 PM
mounting network drive viper52b Linux - Networking 2 03-10-2004 12:59 PM
mounting a network drive... Sonny Linux - Security 6 01-24-2002 12:08 PM


All times are GMT -5. The time now is 11:13 PM.

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