Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438028 - sys-fs/quota - quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
Summary: sys-fs/quota - quotacheck: Cannot stat() mounted device /dev/root: No such fi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 536658 (view as bug list)
Depends on:
Blocks: 438380
  Show dependency tree
 
Reported: 2012-10-11 19:13 UTC by Andrew Savchenko
Modified: 2015-01-15 10:40 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,7.23 KB, text/plain)
2012-10-11 19:14 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2012-10-11 19:13:51 UTC
Hello,

I use quota-4.00, udev-194. After udev upgrade I can't use quotas on rootfs anymore:

# rc-config start quota
Starting init script
quota           | * Checking quotas (may take a while) ...
quota           |quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quota           |quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quota           |quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quota           |quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.                                                                     [ !! ]          |
quota           | * Starting quota ...
quota           |quotaon: Cannot stat() mounted device /dev/root: No such file or directory
quota           |quotaon: Cannot stat() mounted device /dev/root: No such file or directory
quota           |quotaon: Cannot stat() mounted device /dev/root: No such file or directory

# repquota -a
repquota: Cannot stat() mounted device /dev/root: No such file or directory
repquota: Cannot stat() mounted device /dev/root: No such file or directory
repquota: Cannot stat() mounted device /dev/root: No such file or directory

After creating symlink to a root partition:
  cd /dev
  ln sda2 root
quotas are working fine.

The problem is that udev no longer creates this symlink, but quota tools require it. My fstab doesn't contain /dev/root reference, root is mounted explicitely by partition:

/dev/sda2               /               ext4            noatime,defaults,usrquota                               0       1

but /proc/mounts contains a reference to /dev/root:
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,user_xattr,acl,barrier=1,data=ordered,usrquota 0 0

I'm not sure why... Maybe some init scripts forces it, maybe because I have DEVTMPFS configured and enabled:
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

But anyway this is a legitimate configuration.

As a workaround I modified quota init script to create required symlink, but this is ugly. Also udev ignores rule:
KERNEL=="sda2", SYMLINK+="/dev/root"

I don't know why either...

Anyway either quota or udev, or init scripts should be fixed to avoid this condition.
Comment 1 Andrew Savchenko gentoo-dev 2012-10-11 19:14:26 UTC
Created attachment 326322 [details]
emerge --info
Comment 2 SpanKY gentoo-dev 2012-10-12 18:45:06 UTC

*** This bug has been marked as a duplicate of bug 390519 ***
Comment 3 William Hubbs gentoo-dev 2012-10-14 21:16:10 UTC
This is not a udev issue. Please see the tracker this bug blocks now for
information on how your package may be able to be fixed.

Thanks,

William
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-15 10:40:55 UTC
*** Bug 536658 has been marked as a duplicate of this bug. ***