LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-16-2004, 04:33 PM   #1
kozgun
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Rep: Reputation: 0
Setting quota on "/"


Hi all,

I've been trying to set quota on root ("/") file system. Kernel has
quota support and quota tools are installed.
Here what I've done:

Created aquota.user and aquota.group files:
# touch /aquota.user
# touch /aquota.group

I've set the permisinons:
# chmod 600 /aquota.user
# chmod 600 /aquota.group

Changed fstab:
/dev/hda2 / ext3 defaults,usrquota,grpquota 1 1

After making these changes I've rebooted the machine, but during
boot procesess threre were some error messages complaining about
that it cannot find the quota files on that filesystem. Then I've tried to
do it with "quotacheck -avug", but that time i got the following
error messages:

quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.

As i understand from errors above and from some readings, quotacheck tries to mount
filesystem readonly, since it is "/" filesystem, it cannout remount it readonly.
In such situation what can i do? I don't have any partitions on disk to set quota,
i mean i had do set quota on "/". By the way if i use "-m" flag with quotacheck
does it make harm to "/" filesytem?

Thank you.
-ozgun.
 
Old 11-16-2004, 10:28 PM   #2
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
I am not sure of this but I dont think you can set quota on /

You have a /home dir and this is the best dir for quotas.
YOu could have created those files in /home dir .

Also what is the need for a quota on / ?

Cheers
Z
 
Old 11-17-2004, 02:16 AM   #3
kozgun
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
First of all thanks for the reply.

The guy who had installed the server didn't make any partition except /boot partition, and we need to set quota for users, system is a production sytem and also i cannot
add an extra harddisk because the second harddisk will be used to make an array.

Do you know is it possible to boot machine with another harddisk that linux is installed on, and set quotas, or is it possibe to boot machine with a live linux cd and set quotas on "/"?

Thank you.
-ozgun.
 
Old 11-17-2004, 04:24 AM   #4
kozgun
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Another thing I've realized is that when booting "quoatacheck -nug /" is run.
Is it dangerous replace this with "quoatcheck -avugm", I mean does "-m" paramater
couse a problem?

Thank you.
-ozgun.
 
Old 11-17-2004, 07:24 AM   #5
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Can you revert back the system and do this :


# touch /aquota.user
# touch /aquota.group


# chmod 600 /aquota.user
# chmod 600 /aquota.group


/dev/hda2 / ext3 defaults,usrquota,grpquota 1 1 in /etc/fstab

#mount -o remount /dev/hda2

#/sbin/quotacheck -m /

#/sbin/quotaon -f /

#/usr/sbin/setquota -u username 900000 1000000 0 0 -a


Reboot the system

Type
repquota -a
see if the quota is enabled.

Sorry I dont have a pc nearby so couldnt test it out.
But sure that it`ll work.
After it works try for group quota.

Cheers
Z
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
Quota on ReiserFS or "Reiser2Ext3" ? PhoenixHawk Linux - Software 1 08-20-2004 08:33 AM
IS there a way to implement a weekly "downloading quota"? linux-addict Linux - Networking 9 01-13-2004 10:42 AM
How to convert KB to "Blocks and Inodes" or quota SammyK Linux - General 4 09-17-2003 01:57 PM
Quesiton about "FIREWALL setting" in "SETUP"--please help out yuzuohong Linux - Networking 1 05-14-2002 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration