0

So i've been trying to edit the /etc/fstab file to add the "usrquota" however I tried editing it and it fails any commands that I should follow on this guide afterwards(Quotas in vsftpd?), this system is a VPS with just one drive running CentOS

Current contents(the original)

  none    /dev/pts        devpts  rw      0       0

Mount output

[root@s1 etc]# mount
/dev/simfs on / type reiserfs (rw,usrquota,grpquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
none on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

Mtab contents

/dev/simfs / reiserfs rw,usrquota,grpquota 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /dev tmpfs rw 0 0
none /dev/pts devpts rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0

First bit it fails upon after editing the fstab

[root@s1 ~]# quotacheck -cug /home
quotacheck: Mountpoint (or device) /home not found.
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

Would appreciate any help

2 Answers2

1

VPS environment does not update your fstab so automated tools such as webmin can just be configured to look at /etc/mtab instead. Another option would probably be to add the following line to /etc/fstab

    /dev/simfs / reiserfs rw,usrquota,grpquota 0 0

Then you may follow the advice that you referred to replacing /home with /

Dmitri Chubarov
  • 2,296
  • 1
  • 15
  • 28
  • This might be the key why you are unable to get this working as described in the CentOS guide. You haven't specified where your machine is hosted and what type of management access you have. I (and the author of the CentOS documentation) assumed you were working on a regular CentOS server but if the system has been configured to use webmin you will ahve to check either the documentation of the hosting company or a plain webmin guide. But as @dmitri-chubarov wrote you need to place quotas on a file system as a whole, if /home isn't a separate file system you can't limit just that directory. – Bram Apr 25 '12 at 06:59
0

What file system do you want to place quotas on? The example you give is a pseudo filesystem. I doubt you can place quotas on that and it certainly would not do anything useful.

Chapter 7. Implementing Disk Quotas of the CentOS deployment guide describes in detail what is needed.

Bram
  • 1,121
  • 6
  • 9