[SOLVED] Cannot mount NFS drive from Ubuntu

Discussion about using NAS on Linux and Unix OS.
User avatar
Essavant
Starting out
Posts: 23
Joined: Fri Jan 04, 2008 11:02 pm
Location: California

[SOLVED] Cannot mount NFS drive from Ubuntu

Post by Essavant »

I am not able to mount my TS109Pro from my Ubuntu PC. I type in:

Code: Select all

derek@lancia:~$ sudo mount -t nfs stratos:/share/HDA_DATA/optware/Public /home/derek/movies
and it returns this:

Code: Select all

mount: wrong fs type, bad option, bad superblock on stratos:/share/HDA_DATA/optware/Public,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
What gives? :? This should be really simple I think! Please help. Thanks.
User avatar
AndyChuo
Experience counts
Posts: 2388
Joined: Thu Sep 13, 2007 11:56 am
Location: Taipei, Taiwan

Re: Cannot mount NFS drive from Ubuntu

Post by AndyChuo »

try replacing the server name to ip address maybe
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
User avatar
Essavant
Starting out
Posts: 23
Joined: Fri Jan 04, 2008 11:02 pm
Location: California

Re: Cannot mount NFS drive from Ubuntu

Post by Essavant »

QNAPAndy wrote:try replacing the server name to ip address maybe
I've already tried that. I just added the server name to the /etc/hosts file, correctly. The problem lies somewhere else. Any thought about using sshfs?
cute_l
New here
Posts: 4
Joined: Sat Jan 19, 2008 9:39 pm

Re: Cannot mount NFS drive from Ubuntu

Post by cute_l »

Hi,
I had the same problem (mount: wrong fs type ...), also on Ubuntu (Gutsy).
I installed the package nfs-common, now nfs works fine !
See thread :
http://forum.qnap.com/viewtopic.php?f=11&t=2423


Hope this helps !

L.
User avatar
Essavant
Starting out
Posts: 23
Joined: Fri Jan 04, 2008 11:02 pm
Location: California

Re: Cannot mount NFS drive from Ubuntu

Post by Essavant »

cute_l wrote:Hi,
I installed the package nfs-common, now nfs works fine !
See thread :
http://forum.qnap.com/viewtopic.php?f=11&t=2423
Excellent! I will try this evening. I am running Gutsy too. Hope this works.
Thanks.
bru
Starting out
Posts: 40
Joined: Wed Sep 10, 2008 5:52 am
Location: CA, USA

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by bru »

for troubleshooting on UNIX systems, the showmount command will
help, as well as making sure you have a command called mount_nfs,
that will tell you that you have the NFS mount capabilities.

showmount - e <server>

should show something like this:

$ showmount -e 192.168.0.142
Exports list on 192.168.0.142:
/Network Recycle Bin 1
/Public
/Qdownload
/Qmultimedia
/Qrecordings
/Qusb
/Qweb

And if the automounter is turned on you should have the
/net mount points showing up like

/net/192.168.0.142/Qweb .... etc

if you do not have the NFS package installed it will not work, but it
also ought to give you a better error message.

I found that on Macs one must use the "resvport" option, like
this example:

sudo mount -o resvport -t nfs QNAP:/Qweb /QNAP/Qweb
User avatar
corndog
Starting out
Posts: 39
Joined: Fri Sep 19, 2008 6:16 am
Location: Toronto
Contact:

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by corndog »

Essavant wrote:I am not able to mount my TS109Pro from my Ubuntu PC. I type in:

Code: Select all

derek@lancia:~$ sudo mount -t nfs stratos:/share/HDA_DATA/optware/Public /home/derek/movies
and it returns this:

Code: Select all

mount: wrong fs type, bad option, bad superblock on stratos:/share/HDA_DATA/optware/Public,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
What gives? :? This should be really simple I think! Please help. Thanks.
Have you tried to mount stratos:/Public instead of stratos:/share/HDA_DATA/optware/Public? That's what works for me on the 509
User avatar
paolo
Getting the hang of things
Posts: 79
Joined: Wed Oct 15, 2008 6:52 am
Location: South Sardinia

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by paolo »

I am sorry, but I have the same problem, I cannot mount the nas from Ubuntu.

Code: Select all

xxxxx@paolo-desktop:~$ sudo mount -t nfs 192.168.1.8:/Public /mnt/Public
mount.nfs: mount point /mnt/Public does not exist

What can I do?
TS209-Pro - v.3.3.2 Build 0918T

http://www.paesaggio.net/studiocallioni/
Image
User avatar
petur
Moderator
Posts: 4606
Joined: Sun Mar 30, 2008 5:42 pm
Location: Gent, Belgium
Contact:

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by petur »

paolo wrote:I am sorry, but I have the same problem, I cannot mount the nas from Ubuntu.

Code: Select all

xxxxx@paolo-desktop:~$ sudo mount -t nfs 192.168.1.8:/Public /mnt/Public
mount.nfs: mount point /mnt/Public does not exist

What can I do?
read the error message?
mount.nfs: mount point /mnt/Public does not exist <- how clear can the error be?

You need to create a Public directory in /mnt
Praat je liever over QNAP in het Nederlands?
Liever een community bij jou in de buurt?

Kom naar QNAPclub België/Nederland
User avatar
paolo
Getting the hang of things
Posts: 79
Joined: Wed Oct 15, 2008 6:52 am
Location: South Sardinia

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by paolo »

Ok, I have created the directory, how do I get it a Public one ?
TS209-Pro - v.3.3.2 Build 0918T

http://www.paesaggio.net/studiocallioni/
Image
User avatar
petur
Moderator
Posts: 4606
Joined: Sun Mar 30, 2008 5:42 pm
Location: Gent, Belgium
Contact:

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by petur »

paolo wrote:Ok, I have created the directory, how do I get it a Public one ?
No, I meant that the name should be 'Public' or whatever is the name you give in the mount command. If you have created /mnt/Public then your mount command should now work, and you can access the files if you go into /mnt/Public
Praat je liever over QNAP in het Nederlands?
Liever een community bij jou in de buurt?

Kom naar QNAPclub België/Nederland
Collete
First post
Posts: 1
Joined: Sat Aug 08, 2009 1:08 am

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by Collete »

It's a great tip as I am new in using Ubuntu.

Great job guys and I will take note of this because I might also try mounting my Ubuntu to NTFS.


Pret immobilier
User avatar
petur
Moderator
Posts: 4606
Joined: Sun Mar 30, 2008 5:42 pm
Location: Gent, Belgium
Contact:

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by petur »

FYI, Ubuntu will read/write the NTFS partition of windows fine, so whatever data is on there is also available while running ubuntu.

And indeed, you can run ubuntu in some mode that stores its data on the NTFS partition, but I'd rather keep it pure :)
Praat je liever over QNAP in het Nederlands?
Liever een community bij jou in de buurt?

Kom naar QNAPclub België/Nederland
CylonCenturion

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by CylonCenturion »

In Fedora Core 23 64 bits one can do:

Determine shares on remote server

Code: Select all

smbclient -L [enter]
enter root password.

output:

Code: Select all

Enter root's password:                                                                                                                                                                               
Domain=[WORKGROUP] OS=[QTS] Server=[Samba 4.0.25]                                                                                                                                                    
                                                                                                                                                                                                     
        Sharename       Type      Comment                                                                                                                                                            
        ---------       ----      -------                                                                                                                                                            
        Films           Disk                                                                                                                                                                         
        Movie           Disk                                                                                                                                                                         
        Photo           Disk                                                                                                                                                                         
        usenet          Disk                                                                                                                                                                         
        backup          Disk                                                                                                                                                                         
        Music           Disk                                                                                                                                                                         
        home            Disk      Home                                                                                                                                                               
        homes           Disk      System default share                                                                                                                                               
        Public          Disk      System default share
        Web             Disk      System default share
        Recordings      Disk      System default share
        Download        Disk      System default share
        Multimedia      Disk      System default share
        IPC$            IPC       IPC Service (NAS Server)
Domain=[WORKGROUP] OS=[QTS] Server=[Samba 4.0.25]

        Server               Comment
        ---------            -------
        BRW00242B6B94A5      
        NASF3ABA0            NAS Server

        Workgroup            Master
        ---------            -------
        WORKGROUP            
to share it on your linux box:
- create a dir called /home/USERNAME/qnap, or /mnt/qnap.

Code: Select all

mount -t cifs //NAS_IP/SHARENAME /home/USERNAME/qnap -o guest,noperm
example:

Code: Select all

mount -t cifs //192.168.1.33/Films /home/donald/TS-253 -o guest,noperm
CylonCenturion

Re: [SOLVED] Cannot mount NFS drive from Ubuntu

Post by CylonCenturion »

I have just installed Kubuntu 15.10

to mount Qnap do, as root:

Code: Select all

apt-get install cifs-utils
Output:

Code: Select all

The following extra packages will be installed:
  keyutils python-crypto python-ldb python-ntdb python-samba python-tdb samba-common samba-common-bin
Suggested packages:
  smbclient winbind python-crypto-dbg python-crypto-doc heimdal-clients
The following NEW packages will be installed:
  cifs-utils keyutils python-crypto python-ldb python-ntdb python-samba python-tdb samba-common samba-common-bin
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1940 kB of archives.
After this operation, 10,8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://nl.archive.ubuntu.com/ubuntu/ wily/main python-ldb amd64 2:1.1.20-2 [27,4 kB]
Get:2 http://nl.archive.ubuntu.com/ubuntu/ wily-proposed/main samba-common all 2:4.1.17+dfsg-4ubuntu3 [164 kB]
Get:3 http://nl.archive.ubuntu.com/ubuntu/ wily/main cifs-utils amd64 2:6.4-1ubuntu1 [69,4 kB]
Get:4 http://nl.archive.ubuntu.com/ubuntu/ wily/main keyutils amd64 1.5.9-5ubuntu1 [47,9 kB]
Get:5 http://nl.archive.ubuntu.com/ubuntu/ wily/main python-crypto amd64 2.6.1-5build1 [242 kB]
Get:6 http://nl.archive.ubuntu.com/ubuntu/ wily/main python-ntdb amd64 1.0-7 [9230 B]                                                                                                                                            
Get:7 http://nl.archive.ubuntu.com/ubuntu/ wily/main python-tdb amd64 1.3.5-1 [9844 B]                                                                                                                                           
Get:8 http://nl.archive.ubuntu.com/ubuntu/ wily-proposed/main python-samba amd64 2:4.1.17+dfsg-4ubuntu3 [876 kB]                                                                                                                 
Get:9 http://nl.archive.ubuntu.com/ubuntu/ wily-proposed/main samba-common-bin amd64 2:4.1.17+dfsg-4ubuntu3 [494 kB]                                                                                                             
Fetched 1940 kB in 0s (3186 kB/s)                                                                                                                                                                                                
Preconfiguring packages ...                                                                                                                                                                                                      
Selecting previously unselected package python-ldb.                                                                                                                                                                              
(Reading database ... 206749 files and directories currently installed.)                                                                                                                                                         
Preparing to unpack .../python-ldb_2%3a1.1.20-2_amd64.deb ...                                                                                                                                                                    
Unpacking python-ldb (2:1.1.20-2) ...                                                                                                                                                                                            
Selecting previously unselected package samba-common.                                                                                                                                                                            
Preparing to unpack .../samba-common_2%3a4.1.17+dfsg-4ubuntu3_all.deb ...                                                                                                                                                        
Unpacking samba-common (2:4.1.17+dfsg-4ubuntu3) ...                                                                                                                                                                              
Selecting previously unselected package cifs-utils.                                                                                                                                                                              
Preparing to unpack .../cifs-utils_2%3a6.4-1ubuntu1_amd64.deb ...                                                                                                                                                                
Unpacking cifs-utils (2:6.4-1ubuntu1) ...                                                                                                                                                                                        
Selecting previously unselected package keyutils.                                                                                                                                                                                
Preparing to unpack .../keyutils_1.5.9-5ubuntu1_amd64.deb ...                                                                                                                                                                    
Unpacking keyutils (1.5.9-5ubuntu1) ...                                                                                                                                                                                          
Selecting previously unselected package python-crypto.                                                                                                                                                                           
Preparing to unpack .../python-crypto_2.6.1-5build1_amd64.deb ...                                                                                                                                                                
Unpacking python-crypto (2.6.1-5build1) ...                                                                                                                                                                                      
Selecting previously unselected package python-ntdb.                                                                                                                                                                             
Preparing to unpack .../python-ntdb_1.0-7_amd64.deb ...                                                                                                                                                                          
Unpacking python-ntdb (1.0-7) ...                                                                                                                                                                                                
Selecting previously unselected package python-tdb.                                                                                                                                                                              
Preparing to unpack .../python-tdb_1.3.5-1_amd64.deb ...                                                                                                                                                                         
Unpacking python-tdb (1.3.5-1) ...                                                                                                                                                                                               
Selecting previously unselected package python-samba.
Preparing to unpack .../python-samba_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
Unpacking python-samba (2:4.1.17+dfsg-4ubuntu3) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../samba-common-bin_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
Unpacking samba-common-bin (2:4.1.17+dfsg-4ubuntu3) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up python-ldb (2:1.1.20-2) ...
Setting up samba-common (2:4.1.17+dfsg-4ubuntu3) ...

Creating config file /etc/samba/smb.conf with new version
Setting up cifs-utils (2:6.4-1ubuntu1) ...
Setting up keyutils (1.5.9-5ubuntu1) ...
Setting up python-crypto (2.6.1-5build1) ...
Setting up python-ntdb (1.0-7) ...
Setting up python-tdb (1.3.5-1) ...
Setting up python-samba (2:4.1.17+dfsg-4ubuntu3) ...
Setting up samba-common-bin (2:4.1.17+dfsg-4ubuntu3) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
after that, one can do, for example:

Code: Select all

mount -t cifs //192.168.1.11/Some_DIR /home/USERNAME/DIR -o guest,noperm
Locked

Return to “Linux & Unix (NFS)”