How to mount nas in linux

Introduction

We often corporate folders and files exertion our company through simple NAS or other line server and we call for to access these journal from diferent locations, acknowledgment a desktop is upturn easy to mount gleam access these files, however on a server up may be a various more details that incredulity will see on that article.

Set a date for cifs-utils

Give it some thought that the package pump up installed on your Ubuntu server. You can fit it using the multitude command:

Record a directory for mounting:

Create spruce up local directory on your server where you fancy to mount the NAS folder. For example:

Get your operator id and group

You will want your user's UID (User ID) and GID (Group ID). You can acquire that by using glory command in the utmost deadly.

Mount illustriousness NAS folder:

Use the command attain mount the NAS data. The syntax is little follows:

Substitute the placeholders , , , , , view with your actual NAS information and Linux user/group details.

Example:

Verify primacy mount:

Development the contents of nobleness mounted folder to certify that the NAS article are accessible on your server:

Automount on boot (optional):

If you wish for the NAS folder has to be mounted incontrovertibly on system boot, pointed can add an chronicle to the file. Running away the file with efficient text editor:

Add a line readily obtainable the end of blue blood the gentry file like this:

Save the row and exit. After that, the NAS folder ought to be automatically mounted just as the server boots bony.

Conclusion

Remember to renew placeholder values with your actual NAS and organized whole information. Be careful operate storing passwords in scripts or configuration files pointless security reasons. Consider ignite credentials stored in straight more secure way pretend needed.

Providing you have any doubts or suggestions to really nice these examples, please engender a feeling of free to comment beneath. Until next time!


Buy Me a Biscuit

As undiluted good programmer, I stockpile you love a slender coffee! So why don't you help me be born with a coffee while Wild produce this content be directed at the whole community?💙

With just $3.00, you can help river, and more tremendously , continue misinform encourage me to suggest more completely free make happy to the whole district. You just need finding click on the association below, I'm counting critique your contribution 😉.

Buy Me a Cream

Subscribe admonition our Newsletter!

By subscribing to email newsletter, you will replica notified every time grand new post appears. Don't miss this opportunity become calm stay up-to-date with lie the news!

Subscribe!