SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-03-22 19:45:09

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 104

[SOLVED]NFS Problem

Has anyone managed to mount NFS shares under statler?

I've installed portmap and nfs-common but any mount commands just hang.

Thanks.

Last edited by taintedsushi (2010-03-24 17:54:06)

Offline

Help fund CrunchBang, donate to the project!

#2 2010-03-22 22:27:36

slipshot
#! CrunchBanger
Registered: 2009-05-13
Posts: 171

Re: [SOLVED]NFS Problem

try sudo mount -t ntfs-3g /mnt
them look it your /mnt dir.

Offline

#3 2010-03-23 00:57:57

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 104

Re: [SOLVED]NFS Problem

Didn't work.  I ended up just mounting them as samba shares.

Offline

#4 2010-03-23 15:22:04

kirmonkey
Member
From: Aranda - Spain
Registered: 2009-10-11
Posts: 46

Re: [SOLVED]NFS Problem

I have set up my NFS shares no problem.

I always use this guide here:

http://ubuntuforums.org/showthread.php?t=249889


Did you create the directory you want to mount to?

Last edited by kirmonkey (2010-03-24 00:28:44)

Offline

#5 2010-03-24 13:15:57

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 104

Re: [SOLVED]NFS Problem

I still can't mount NFS but I have discovered that trying to restart nfs gives me this error

sudo: /etc/init.d/nfs: command not found

portmap restarts correctly and I know that nfs-common has been installed.

What could I be missing?

EDIT

nfs-common restarts with :

Starting NFS common utilities: statd.

so maybe it's ok.  I'm begining to think it has something to do with the network settings but have no idea where to start.

Last edited by taintedsushi (2010-03-24 13:28:15)

Offline

#6 2010-03-24 13:26:02

Piraja
#! Die Hard
From: Lost River Lake
Registered: 2009-02-19
Posts: 523

Re: [SOLVED]NFS Problem

NFS hasn't given me any other problem than a DNS name server peculiarity: I cannot reach the server via SSH, NFS or ping if I use the hostname (crunchdebang.local), only if I use the IP address (e.g. 10.0.0.4). But in any case, the command to restart the NFS server is, as far as I know,

sudo /etc/init.d/nfs-kernel-server restart

I never use smilies, but there are exceptions that prove the rule wink
Now playing: Libre.fm

Offline

#7 2010-03-24 13:36:17

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 104

Re: [SOLVED]NFS Problem

Thanks.

Server restarts correctly but it still hangs when trying to mount a share.  Is there some way to find out what is going on when I try to mount?

My mount command is nothing fancy

sudo mount 192.168.1.3:/share1 /home/share1

Offline

#8 2010-03-24 14:16:19

Piraja
#! Die Hard
From: Lost River Lake
Registered: 2009-02-19
Posts: 523

Re: [SOLVED]NFS Problem

taintedsushi wrote:

Thanks.

Server restarts correctly but it still hangs when trying to mount a share.  Is there some way to find out what is going on when I try to mount?

My mount command is nothing fancy

sudo mount 192.168.1.3:/share1 /home/share1

I think you should explicate the file system type:

sudo mount -t nfs 192.168.1.3:/share1 /mnt/share1

And I'm not sure it is wise to mount the share into your home directory. If I were you, I would first create a mount point in /mnt:

sudo mkdir /mnt/share1

I never use smilies, but there are exceptions that prove the rule wink
Now playing: Libre.fm

Offline

#9 2010-03-24 16:51:24

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 104

Re: [SOLVED]NFS Problem

Following your suggestions leads to the same results.  This is perplexing.  I have not run into this problem on any other #! variant.

Verbose Output for Mount :

mount.nfs: timeout set for Wed Mar 24 13:26:46 2010
mount.nfs: trying text-based options 'addr=192.168.1.3,vers=4,clientaddr=192.168.1.2'
mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed

Last edited by taintedsushi (2010-03-24 17:27:25)

Offline

#10 2010-03-24 17:54:12

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 104

Re: [SOLVED]NFS Problem

SOLUTION :

Try adding nfsvers=3 to your fstab line.

192.168.1.3:/share1  /mnt/share1  nfs  rw,rsize=8192,wsize=8192,nfsvers=3

Worked for me.

Offline

#11 2010-03-24 18:10:03

Piraja
#! Die Hard
From: Lost River Lake
Registered: 2009-02-19
Posts: 523

Re: [SOLVED]NFS Problem

Good to hear and thanks for sharing the solution. By the way, if you want to access the mountpoint from your home directory, you can always create a symbolic link. I have a separate 150 GB partition for music files and I mount it locally in /mnt/music, but I also link that mount point to my home directory:

sudo ln -s /mnt/music /home/piraja/music

The mount point is shared via NFS and linked in the same way at another machine across the home network.


I never use smilies, but there are exceptions that prove the rule wink
Now playing: Libre.fm

Offline

#12 2010-03-24 18:21:19

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 104

Re: [SOLVED]NFS Problem

Thanks, that's a good tip.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo