Trouble with quota's

DJSnels

Verified User
Joined
Jun 17, 2011
Messages
21
Hi all,

today i wanted to edit a user package and the following error came up:

An error has occurred

Details

Error with system Quotas
setquota: Can't stat() mounted device /dev/root: No such file or directory setquota: Mountpoint (or device) / not found. setquota: Not all specified mountpoints are using quota.
Debug Guide

The debugging guide doesn't help.
Here some extra info:

fstab:

/dev/xvda2 / ext3 defaults,errors=remount-ro,usrquota,grpquota,barrier=0 0 0
/dev/xvda1 none swap defaults 0 0
/var/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0

mtab:
/dev/xvda2 / ext3 rw,errors=remount-ro,usrquota,grpquota,barrier=0 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/var/tmpMnt /tmp ext2 rw,noexec,nosuid,loop=/dev/loop0 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0


[root@srv03 ~]# /usr/sbin/repquota /
repquota: Can't stat() mounted device /dev/root: No such file or directory
repquota: Mountpoint (or device) / not found.
repquota: Not all specified mountpoints are using quota.

[root@srv03 ~]# /sbin/quotaoff -a
quotaoff: Can't stat() mounted device /dev/root: No such file or directory
[root@srv03 ~]# /sbin/quotaon -a
quotaon: Can't stat() mounted device /dev/root: No such file or directory

what can be the issue?
It's a VPS which is running for over a year now, but this error seems to start a few weeks back.
 

[root@srv03 ~]# ln -s /dev/xvda /dev/root
[root@srv03 ~]# /usr/sbin/repquota /
repquota: Can't stat() mounted device /dev/root: No such file or directory
repquota: Mountpoint (or device) / not found.
repquota: Not all specified mountpoints are using quota.
[root@srv03 ~]#

My OS is CentOS btw

[root@srv03 ~]# cat /etc/*release*
CentOS release 5.9 (Final)

[root@srv03 ~]# uname -a
Linux server.hostname.com 3.2.2 #3 SMP Thu Jan 26 20:17:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
 
Did you follow the link posted above? Did you read the thread?
Yes,
i also checked fstab / mtab for dual / partitions.
i didn't add it to rc.local and rebooted, since it should work without for now?
 
OK, try this then

Code:
rm -f /dev/root
ln -s /dev/xvda2 /dev/root

YES!
that worked.
but the cause of the problem is not clear for me. Why was the link to /dev/root incorrect?
do i need to aad it to rc.local?
 
Why was the link to /dev/root incorrect?

You have no /dev/xvda, but /dev/xvda2

do i need to aad it to rc.local?

Yes, you might need to re-add it.

but the cause of the problem is not clear for me.

That might be related to changes done to quota tools, which since the version 4.00-pre1 changed the default scan path to /proc/mounts instead to /etc/mtab

Just check your output

Code:
cat /proc/mounts
 
Back
Top