2014-08-06

I figured out that I needed a nas with a capacity to cover the max hard drive capacity of the hard drives in my computer after finding something that told me that, so I bought a 16 TB Seagate BlackArmor NAS. However, it does not officially support Linux and neither does any other desktop NAS I looked at and Seagate wants me to do the following in order to get it to work:

How to mount NFS and CIFS file systems on Linux with the Seagate BlackArmor NAS

Provides some advanced tips on using NFS and CIFS with Linux in conjunction with the BlackArmor NAS.

The BlackArmor NAS supports the NFS (Network File System) and CIFS protocols which can be used on Linux and other operating systems. This article provides some advanced tips on using NFS and CIFS with Linux, but please consult your system documentation for more information. Familiarity with Linux, the command line, and security privileges (becoming root or the sudo command) is recommended.

NOTE: Please see this Knowledge Base article for more information on Linux support for the Seagate BlackArmor NAS 440.

NOTE: The easiest way to access the shares and files is to use Windows sharing (CIFS) via a file manager. Please see this Knowledge Base article.

NOTE: The nfs-common package may need to be installed on Linux to get support for NFS clients. Please check for package manager for it or equivalent.

Setup

1. Access the management page of the BlackArmor.

Get the IP address from the LCD of your BlackArmor.

Open a web browser and enter the IP.

2. Ensure the share you want to access is setup for NFS.

Go to the Network section and then to Shares.

If NFS is enabled for a particular share, there will be a green checkmark on it.

If it is not, check on the modify and make sure to check the NFS box.

3. Setup the NFS Service

Go to the Network section and then to Services.

Under NFS Service, ensure that it is set to Enable.

Make sure to enter the IP Addresses of your Linux computers.

When adding them, do it one at a time, clicking Add each time.

Click Submit once you are finished.

Mounting the Share in Linux

1. On your Linux machine, open terminal.

Make sure you have the nfs-common package installed. To do this in Unbuntu:

sudo apt-get install nfs-common

Otherwise, consult your system documentation or package manger for more info.

To mount an NFS, you first have to create the folder to which you want it to mount. Type this to create a directory:

sudo mkdir /mnt/<insertfoldername>

Now, once that is created, you can mount the share. Type:

sudo mount -t nfs <IP Address>:/<DriveVolumeName>/<NameofShare> /mnt/<FolderyouCreated>

What all this means:

-t : Is used to tell the system that this is just an ordinary mount command. You use this when you do not have the drive information located in /etc/fstab

nfs : Tells the type of share you are trying to mount.

<IP Address>:/ : IP address of the drive you are trying to mount.

<DriveVolumeName>/ : Volume Name of the actual hard drive that you want to mount. This defaults to DataVolume.

<NameofShare> : The Share within the Volume of the hard drive that you want to mount.

/mnt/<FolderyouCreated> : The location to which you want your share to be mounted. Remember that it is the folder that you already created.

Note: This will not create a shortcut on your desktop, nor will it show up in Computer. You will have to browse to the location of the folder. Normally this will be in Computer, under Filesystem and then mnt.

For example:

sudo mount -t nfs 192.168.10.204:/DataVolume/Public /mnt/Public

Mount errors

"Access is denied" during the mount may indicate some of the following:

The client (Linux computer) is not on the allowed list of IP addresses.

The share name (for example /DataVolume/Public) is not shared.

For instance, trying 192.168.10.204:/Public (note no volume name) will cause an "access is denied" error.

Troubleshooting NFS

Use the showmount command to see what is exported by the BlackArmor:

showmount -e <IPaddress>

The -e stands for "exports" or a list of shares exported by NFS on the BA.

It will show something like this:

Export list for 192.168.10.204:

/DataVolume/Public *

Mounting with CIFS

Most of everything is the same, except the syntax you use to actually mount the share.

sudo mount -t cifs -o noperm //<IP Address>/<NameofShare> /mnt/<FolderyouCreated>

Note the addition of "-o noperm". Without this, you will be able to mount the share but will not be able to write to it. Folders and files can be created, but they can not be edited.

When attempt to mount this though I get this the following error:

[32]dgrossi0914-desktop dgrossi0914 # sudo mount -t nfs 192.168.1.122:/DataVolume/IPC$ /media/dgrossi0914/BlackArmor

mount.nfs: access denied by server while mounting 192.168.1.122:/DataVolume/IPC$

[32]dgrossi0914-desktop dgrossi0914 #

even if I do I do try to name the volume, which gives me the following error:

dgrossi0914-desktop dgrossi0914 # e2label /dev/sr0

e2label: No medium found while trying to open /dev/sr0

Couldn't find valid filesystem superblock.

[1]dgrossi0914-desktop dgrossi0914 # e2label /dev/sr1

e2label: No such file or directory while trying to open /dev/sr1

Couldn't find valid filesystem superblock.

The df -h command only shows the following output as well:

dgrossi0914-desktop dgrossi0914 # df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda3 863G 62G 758G 8% /

udev 10M 0 10M 0% /dev

tmpfs 384M 904K 383M 1% /run

tmpfs 5.0M 0 5.0M 0% /run/lock

tmpfs 2.8G 144M 2.7G 6% /run/shm

none 4.0K 0 4.0K 0% /sys/fs/cgroup

/dev/sdc1 2.8T 1.2T 1.6T 43% /media/dgrossi0914/Seagate Backup Plus Drive

/dev/sdd1 3.7T 3.0T 691G 82% /media/dgrossi0914/Seagate Backup Plus Drive1

/dev/sr0 1.8G 1.8G 0 100% /media/dgrossi0914/BlackArmor

dgrossi0914-desktop dgrossi0914 #

Does anyone have any idea how to make this work or what I'm missing because I did what is said and installed nfs-commom and cifs-utils as for everything else it said, but it still won't work.

Show more