Solved

enabling quota problem.

Posted on 2004-03-21
10
691 Views
Last Modified: 2013-12-15

Hello,

I've a problem while trying to enable quotas using "quotaon -a".

The error message is every time:

quotaon: using //quota.user on /dev/hda3 [/]: Invalid argument

quotacheck is running without errors and is generating "aquota.user".

Is there any option/config possibility to say the server to generate quota.user and not aquota.user?

Or any idea what to do?

Thanks
j79
0
Comment
Question by:j79
  • 5
  • 5
10 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 125 total points
ID: 10645703
Edit the file /etc/fstab:

Add userquota after defaults, using lower case.


1.)  /dev/hda7   /home  ext2  defaults, userquota     1 2

Then create two files for the partions

2.) touch   /home/quota.user
3.) touch  /home/quota.group
4.) chmod 600 /home/quota.user
5.) chmod 600 /home/quota.group

You must reboot the system.

6.) edquota  –u  sam ( username )

Soft limit = Maximum amount of disk disk usage a quota user can have on
the system.

Hard limit =  A user cannot go beyond. If this limit is reached, the
user will not be able to use any additional space.
0
 
LVL 2

Author Comment

by:j79
ID: 10647881
Done as you said, also done a checkquota after reboot.

# quotaon -a
quotaon: using /home/quota.group on /dev/hda3 [/home]: Invalid argument
quotaon: using /home/quota.user on /dev/hda3 [/home]: Invalid argument

It's creating aquota.user and aquota.group in the home directory and not quota.user and quota.group

j79



0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10648133
quota.user etc are from version 1 of quota. Version 2 uses aquota.user etc.
What does quotaon -v -a tell you?
0
 
LVL 2

Author Comment

by:j79
ID: 10649105

Hello owensleftfoot,

quotaon -v -a
quotaon: using /home/quota.group on /dev/hda3 [/home]: Invalid argument
quotaon: using /home/quota.user on /dev/hda3 [/home]: Invalid argument

"quota -V" tells:
Quota utilities version 3.03.
Compiled with RPC and EXT2_DIRECT
Bugs to mvw@planets.elm.net, jack@suse.cz

I noticed that hda3 seems to use ext3 ? Does this matter anything?

0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10649154
Could you post your /etc/fstab?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 2

Author Comment

by:j79
ID: 10649190

The original fstab is/was:

/dev/hda3       /               ext3    defaults,usrquota       1 1
/dev/hda1       /boot           ext3    defaults        1 2
/dev/hda2       swap            swap    pri=42          0 0
devpts          /dev/pts        devpts  mode=0620,gid=5 0 0
proc            /proc           proc    defaults        0 0

0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10649354
The example I gave you was for enabling quotas on a mounted /home partition. You need to create aquota.user in the / directory of your filesystem.
http://www.tldp.org/HOWTO/Quota.html will take you through things step by step.
0
 
LVL 2

Author Comment

by:j79
ID: 10649604

thank you owensleftfoot, but it's not helping me.
aquota.user is being crated automatically after running a quotacheck, as I said above.
But if I try to start/enable quota it's not working because of expecting quota.user.
I also tried a link for quota.user to aquota.user, still without success.

j79
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10649676
You can force quotaon to use either version 1 quota (quota.user) or version 2 (aquota.user) with the -F switch. To use quota.user files use quotaon -a -F vsfold
To use aquota.user use quotaon -a -F vsfv0
0
 
LVL 2

Author Comment

by:j79
ID: 10655660


I did this 2-3 steps and it works now, don't ask me why.

rm aquota.user
touch quota.user
chmod 600 quota.user
quotacheck -uvma
quotaon -a

Anyway, thank you for the assistance owensleftfoot.

j79

 
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now