Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with auto-start quota
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xavan
n00b
n00b


Joined: 20 Jun 2003
Posts: 50

PostPosted: Mon Sep 15, 2003 5:35 pm    Post subject: Problem with auto-start quota Reply with quote

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
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Mon Sep 15, 2003 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
xavan
n00b
n00b


Joined: 20 Jun 2003
Posts: 50

PostPosted: Fri Sep 19, 2003 5:20 am    Post subject: Reply with quote

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:
Back to top
View user's profile Send private message
xavan
n00b
n00b


Joined: 20 Jun 2003
Posts: 50

PostPosted: Fri Sep 19, 2003 5:26 am    Post subject: Reply with quote

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
View user's profile Send private message
xavan
n00b
n00b


Joined: 20 Jun 2003
Posts: 50

PostPosted: Tue Oct 07, 2003 8:24 pm    Post subject: Reply with quote

Any idea?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum