Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mounting network drive
#1
I would like to automount a network drive. I am using ssh to connect to the network drive now, but would rather auto mount it.
I haven't been able to find anything that will work for me or I'm reading stuff wrong.
Does anyone know if/how this could be done?
Reply
#2
What is your file server? Is that also a Linux machine you have direct access to?
If you're tech savy, I'd suggest reading the Arch Wiki as a starting point: https://wiki.archlinux.org/index.php/NFS
This article will may be more helpful if you are less tech savy: https://www.tecmint.com/how-to-setup-nfs...-in-linux/
I am working on an Arch installation in a VM that will be moved to an USB stick.
Reply
#3
(08-18-2019, 05:57 AM)TarsolyGer Wrote: What is your file server? Is that also a Linux machine you have direct access to?
If you're tech savy, I'd suggest reading the Arch Wiki as a starting point: https://wiki.archlinux.org/index.php/NFS
This article will may be more helpful if you are less tech savy: https://www.tecmint.com/how-to-setup-nfs...-in-linux/

I
m using Ubuntu Server
Reply
#4
It is fairly straight forward using SSHFS:

Code:
sshfs -o IdentityFile=/home/USER/.ssh/sshkey LOGIN_NAME@IP:/remote/path /local/path/


Ex:

Key: /home/dev/.ssh/netshare
Remote Username: netshare
IP: 192.168.1.150
Remote Destination (on server): /home/storagepool/
Local area to mount: /media/dev/storagepool/


Code:
sshfs -o IdentityFile=/home/dev/.ssh/netshare netshare@192.168.1.150:/home/storagepool/ /media/dev/storagepool/


Finally just auto start the program on desktop load.  What distro are you using?

On Ubuntu MATE you simply search for "Startup Applications" and add a new entry to execute that command or you call a bash script that executes that command.  Your call.
Jeremy (Mr. Server)

* Desktop: Ubuntu MATE
* Windows are for your walls, Apple is for your health, Linux is for your computer
Reply
#5
(08-18-2019, 12:19 PM)Rob Hymers Wrote:
(08-18-2019, 05:57 AM)TarsolyGer Wrote: What is your file server? Is that also a Linux machine you have direct access to?
If you're tech savy, I'd suggest reading the Arch Wiki as a starting point: https://wiki.archlinux.org/index.php/NFS
This article will may be more helpful if you are less tech savy: https://www.tecmint.com/how-to-setup-nfs...-in-linux/

I
m using Ubuntu Server

Hello... I got a lot of this off the Ubuntu Form and it was not in english, well it was but hard to follow... Lol
I re done it so I cam make sense of it and would remember how to setup a auto-login to my
Ubuntu Server Music folder.
It has all the step by step instructions on how to set my Linux Box's to access my music on the server..
Here is the link to my GitHub page where I have them stored. See if that is what you need.... 
https://github.com/bescott9944/Setup_Network_Music

Hope this helps and good luck!
LLAP
**********************************************************
Taglines of the Day:
Today is the tomorrow you worried about yesterday.  Huh 

Everybody remember where we parked. - Kirk

To Boldly Go Where No BBS Has Gone Before. USS Stargazer BBS, Sheridan In.
Reply
#6
(08-19-2019, 02:01 AM)bescott9944 Wrote: https://github.com/bescott9944/Setup_Network_Music

I recommend you put 'nofail' into the fstab options. This will prevent your computer halting on boot if the network drive can not be mounted.
My website - My git repos

"Things are only impossible until they’re not." - Captain Jean-Luc Picard
Reply
#7
(08-19-2019, 03:16 PM)leon.p Wrote:
(08-19-2019, 02:01 AM)bescott9944 Wrote: https://github.com/bescott9944/Setup_Network_Music

I recommend you put 'nofail' into the fstab options. This will prevent your computer halting on boot if the network drive can not be mounted.

Ok! that would be a good thing, I never seen that in the instructions I found..
That would be a useful thing to do...Thanks!
Would be something like this?

Code:
//192.168.1.xxx/starbase/Master_Music_Processed_Files /home/user_name/Music/ServerMusic cifs nofail,auto,credentials=/home/user_name/.smbcredentials,iocharset=utf8

I think this is what you mean, right?
Otherwise I will have to investigate the WiKi on how to do that...
Thanks again!
LLAP
**********************************************************
Taglines of the Day:
Today is the tomorrow you worried about yesterday.  Huh 

Everybody remember where we parked. - Kirk

To Boldly Go Where No BBS Has Gone Before. USS Stargazer BBS, Sheridan In.
Reply
#8
(08-19-2019, 07:58 PM)bescott9944 Wrote: Would be something like this?

Code:
//192.168.1.xxx/starbase/Master_Music_Processed_Files /home/user_name/Music/ServerMusic cifs nofail,auto,credentials=/home/user_name/.smbcredentials,iocharset=utf8

Yes, that is the correct place for that.
My website - My git repos

"Things are only impossible until they’re not." - Captain Jean-Luc Picard
Reply
#9
(08-20-2019, 01:38 AM)leon.p Wrote:
(08-19-2019, 07:58 PM)bescott9944 Wrote: Would be something like this?

Code:
//192.168.1.xxx/starbase/Master_Music_Processed_Files /home/user_name/Music/ServerMusic cifs nofail,auto,credentials=/home/user_name/.smbcredentials,iocharset=utf8

Yes, that is the correct place for that.

Thank you very much! It is a good feeling to know that there are good folks willing to help
out us old newbies... Big Grin

I went to GitHub and made the changes and added a Change_log and noted the change I made from
your suggestion about the "nofail" switch...

Thanks again for watching over my shoulder as it were and the help!
LLAP
**********************************************************
Taglines of the Day:
Today is the tomorrow you worried about yesterday.  Huh 

Everybody remember where we parked. - Kirk

To Boldly Go Where No BBS Has Gone Before. USS Stargazer BBS, Sheridan In.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)