Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190630 - sys-apps/util-linux-2.13 - mount command doesn't work with nfs filesystems anymore.
Summary: sys-apps/util-linux-2.13 - mount command doesn't work with nfs filesystems an...
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 191173 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-29 12:02 UTC by Jens Maus
Modified: 2008-04-15 07:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Maus 2007-08-29 12:02:59 UTC
After having successfully updated to sys-apps/util-linux-2.13, I found my system not being able to mount any nfs shared filesystem anymore. After having restored the /bin/mount command from the previous util-linux-2.12r-r7 version, I am perfectly able to mount NFS shared filesystems anymore.

Reproducible: Always

Steps to Reproduce:
1.install sys-apps/util-linux-2.13
2. try 'mount -t nfs server:/directory /mountpoint'
3. see your system bailing out with an error

Actual Results:  
uranus bin # mount -t nfs mars:/usr/portage /usr/portage
mount: wrong fs type, bad option, bad superblock on mars:/usr/portage,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Expected Results:  
It should have mounted the NFS directory as expected.

the version information for the mount command says:

uranus bin # mount --version
mount (util-linux-ng 2.13)

When using the old mount command, everything succeeds:

uranus bin # mount_old --version
mount: mount-2.12r
uranus bin # mount_old -t nfs mars:/usr/portage /usr/portage
uranus bin #
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-29 12:04:50 UTC
/usr/share/doc/util-linux-2.13/v2.13-ReleaseNotes

Release highlights:
------------------

 mount(8) doesn't include NFS client code anymore. Don't forget to
 install nfs-utils 1.1.0 or newer with /sbin/[u]mount.{nfs,nfs4}.
Comment 2 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-08-29 12:19:32 UTC
Ideally, this should be something for the GWN so that users aren't hit unknowing.

I am going to CC them so that they are aware..I hope I haven't done anything wrong....
Comment 3 Jens Maus 2007-08-29 12:42:29 UTC
Thanks for the information about nfs-utils 1.1.0 being required. However, IMHO the new util-linux-2.13 should make sure that nfs-utils 1.1.0 are installed (via masking against the older version or something like that). Simply allowing to install the newer util-linux versions with older nfs-utils versions are clearly calling for trouble IMHO.
Comment 4 Neil Bothwick 2007-08-31 08:38:22 UTC
Can I add a heartfelt plea for, at the very least, an ewarn message stating that nfs-utils is now required. After an upgrade involving several packages, I lost the ability to mount NFS shares (including my portage directories) with absolutely no indication of which may be the culpable package.

The solution in Comment 3 wouldn't have helped as this system did not have nfs-utils installed. Maybe a nfs USE flag creating a dependency on >=nfs-utils-1.1.0 would ease the transition, especially when these packages go stable.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-09-03 19:33:14 UTC
*** Bug 191173 has been marked as a duplicate of this bug. ***
Comment 6 Plüss Roland 2007-09-23 12:24:42 UTC
I'm sorry to destroy the party but this bug is not resolved. I have the same problem but I have net-fs/nfs-utils-1.1.0-r1 installed and mount.nfs is present still though I get the same error and am unable to connect to my shares.

sys-apps/util-linux-2.12r-r7
net-fs/nfs-utils-1.1.0-r1

I re-emerged sys-apps/util-linux-2.12r-r7 as mentioned in the first comment but it didn't help. The system can't be brought back to mount nfs shares anymore.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-09-23 12:50:31 UTC
(In reply to comment #6)
> I'm sorry to destroy the party but this bug is not resolved.

Then move this out of this bug because your problem is off-topic here.
Comment 8 Steffen Wolf 2008-04-15 07:37:53 UTC
Just a quick note regarding not-working NFS mounts even when all the latest packages are installed. The new nfs-utils seem to need a mount option telling them to use a certain NFS version, otherwise they only try NFS version 3. The old util-linux didn't need this.

Use -o nfsvers=2 for NFS version 2
and -t nfs4 for NFS version 4.

This solution works at our site where we use NFS version 2.