0

I have installed CentOS 5.5 servern with a KDE desktop. Everything seems to be functioning okay but I keep getting this error when I turn on my computer (the log while starting up). I have installed apache, mysql, phpmyadmin, dovecot and using a tutorial I edited fstab from:

Original FSTAB file

/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

Modified FSTAB file in use (according to the tutorial I used)

/dev/VolGroup00/LogVol00 /                       ext3    defaults,usrquota,grpquota        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

All processes start okay but the parameter Enabling local file system quotas returns failed. What are the implications of this? How can I correct this error?

When I type quotacheck -a in the terminal it returns

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
rzlines
  • 219
  • 6
  • 18

1 Answers1

1

Do you have /aquota.user and /quoata.group files? Run quotacheck -cug / to create them if you haven't.

mattdm
  • 6,600
  • 1
  • 26
  • 48
  • they both exist, do i still run the command? – rzlines Dec 07 '10 at 16:33
  • Yeah; it'll properly initialize the file. Boot into single user mode to run it, so nothing else is going on. – mattdm Dec 07 '10 at 16:39
  • should i run it as root? – rzlines Dec 07 '10 at 16:41
  • 1
    Yes. (That's implied by single-user mode, btw.) – mattdm Dec 07 '10 at 16:44
  • I did that n I get the error bad number of arguments. Utility for checking and reparing quota files. quotacheck [-gucfinvdmMR] [-F ] filesystem|-a – rzlines Dec 07 '10 at 16:45
  • Did you include the `/` at the end? – mattdm Dec 07 '10 at 16:57
  • @mattdm - ooppss.. sorry I did that and the output is 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. – rzlines Dec 07 '10 at 17:04
  • @mattdm - I ended all active programs before executing the command should I add -m at the end? – rzlines Dec 07 '10 at 17:07
  • "Ending all active programs" entails more than you think it does. Not just the programs you see, but everything you don't as well. The only way to do this is to enter single user mode. (That said, `-M`, in caps, might work, although you risk getting slightly invalid data.) – mattdm Dec 07 '10 at 17:09
  • I am working as the root user, i'll logout and try again and get back with the results – rzlines Dec 07 '10 at 17:10
  • @mattdm - After I run it with -M will I recieve any outputs because it looks like its hung – rzlines Dec 07 '10 at 17:16
  • It's scanning the filesystem. Please hold. :) You can run it with `-v` or `-vv` to see what's going on. – mattdm Dec 07 '10 at 17:25
  • @mattdm - thanks for all the help! I'll keep you updated as soon as it finishes but by the looks of it, its still at it. – rzlines Dec 07 '10 at 17:34
  • @mattdm - I kept it going for hours and nothing happened, actually I left my computer on all nite long and well it was still there. Do you know approx. how long it takes? – rzlines Dec 08 '10 at 05:12
  • Shouldn't take that long. I suggest switching into single-user mode (`sudo telinit 1`) and running from there. Use the `-vv` option this time to watch the progress. Before you do that, though, type `dmesg` and look for disk errors. – mattdm Dec 08 '10 at 13:44