I'm not sure that will do it. From my understanding, quotacheck reads all the files and creates the quota file. When you run quotacheck, then partition should be unmounted so as to prevent anyone from using it. Simply turning off quota's won't be that. I'm in the same situation, however I'm unable to unmount the filesystem so instead I just use -f to force it to update the quota file... -----Original Message----- From: Jeffrey A. St. Pierre [mailto:Jasp2@xxxxxxxxxxxx] Sent: Thursday, July 15, 2004 12:11 PM To: golharam@xxxxxxxxx; General Red Hat Linux discussion list Subject: RE: quota On Wed, 14 Jul 2004, Ryan Golhar wrote: > I have the same issue, however I just added the -f and run quotacheck > once a week... > > Ryan > > > -----Original Message----- > From: redhat-list-bounces@xxxxxxxxxx > To: redhat-list > Subject: quota > > > OK- > > Seeing how the RHEnterprise seems to skip this little tid-bit of info, > can someone please fil me in. > > I am trying to run quotacheck on /var/spool/mail on a live system, via > cron, as recomended. > > Unfortunately this is what happens: > > -bash </var/spool> sudo quotacheck -vug /var/spool/mail > quotacheck: Quota for users is enabled on mountpoint /var/spool/mail > so quotacheck might damage the file. Please turn quotas off or use -f > to force checking. > > OK, so what is the propoer procedure for checking quotas on a live > system. I obviously need to check it while the system is live.and for > /var/spool/mail I should probably do it once per night... > > should I just setup a script that does a qutoaoff, quotacheck -avgu, > quotaon? > > Thanks in advance, > > Jeff Well, I haven't recieved much of an answer from anyone on 3 different lists. I guess noone uses quota that much or they just force it. Here's what I figured out though, basically write a script that does this: quotaoff -a quotacheck -agum quotaon -a running by hand you can add (-v) for verbosity. the (-m) on the quotacheck is nice, as it does not make the filesystems read-only while checking. People get angry when they can't write to their home directory. Even with quotas off the quotacheck remounts the filesystem ro unless you specify -m. I assume this is the proper way to use quotacheck, despite not much in the way of documentation for this. Google shows many people asking whether -f is bad, but noone has the answer. Hope this helps somone, or prompts someone with real info to write in. -Jeff -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list