NAS - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/nas/ Dedicated Servers, Private Cloud & Colocation Mon, 18 Dec 2023 14:45:59 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 Setup automounter to mount NAS backup share https://www.hivelocity.net/kb/how-to-setup-automounter-to-mount-nas-backup-share/ https://www.hivelocity.net/kb/how-to-setup-automounter-to-mount-nas-backup-share/#respond Sat, 13 Nov 2010 12:43:23 +0000 https://kb.hivelocity.net/?p=1469 RedHat, as well as other distributions, contain the AutoFS utility. This will allow you to mount your NAS share automatically in a directory. There are only a couple things that you need to do to have this setup correctly. First, you will need to make sure that autofs is starting on boot. On RedHat, do …

Setup automounter to mount NAS backup share Read More »

The post Setup automounter to mount NAS backup share appeared first on Hivelocity Hosting.

]]>
RedHat, as well as other distributions, contain the AutoFS utility. This will allow you to mount your NAS share automatically in a directory. There are only a couple things that you need to do to have this setup correctly. First, you will need to make sure that autofs is starting on boot. On RedHat, do the following:

chkconfig autofs on

Now you will need to configure your filesystem to mount automatically. This is easily done with the following steps. You will need to first decide on a directory that you will be using for these automatic mounts. For this example, we will use /backup. Edit /etc/auto.master with your favorite text editor, and add this line:

/backup /etc/auto.backup --timeout=30

Once that has been completed, save the file, and open a new file in /etc called “auto.backup”. In this file, the only line you will need is as follows:
smb -fstype=smbfs,username=XXXXXX,password=YYYYYY ://10.10.10.10/XXXXXX

All you need to do is substitue your username for XXXXXX, and your password for YYYYYY. You will also need to use the IP address of your NAS server. Now just start it manually:

root@box [/]# /etc/init.d/autofs start
Starting automount: [ OK ]
root@box [/]#

If you have followed the steps above, and your username and password is correct, you are done. You can change directories to /backup/smb, and you will see the files located on your NAS share.

The post Setup automounter to mount NAS backup share appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-setup-automounter-to-mount-nas-backup-share/feed/ 0