close
» » Mounting a network folder in your filesystem on Linux Mint

Mounting a network folder in your filesystem on Linux Mint

System

Mounting a network folder in your filesystem

Consider the example of mount external network storage (NAS) in my filesystem as if it were a hard drive.

 

I have network file storage on a separate disk. I wanted to mount the drive in a separate folder in your home directory.

 

Mounting a network folder in your filesystem on Linux Mint


My actions are as follows.
1. First I find out the IP address for the network name wdmycloudex2

net lookup wdmycloudex2

Mounting a network folder in your filesystem on Linux MintMounting a network folder in your filesystem on Linux Mint

2. Then open fstab and write automount at boot.

sudo gedit /etc/fstab

for Mate edition

sudo pluma /etc/fstab

In the opened editor will contain a new line following:

//192.168.180.83/public /home/mintguide/MyCloud cifs username=USERNAME,password=PASSWORD,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0

,where

//192.168.180.83/public - the remote folder

/home/mintguide/MyCloud - Local folder (mount pointThe path must be without spaces

username=USERNAME,password=PASSWORD - Enter if the access to network storage limited

Mounting a network folder in your filesystem on Linux MintMounting a network folder in your filesystem on Linux Mint

3. That's it. After reboot you will find in a local folder to a network folder. Also I recommend to add a Bookmark for easy navigation.

Mounting a network folder in your filesystem on Linux MintMounting a network folder in your filesystem on Linux Mint

Mounting a network folder in your filesystem on Linux MintMounting a network folder in your filesystem on Linux Mint

Mounting a network folder in your filesystem on Linux MintMounting a network folder in your filesystem on Linux Mint

Good Luck!!!

 

 

Print version

Add comments

  • Local comments
  • Facebook comments
Shekin 26 March 2017 22:47
Andrew,
hi, try this
--------------------
x64 Linux Mint 18.3 cinnamon
  • 0
Shekin 5 January 2018 08:27
another Andrew,
Hi, i can not help you due to i already dont have any network devices and cant check
--------------------
x64 Linux Mint 18.3 cinnamon
  • 0
Kris Springer 4 March 2018 23:04
Assuming your NAS is sharing it's folders via SMB/Cifs, then adding one of the following lines to your /etc/fstab file should work for you. Change the IP and folder names to your own custom values. I've highlighted the values in red that you need to customize.

This line connects to a ‘public’ folder that doesn't require a user/pass. But you still need to enter ‘anonymous’ as the username and ‘none’ as the password, otherwise you’ll get a password prompt at bootup.
//192.168.1.5/Movies /home/kris/NAS/Movies cifs username=anonymous,password=none,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0

This line connects to a share that requires a user/pass.
//192.168.1.5/Business /home/kris/NAS/Business cifs username=kris,password=krispass,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0

Reboot. Your new mapped drives should magically appear in your Home folder.
  • +1
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent

    Your working environment Other polls