LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2007, 06:01 PM   #1
jhook777
LQ Newbie
 
Registered: Jul 2007
Distribution: Mandriva 2007 Spring
Posts: 3

Rep: Reputation: 0
Question NFS newbie trouble, mount: IP#:/ can't read superblock


Hello, I'm new to this forum and fairly new to Linux.
I have recently upgraded to Mandriva 2007 Spring (the One version)
on both of my computers from Mandriva 2005. I want to be able to
share files between the two computers since one of them has a much
larger hard disk. I chose NFS to do this because I read that it is
simple to install and uses very little overhead.

I've followed the various how-to's and tutorials on setting up
NFSv4. My /etc/fstab on both pc's looks like this:

/dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0
nfsd /proc/fs/nfsd nfsd defaults 0 0

my /etc/exports looks like this:

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/home/USR/shared IP#(rw,subtree_check)

on pc2 and this:

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/home/USR/shared IP#(rw,subtree_check)

on pc1

hosts.deny for both:

portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

hosts.allow for both:

#
portmap: IP#,IP#
lockd: IP#,IP#
rquotad: IP#,IP#
mountd: IP#,IP#
statd: IP#,IP#

the ps aux command tells me that portmap, lockd, rquotad, mountd,
statd, nfsd, and ps idmapd are all running.

So everything is set up as the tutorials say they should be.
When I attempt to mount the shared stuff on either pc, though,
I get the following error message:

#mount -t nfs4 IP#:/ /mnt
mount: IP#:/: can't read superblock

What am I doing wrong? How do I fix this? Any help would be appreciated. Thanks.

Last edited by jhook777; 07-19-2007 at 05:08 PM.
 
Old 07-08-2007, 06:09 PM   #2
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
try,

mount -t nfs4 192.168.1.100:/home/USR/shared /mnt

 
Old 07-08-2007, 06:12 PM   #3
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
Quote:
Originally Posted by jhook777
#mount -t nfs4 192.168.1.100:/ /mnt
mount: 192.168.1.100:/: can't read superblock
You are trying to mount the root directory, but you only exported /home/USR/shared.
So you would have to mount
Code:
mount -t nfs4 192.168.1.100:/home/USR/shared /mnt
(or export '/' if that is what you want to do)

I suppose the symmetric setup on both machines means that you really want both machines to act as nfs server for each other?
 
Old 07-08-2007, 10:52 PM   #4
jhook777
LQ Newbie
 
Registered: Jul 2007
Distribution: Mandriva 2007 Spring
Posts: 3

Original Poster
Rep: Reputation: 0
I thank you both for your prompt replies but I'm afraid that
didn't work. I get the same error message. Could it be that
my kernel is not configured for nsf4? It's the default kernel
that ships with M'2007 Spring-One. Could it be that the USR
is the same on both machines?

The setup is symetrical because, yes, I would like both machines
to act as servers. Would this cause problems? Is there something that I forgot to install? I've been trying to get this
to work for the better part of a week and thought it was going to
be a simple setup when I started. Jokes on me I guess.
 
Old 07-09-2007, 02:26 AM   #5
jhook777
LQ Newbie
 
Registered: Jul 2007
Distribution: Mandriva 2007 Spring
Posts: 3

Original Poster
Rep: Reputation: 0
A little further testing revealed the following:

# mount -a
mount: rpc_pipefs already mounted or /var/lib/nfs/rpc_pipefs busy
mount: according to mtab, sunrpc is already mounted on /var/lib/nfs/rpc_pipefs

adding the following line to /etc/fstab:
IP#:/home/USR/shared /mnt/nfs nfs4 soft 0 0
resulted in:
mount: IP#:/home/USR/share2: can't read superblock

changing that same line to:
IP#:/home/USR/shared /mnt/nfs nfs soft,nfsvers=2 0 0
resulted in
mount: failed to probe ports on NFS server IP#
after about 10 minutes.

changed line to:
IP#:/home/USR/shared /mnt/nfs nfs soft,nfsvers=4 0 0
resulted in:
'vers=4' is not supported. Use '-t nfs4' instead.

changed line to:
IP#:/home/USR/shared /mnt/nfs nfs4 soft 0 0
resulted in:
a return with no message. Success?? I was unable to find
anything in /mnt/nfs. Also, the mount command didn't list any
new mounts (not that I know if it should or not).

attempting mount -a again, with the same fstab entry resulted
in the "can't read superblock" error, again.

I'll try more later.

Last edited by jhook777; 07-19-2007 at 05:04 PM.
 
  


Reply



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
nfs mount can't read superblock nafan Linux - Networking 11 09-08-2016 09:22 PM
I get mount: /dev/cdrom: can't read superblock, How to fix? zLinuxz Linux - General 12 06-18-2008 02:42 AM
mount: server:/home can't read superblock phil.d.g Linux - General 0 05-11-2006 04:03 PM
mount: /dev/cdrom: can't read superblock raynmune Linux - Hardware 7 07-09-2005 04:02 PM
NFS killing me, (can't read superblock) wael_nasreddine Linux - Networking 13 06-09-2005 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:13 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