Quota

Discussion in 'HOWTO-Related Questions' started by dranieri, Sep 13, 2005.

  1. dranieri

    dranieri New Member

    Get a quotacheck: Can't find filesystem to check or filesystem not mounted with quota.
    Then run:

    touch /quota.user /quota.group
    chmod 600 /quota.*
    mount -o remount /
    quotacheck -avugm "happens at this step all others return to prompt"
    quotaon -avug
     
  2. falko

    falko Super Moderator

    Did you edit /etc/fstab and add ,usrquota,grpquota to the partition where you want to have quota on (should be your / partition)? This is absolutely necessary!
     
  3. dranieri

    dranieri New Member

    Yes in fact I did will do that again and double chect it.
    The text is all there and saved file.
    Then run:

    touch /quota.user /quota.group "type command and hit return takes me to the root prompt again"

    chmod 600 /quota.* "type command and hit return takes me to the root prompt again"

    mount -o remount / "type command and hit return takes me to the root prompt again"

    quotacheck -avugm "type command and hit return" quotachedk: Cant find filesystem to check or filesystem not mounted with quota option

    quotaon -avug "type command and hit return takes me to the root prompt again"
     
    Last edited: Sep 14, 2005
  4. dranieri

    dranieri New Member

    quotaon -avug

    Okay seems it is one step at a time.
    after restarting server
    typing command quotaon -avug
    response was quotaon: using //quota.group on /dev/hda1 [/]: Device or resource busy
    response was quotoan: using //quota.user on /dev/hda1 [/]: Device or resource busy
    Is this correct and should I continue to the next step?
     
  5. falko

    falko Super Moderator

    No, that's not correct. Re-boot and try again.
     
  6. dranieri

    dranieri New Member

    quotaon

    It is still not working and have tried everything.
    :eek:
     
  7. dranieri

    dranieri New Member

    This is a copy of my fstab file exactly and it is not working now it can not find file system please help been stuck on this part of the tutorial for two days.

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda1 / ext3 defaults,errors=remount
    ro,usrquota,grpquota 0 1
    /dev/sda5 none swap sw 0 0
    /dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
     
  8. falko

    falko Super Moderator

    This must go into a single line!
     
  9. dranieri

    dranieri New Member

    Quotaon -avug

    It is and has been as a matter of rechecked saved file again used the command shutdown -r now. Ran the command again and it scanned. Same proceedure I followed multiple times now.
    After that ran the command quotaon -avug "reply" device or resource busy. This is happening even after restart.
     
    Last edited: Sep 14, 2005
  10. kanour

    kanour New Member

    I Have the same issue on Debian amd64
     
  11. falko

    falko Super Moderator

    Which one exactly?
     
  12. zaqavis

    zaqavis New Member

    Quota on email

    how I can manage quota on email users.

    Regards
     
  13. falko

    falko Super Moderator

    Are those email users system users, or are they virtual?
     
  14. zaqavis

    zaqavis New Member

    local users.
     
  15. falko

    falko Super Moderator

    Then you must install quota, configure it for the partition where your users' mailboxes are stored, and set quota for each user with the setquota command (see
    Code:
    man setquota
    ).

    Have a look at the various "Perfect Setups" to find out how to install and configure quota.
     
  16. denmaus

    denmaus New Member

    Helo

    I had the same Problem with Debian Sarge and testing.
    Please run the "quotaoff -a" before "quotacheck -avugm"
    touch /quota.user /quota.group
    chmod 600 /quota.*
    mount -o remount /
    "quotaoff -a"
    quotacheck -avugm "happens at this step all others return to prompt"
    quotaon -avug

    for me it helped!
     
  17. ciprianz

    ciprianz New Member

    seems to work

    I think it works for me, but I'm not sure
    if i set
    Code:
    quoutaoff -a
    when i run
    Code:
    quotaon -avug
    i receive this
    Code:
    quotaon: using //quota.group on /dev/hda1 [/]: Device or resource busy
    quotaon: using //quota.user on /dev/hda1 [/]: Device or resource busy
     
  18. falko

    falko Super Moderator

    Reboot your system and then run
    Code:
    quotacheck -avugm
    quotaon -avug
    It should work then.
     
  19. ciprianz

    ciprianz New Member

    Problem solved

    I searched on web and look what I find, if you have already started quota you get a error message.

    Quote from http://ce.bromley.ac.uk/linux/SBObj4.pdf
     
  20. jautukas87

    jautukas87 New Member

    can i ask:

    when i edit """vi /etc/fstab""" how do i save changes on centos 4.4 ?
     

Share This Page