 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

9th August 2004, 04:35 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Posts: 30

|
|
|
quotacheck command not found on fedora
Im trying to setup the quotas
i add it the :
usrquota,grpquota to the /etc/fstab and reboot it the system .
then i ran the command quotacheck and i get command not found.
What can i do ? any ideas ?
PS: Im running FC2
|

9th August 2004, 06:07 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
You ran it as an ordinary user. It is in /sbin/quotacheck, not in a user's path.
Also, from the man page:
Quote:
NOTE
quotacheck should only be run by super-user. Non-privileged users are
presumably not allowed to read all the directories on the given
filesystem.
|
So I would run it as root: enter and the root password, and run it.
|

9th August 2004, 06:08 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Location: Euregio
Posts: 3,613

|
|
please don't write bold
and you can use the su - command to become root.
//edit: jman edited his post
|

9th August 2004, 07:21 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Posts: 30

|
|
i know that has to be done under root.
But now im getting this when i run it
/sbin/quotacheck -acug /home
Bad number of arguments
im trying to follow this from redhat
Disk Quotas
Is it different for fedora ?
Last edited by mtekc; 9th August 2004 at 10:16 PM.
|

10th August 2004, 09:20 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
|
Back to the manpage, all those options exist. However, -a, -u, and -g are quite similar, so this may be causing the confusion?
Try it without the -a option.
|

10th August 2004, 11:24 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Posts: 30

|
|
/sbin/quotacheck -cug /home
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.
Do i have to force with the -m flag ? because i cant umount /home ..its busy..
|

11th August 2004, 11:56 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
You can probably unmount it in single user mode. Run
|

12th August 2004, 07:30 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Posts: 30

|
|
Thanks a lot Jman !
Got it working. Thanks for the help
|

12th August 2004, 11:22 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
|
No problem.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 23:44 (Tuesday, 18-06-2013)
|
|
 |
 |
 |
 |
|
|