LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-25-2004, 05:18 AM   #1
DavidI
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
Disk Quotas not working in RH9


Hi.

I am trying to set up disk quotas on RH9. I have added 'usrquota' to /home' in /etc/fstab and then created aquota.user and aquota.group in /home. I rebooted and in the start up messages it told me that it can't find find quota file on /home, so I began searching the net. Someone suggested updating the kernel so I have updated it to 2.4.20-31.9 and I still get the same message. Someone else suggested running the 'sbin/quotacheck -ug /home' command but when I do it says:

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

I am now stuck so any advice would be appreciated.

Thanks
David

PS I am quite new to Linux so I may have missed something simple, although I have been following instructions from 2 books.
 
Old 06-25-2004, 06:04 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: Disk Quotas not working in RH9

Quote:
Originally posted by DavidI
Hi.

I am trying to set up disk quotas on RH9. I have added 'usrquota' to /home' in /etc/fstab and then created aquota.user and aquota.group in /home. I rebooted and in the start up messages it told me that it can't find find quota file on /home, so I began searching the net. Someone suggested updating the kernel so I have updated it to 2.4.20-31.9 and I still get the same message. Someone else suggested running the 'sbin/quotacheck -ug /home' command but when I do it says:

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

I am now stuck so any advice would be appreciated.

Thanks
David

PS I am quite new to Linux so I may have missed something simple, although I have been following instructions from 2 books.

(has to be run as root)

touch /home/aquota.user
touch /home/aquota.group

Add usrquota,grpquota to /home mount in /etc/fstab file.

reboot

quotacheck -avug

edquota and then apply necessary quota

quotaon
 
Old 06-25-2004, 06:39 AM   #3
DavidI
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your reply linuxxed.

I followed your instructions but the same thing happens. When I tried the quotaon command it says it cannot find the quotafile, but I have checked and aquota.user and aquota.group are both in /home.
 
  


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
Disk Quotas mdk3 Linux - General 12 07-06-2005 05:41 PM
Disk quotas on JFS? jisoo23 Linux - General 1 03-03-2005 04:29 AM
disk quotas johnnycash Linux - General 1 03-16-2004 09:12 AM
Uninstall RH9 - boot disk not working e_z_street Linux - Newbie 7 02-16-2004 11:39 PM
disk quotas skeletal29 Linux - General 1 10-13-2002 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:12 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