Home > Bash, Linux, Ubuntu > Connect NAS

Connect NAS

If you have a Linux based NAS and would like to connect your Ubuntu client to it, first install nfs file system:

sudo apt-get install nfs-common

Then create a mount dir on your computer:

sudo mkdir /mnt/nas

Check so that you can ping the NAS:

ping nas

If it didn’t work you have to put the NAS in the host file /etc/hosts :

sudo nano /etc/hosts

Then try to connect to the NAS, e.g. to the Public share (if you have one):

sudo mount nas:/Public /mnt/nas

If it worked, add the following line to your /etc/fstab to automatically connect to the NAS when your user requests access to /mnt/nas :

sudo nano /etc/fstab

# <file system> <mount point> <type> <options> <dump> <pass>
nas:/Public /mnt/nas nfs rsize=8192,wsize=8192,timeo=14,intr,user 0 0

The ‘user’ switch makes it possible for an ordinary user to mount.

Map host folders in VirtualBox on an Ubuntu client

First, mount host addons though Virtual Box menus, install them and reboot the Ubuntu client. Then run:

sudo mkdir /mnt/vboxsrv
sudo mount -t vboxsf holm /mnt/vboxsrv

Done!

Categories: Bash, Linux, Ubuntu Tags:
  1. No comments yet.
  1. No trackbacks yet.