LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-16-2003, 04:56 PM   #1
paranoia1980
Member
 
Registered: Jun 2003
Location: LA
Distribution: RedHat Linux 7.1
Posts: 34

Rep: Reputation: 15
Can I enable quota management in root(/)?


Hi all,

I have RedHat 9.0 installed on my Linux machine and I want to enable the quota management feature on the root(/) partition. I read some Linux admin book and here's what I have done:

1. Add the "usrquota" optioin in the /etc/fstab file for the root(/) partition.
2. cd /
3. touch quota.user
4. chmod 600 quota.user

Then, as I do "quotacheck -v /", the following error message is displayed:

quotacheck: WARNING - Quotafile //quota.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 to force checking.

As I try to do a "convertquota /", it says

convertquota: Quota filenot found or has wrong format.
convertquota: Can't open old format file for users on /

My question is: is it possible for me to enable quota management on the root(/) partition? If it is, what's the proper way of doing so? Thanks a lot!
 
Old 09-16-2003, 05:32 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
After doing "touch quota.user" did you actually edit the file with the proper configurations, etc? AFAIK it can't just assume what the quota's are for the user.
 
Old 09-16-2003, 05:33 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,005
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
...also add way more flags :-] "man quotacheck" for more, and even tho most of them are not recommended to use I'm sure it'll work.
Try running "quotacheck -v -c -M -m -f -F vfsold /", and if you want to skip running convertquota change "vfsold" to "vfsv0".
 
Old 09-17-2003, 10:50 AM   #4
paranoia1980
Member
 
Registered: Jun 2003
Location: LA
Distribution: RedHat Linux 7.1
Posts: 34

Original Poster
Rep: Reputation: 15
Cannot enble quota in root (/) partition?

Thanks for you guys' replies. I read the RedHat customization manual and here's their procedure of enabling quota management:

1. Add the "usrquota" and/or "grpquota" to the /etc/fstab file.
2. Remount the file system by "umount" followed by "mount" or reboot the system.
3. Create the "aquota.user" and "aquota.group" file typing

Quote:
quotacheck -acug /path_to_filesystem
at a shell prompt.

4. Generate the table of current disk usage per file system with quotas by

Quote:
quotacheck -avug
5. Use "edquota username" to assing the disk quotas.

I tried to do the above steps for my /boot partition and they did generate the "aquota.user" file. However, when I did the same thing to the root(/) partition, it displayed an error message and did not generate the "aquota.user" file. So, my question is: does RedHat prohibit the user from enabling quota management on the root(/) partition? Thanks a lot!
 
Old 09-17-2003, 11:19 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,005
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
So, my question is: does RedHat prohibit the user from enabling quota management on the root(/) partition?
No, RH doesn't prohibit root from enabling quota's on the root partition.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
enable screensaver when loged as root mlu Linux - Software 1 06-15-2005 01:22 AM
Enable quota in a used partition guideweb Linux - Security 1 03-12-2005 12:46 AM
How to enable quota in 2 different partition visu Linux - Newbie 0 02-11-2004 06:48 AM
enable root pop spank Linux - Newbie 2 12-11-2003 02:39 PM
disk quota root partition fosky Linux - Newbie 0 06-23-2002 04:49 PM


All times are GMT -5. The time now is 06:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration