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

Mounting a network folder in your filesystem on Linux Mint

Section: System | Actuality: Unspecified

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
Pascal
Pascal 16 July 2018 11:03
my network device has a lot of separate shared folders:
//192.168.1.6/folder1
//192.168.1.6/folder2
//192.168.1.6/folderX
i know i can mount each folder as a drive, but what would be ideal for me is if i could mount the entire NAS as one drive. for certain tools it's very handy if you can search through your entire NAS (finding empty folders, redundant files etc).
would this work if i mount //192.168.1.6/ to say /home/fool/NAS
?
i attempted it once or twice and it didn't work - but as a linuxfool i'm not sure if i simply messed up or if it's not possible.
  • 0
hilts
hilts 3 November 2018 12:26
I've a problem. I see the directory on nautilus, but when I click on it, an error message appears:
mount: only root can mount //192.168.1.130/download/ on /media/NAS/NAS-Download
Any suggestion?
  • 0
  • 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
TOP OF THE MONTH
    Your attitude to the website Other polls