Mounting a Remote drive

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
User avatar
lsemmens
Level 6
Level 6
Posts: 1150
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Mounting a Remote drive

Post by lsemmens » Sun Sep 09, 2018 11:37 pm

I occasionally make a stupid error of attempting to access a drive on another of my machines without first mounting it. Is there any method that I can remotely mount said drive without actually going to that computer? (I know, I can setup auto mount so the drives mount at boot time but, occasionally I forget to do that and, of course, it is not then visible until I fix that)
Kernel: 4.15.0-36-generic x86_64 bits: 64
Desktop: Cinnamon 3.8.9
Distro: Linux Mint 19 Tara

Laptop T4500 Dualcore 4Gb RAM
Server AMD Phenom 9650 - GEForce 9400GT 6Gb RAM
+ three other Linux Mint machines
Out of my mind - please leave a message

User avatar
catweazel
Level 17
Level 17
Posts: 7755
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Mounting a Remote drive

Post by catweazel » Sun Sep 09, 2018 11:44 pm

lsemmens wrote:
Sun Sep 09, 2018 11:37 pm
I occasionally make a stupid error of attempting to access a drive on another of my machines without first mounting it. Is there any method that I can remotely mount said drive without actually going to that computer? (I know, I can setup auto mount so the drives mount at boot time but, occasionally I forget to do that and, of course, it is not then visible until I fix that)
I use NFS between my machines and alias nm to mount the network drive, and umn to unmount it.

Code: Select all

#!/bin/sh

# Mount server share from client
sudo mount -o vers=3 192.168.20.101:/media/boot/HWRAID-5EE-S/Working /media/boot/HWRAID-5EE-S

Code: Select all

#!/bin/bash

# Unmount network share
sudo umount /media/boot/HWRAID-5EE-S/
This requires the server to mount the drive to NFS when it boots.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
lsemmens
Level 6
Level 6
Posts: 1150
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: Mounting a Remote drive

Post by lsemmens » Mon Sep 10, 2018 4:42 am

Thanks Catweasel, I shall try that when I return home on Wednesday. I'm at son's place helping with home schooling at the moment.
Kernel: 4.15.0-36-generic x86_64 bits: 64
Desktop: Cinnamon 3.8.9
Distro: Linux Mint 19 Tara

Laptop T4500 Dualcore 4Gb RAM
Server AMD Phenom 9650 - GEForce 9400GT 6Gb RAM
+ three other Linux Mint machines
Out of my mind - please leave a message

Post Reply

Return to “Other networking topics”