View previous topic :: View next topic |
Author |
Message |
xavan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Jun 2003 Posts: 50
|
Posted: Mon Sep 15, 2003 5:35 pm Post subject: Problem with auto-start quota |
|
|
During the boot:
Quote: |
Starting quota
Checking quota this may take a long time
quotacheck can't find filesystem with quota option
turning on quota OK
|
And quotaon doesn't work
Altough when I make
Code: |
bash-2.05b# quotacheck -auvg
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
bash-2.05b# mount -o remount /
bash-2.05b# quotacheck -auvg
Cannot get exact used space... Results might be inaccurate.
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.
bash-2.05b# quotacheck -auvgm
Cannot get exact used space... Results might be inaccurate.
quotacheck: Scanning /dev/root [/] done
quotacheck: Checked 30469 directories and 301530 files
|
And now I can use quota.
I 've use the gentoo security guide to install quota and the quotas script too
Where is the problem? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neilhwatson l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_morbo.gif)
Joined: 06 Feb 2003 Posts: 719 Location: Canada
|
Posted: Mon Sep 15, 2003 8:09 pm Post subject: |
|
|
Check the man page. I believe you need the -c option to create the quota file. _________________ The true guru is a teacher.
Neil Watson |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xavan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Jun 2003 Posts: 50
|
Posted: Fri Sep 19, 2003 5:20 am Post subject: |
|
|
Code: |
bash-2.05b# quotacheck -avugc
Cannot get exact used space... Results might be inaccurate.
quotacheck: Scanning /dev/hda4 [/home] done
quotacheck: Checked 40 directories and 248 files
quotacheck: Old file not found.
quotacheck: Old file not found.
bash-2.05b# ls
apacheora ftp lost+found quota.group xavan
blade httpd oracle quota.user
bash-2.05b# ls -a
. .keep blade httpd oracle quota.user
.. apacheora ftp lost+found quota.group xavan
bash-2.05b# quotaon -a
bash-2.05b# edquota -g inpres
edquota: Bad format:
/dev/hda4 0 10 100
edquota: Can't read quotas from file.
|
It create quota.user and quota.group but in the boot of the computer it talk about aquota.* ![Evil or Very Mad :evil:](images/smiles/icon_evil.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xavan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Jun 2003 Posts: 50
|
Posted: Fri Sep 19, 2003 5:26 am Post subject: |
|
|
When y do the same command like in the boot
Code: |
bash-2.05b# rm quota.*
bash-2.05b# touch aquota.user
bash-2.05b# touch aquota.group
bash-2.05b# chmod 600 aquota.*
bash-2.05b# nano /etc/init.d/quotas
bash-2.05b# quotacheck -avug
Cannot get exact used space... Results might be inaccurate.
quotacheck: WARNING - Quotafile /home/aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile /home/aquota.group 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.
bash-2.05b# quotacheck -avugm
Cannot get exact used space... Results might be inaccurate.
quotacheck: WARNING - Quotafile /home/aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile /home/aquota.group was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda4 [/home] done
quotacheck: Checked 40 directories and 250 files
bash-2.05b# quotaon -avug
quotaon: Cannot find quota file on /home [/dev/hda4] to turn quotas on/off.
quotaon: Cannot find quota file on /home [/dev/hda4] to turn quotas on/off.
bash-2.05b# mount -o remount /dev/hda4
bash-2.05b# quotacheck -avugm
Cannot get exact used space... Results might be inaccurate.
quotacheck: Scanning /dev/hda4 [/home] done
quotacheck: Checked 40 directories and 250 files
bash-2.05b# quotaon -avug
quotaon: Cannot find quota file on /home [/dev/hda4] to turn quotas on/off.
quotaon: Cannot find quota file on /home [/dev/hda4] to turn quotas on/off.
bash-2.05b# edquota -g inpres
edquota: Bad format:
/dev/hda4 0 100 1000
edquota: Can't read quotas from file.
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xavan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Jun 2003 Posts: 50
|
Posted: Tue Oct 07, 2003 8:24 pm Post subject: |
|
|
Any idea? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|