LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2010, 06:46 AM   #1
gjatute
LQ Newbie
 
Registered: Jan 2010
Posts: 18

Rep: Reputation: 1
Question mount nfs problem: mount(2) Input/Output error, virtual box involved


Hello!

I'm not really sure this is the right category for this post...

I've been thinking and reading but I really don't find a solution, and this is why I decided to post here. I'm not a newbie using Linux but I know absolutely nothing about nfs and related stuff. If explanations are not clear/precise I'm sorry and absolutely open to explain myself better (I'm really desperate, at this point).

I'm running a Debian in a VirtualBox inside a RHEL5. To supply space to the virtual machine I'm trying to mount a disk (? maybe not?) that I created in the RHEL.

In RHEL: I created a directory /some/path/dir and I granted access to it from the VM (edit /etc/exports file and restart the nfs service)

In Debian: I created a directory to be used as mounting point (mkdir /other/nice/path/dir) and I tried to mount (mount -t nfs -v redhat:/some/path/dir /other/nice/path/dir). What happens next is the following:

mount.nfs: timeout set for Thu ...
mount.nfs: text-based options ...
mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed

Now, this Input/output error is too vague to trace where the problem is, but I really have no idea about how to go more in depth (are there logs somewhere? What should I look for? ... ...).

If you can give me some direction thank you very much. If not... thank you in any case for reading!
 
Old 02-11-2010, 06:52 AM   #2
backtolinux
LQ Newbie
 
Registered: Nov 2009
Posts: 20
Blog Entries: 1

Rep: Reputation: 2
After filling /etc:exportfs, did you issued at the command line, as root : exportfs

this command really export what is in /etc/exports.
 
Old 02-11-2010, 06:56 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
Quote:
In RHEL: I created a directory /some/path/dir and I granted access to it from the VM (edit /etc/exports file and restart the nfs service)
Could you explain this better because it sounds like you edited /etc/exports in the VM and not in the host.
 
Old 02-11-2010, 07:04 AM   #4
gjatute
LQ Newbie
 
Registered: Jan 2010
Posts: 18

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jschiwal View Post
Could you explain this better because it sounds like you edited /etc/exports in the VM and not in the host.
I edited the /etc/exports file in the host (that is RHEL) adding
/some/path/dir debian(rw)

(I used the same notation as the one I used to present the proble, debian stands for the IP address of the debian running in the VM)


@backtolinux: I did not issue that command, just restarted the nfs service (btw in this redhat installation that command is not available...)
 
Old 02-11-2010, 05:28 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
Try Chap 18 here (skip the autofs section) http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 02-12-2010, 06:25 AM   #6
gjatute
LQ Newbie
 
Registered: Jan 2010
Posts: 18

Original Poster
Rep: Reputation: 1
Dear all,

thank you very much for your attention. The problem was specifically related to the fact that I was using RedHat. It looks like its default behavior is to block all incoming traffic to an nfs server. I found this http://www.linuxconfig.org/HowTo_configure_NFS that solved my problem (it's incredible that such a common situation has so little about it in the web...)

Bye!
 
Old 10-23-2012, 01:57 PM   #7
mysilverkey
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Smile Start portmp service and check

Start portmp service and check
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount.nfs: Input/output error w.valdivia Linux - Software 7 04-15-2019 08:14 AM
mount: Input/output error vkmgeek Linux - Newbie 4 03-10-2011 06:48 PM
Why unable to mount my nas in fstab get "mount error(5) Input/output error fi5ban Linux - Networking 0 04-01-2009 10:42 AM
mount.nfs: Input/output error w.valdivia Linux - Networking 0 08-20-2007 03:39 PM
mount: input/output error? chunlee Linux - Newbie 5 12-26-2004 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration