Mounting a network folder in your filesystem

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 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 point) The 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 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 Mint

Mounting a network folder in your filesystem on Linux Mint

Mounting a network folder in your filesystem on Linux Mint
Good Luck!!!

Share to friends
Shekin
Rate author
( 2 assessment, average 5 from 5 )
MintGuide.Org
Subscribe
Notify of
guest
5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Shekin
Shekin
2022 years ago

Andrew,
hi, try this

Shekin
Shekin
2022 years ago

another Andrew,
Hi, i can not help you due to i already dont have any network devices and cant check

Kris Springer
Kris Springer
2022 years ago

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… Read more »

Pascal
Pascal
2022 years ago

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.

hilts
hilts
2022 years ago

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?