Mounting NFS NAS Share

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

Mounting NFS NAS Share

Postby wanabegates on Thu Feb 23, 2012 1:10 am

I have a Seagate NAS on my network that is setup to allow for NSF and CIFS file shares. My goal is to mount my media share on the NAS to my laptop running MINT 12. So far I am (or I think I am, Very Close, but so far LOL). Let me also state that I am a NUBE at Linux and have as of this week formatted Windows 7 that ws recently installed on this laptop and took the total plunge with Mint 12. I have to also say that so far, I am very happy with the results!

Here is what I have done so far to get this configuration going:

I have followed the instructions on http://www.psychocats.net/ubuntu/permissions to help me configure permissions in the apropriate hosts files on the laptop. I did not use any of the NAS setup information as it does not pertain to my Seagate NAS. When I was ready to mount the NAS share i put in the following command:

sudo mount 192.168.5.21:/home/MEDIA user=david,password=******** /home/david/Media

The result was:

Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
david@DSLap ~ $ ^C
david@DSLap ~ $ sudo mount directory 192.168.5.21:/home/MEDIA user=david,password=******** /home/david/Media
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .

I also tried the following command:

sudo mount NFS://192.168.5.21:/home/MEDIA user=david,password=DSint669 /home/david/Media

This resulted in more of the same:

Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .

Hopefully you can see that I'm close for a nubie! Can anyone please tell me where I'm going wrong here? The other piece I want to make sure of is that I want the configuration (the mount point) to be there on every boot or login. If I can get this to work I will mount more shares and start some other projects. Hopefully I'm not too far off! No matter what though, I'll be greatfull for the help.

Thanks in advance for the assist!

David
wanabegates
Level 1
Level 1
 
Posts: 5
Joined: Wed Feb 15, 2012 2:51 am

Linux Mint is funded by ads and donations.
 

Re: Mounting NFS NAS Share

Postby altair4 on Thu Feb 23, 2012 7:42 am

The syntax of your cifs mount command seems a little discombobulated.

First, make sure the following package is installed:
Code: Select all
sudo apt-get install cifs-utils

The mount command should have this structure:
Code: Select all
sudo mount -t cifs -o username=nas_user_name,password=******* //server-ip-address-or-name/share-name /your_mount_point


You could achieve the same thing, although with a predefined mountpoint, by browsing to the share in Nautilus.

EDIT: Sorry, the title of this topic clearly stated "NFS" so I have no idea why I gave you instructions on cifs. I can't help you with NFS as I haven't used it in years.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4647
Joined: Tue Feb 03, 2009 10:27 am

Re: Mounting NFS NAS Share

Postby kwisher on Thu Feb 23, 2012 11:54 am

First you will need to install the NFS filesystem in order to mount it. Use the following from a terminal:
Code: Select all
sudo apt-get install nfs-common

Now I would add the following line to your fstab file to mount the share at boot so that you do not have to manually do it everytime you turn your machine on or off. Again from the terminal:
Code: Select all
gksu gedit /etc/fstab

Add the following line after the last line:
Code: Select all
192.168.5.21:/home/MEDIA /home/david/Media nfs rsize=8192,wsize=8192,nosuid,soft 0 0

Post back if you need more help.
The instructions suggested Microsoft Vista or better, so I installed Linux.
User avatar
kwisher
Level 5
Level 5
 
Posts: 558
Joined: Wed Mar 05, 2008 12:54 pm
Location: Greentown, Indiana USA

Re: Mounting NFS NAS Share

Postby wanabegates on Thu Feb 23, 2012 9:22 pm

altair4,

Thanks for the reply! Believe it or not, I did have the first step of your instructions done. I simply forgot to post that piece. As for the next step (in two parts) I understand how that is supposed to mount my share after reboot so I don't have to keep doing it all the time... but what if I want it now? In my example the sudo mount prefix didn't work. Should I a prefix to the command like kwisher gave an example of for cifs's? IE: sudo mount -t cifs -o username=nas_user_name,password=******* //server-ip-address-or-name/share-name /your_mount_point. Only changing CIFS to NFS? I'm going to give this a try anyway as I wait for your answer...

kwisher don't sweat it... we all make mistakes! I know I make more than my fair share. Especially now that I've made the switch! Thanks for posting what you did as I may want to revert back to CIFS (what I had there in the first place), only I did it in the GUI and it never stayed. I changed because I have an employment opportunity that requires knowledge of NFS and I'm trying to gain as much as I can in this exercise.
wanabegates
Level 1
Level 1
 
Posts: 5
Joined: Wed Feb 15, 2012 2:51 am

Re: Mounting NFS NAS Share

Postby wanabegates on Thu Feb 23, 2012 9:34 pm

Well, I tried it... I trued the code:

sudo mount -t NFS -o username=David,password=DSint669 //192.168.5.21/home/MEDIA /home/david/Media

I received the following error:

mount: unknown filesystem type 'NFS'

Any ideas?
wanabegates
Level 1
Level 1
 
Posts: 5
Joined: Wed Feb 15, 2012 2:51 am

Re: Re: Mounting NFS NAS Share

Postby marcus0263 on Thu Feb 23, 2012 10:48 pm

wanabegates wrote:Well, I tried it... I trued the code:

sudo mount -t NFS -o username=David,password=DSint669 //192.168.5.21/home/MEDIA /home/david/Media

I received the following error:

mount: unknown filesystem type 'NFS'

Any ideas?

mount -t nfs server_IP_addr:/share_name /local_mount_point

nfs is host based so no PW on the client side, you configure access on the server

Sent from my Xoom using Tapatalk
Shuttle SX58
Intel i7 Gulftown Hex Core
G.Skill 16Gig 1333
OCS Vertex 2 SSD
Segate SATA II
Palit GeForce GTS 450
LMKDE 14 64Bit

Where Thought Crime is Committed
Reject the Herd
User avatar
marcus0263
Level 4
Level 4
 
Posts: 350
Joined: Mon Dec 25, 2006 9:40 am
Location: Seattle

Re: Mounting NFS NAS Share

Postby Lumikki on Fri Feb 24, 2012 2:09 am

You can't mount nfs until you install nfs-common
Asus P7P55D, i5 750 2.6Ghz, 4GB DDR3, radeon 5770, 80GB Intel SSD, Dell 1600x1200, Dual boot, Linux Mint 14 Cinnamon, Windows 7
User avatar
Lumikki
Level 4
Level 4
 
Posts: 204
Joined: Wed Feb 01, 2012 5:21 pm

Re: Mounting NFS NAS Share

Postby gammelsmurf1 on Sat Apr 21, 2012 12:18 am

maybe an old post, but for future reference...:
Code: Select all
sudo mount -t nfs 192.168.5.21:/home/MEDIA /home/david/MEDIA

Remember its case sensitive, and as marcus0263 mentioned:
you configure access on the server

...a suggestion is per IP-adress
User avatar
gammelsmurf1
Level 1
Level 1
 
Posts: 35
Joined: Thu Aug 25, 2011 5:43 am
Location: Sverige

Linux Mint is funded by ads and donations.
 

Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 3 guests