HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Quota setup in Perfect Debian Sarge (http://www.howtoforge.com/forums/showthread.php?t=1830)

chris_87 26th December 2005 19:40

Quota setup in Perfect Debian Sarge
 
Hi,

Another error I faced today, when I try to setup the quota, I've got a message
quotacheck: Scanning /dev/hda1 [/] Cannot get exact used space... Results might be inaccurate.
done
quotacheck: Checked 1211 directories and 13578 files

when I perform quotacheck -avugm.

Any Ideas?

Thanks

falko 27th December 2005 14:23

That's just a warning. If
Code:

quotaon -avug
says that quota is turned on then everything is fine.

chris_87 27th December 2005 16:44

No luck still.:confused:
quotaon -avug
quotaon: Cannot find quota file on / [/dev/hda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/hda1] to turn quotas on/off.

till 27th December 2005 16:56

Please post the output of:

ls -la /

falko 27th December 2005 17:50

Quote:

Originally Posted by chris_87
No luck still.:confused:
quotaon -avug
quotaon: Cannot find quota file on / [/dev/hda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/hda1] to turn quotas on/off.

Did you do this:
Code:

touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug

as described on http://www.howtoforge.com/perfect_setup_debian_sarge_p3?

chris_87 27th December 2005 22:48

yes...I do the exactly..
just copy and paste

till 28th December 2005 11:49

Chris, can you please post the output of:

Code:

ls -la /

chris_87 28th December 2005 13:57

Quote:

Originally Posted by till
Chris, can you please post the output of:

Code:

ls -la /

total 38565
drwxr-xr-x 21 root root 4096 Dec 27 15:43 .
drwxr-xr-x 21 root root 4096 Dec 27 15:43 ..
drwxr-xr-x 2 root root 4096 Dec 28 02:37 bin
drwxr-xr-x 2 root root 4096 Apr 25 2004 boot
drwxr-xr-x 2 root root 4096 Apr 25 2004 cdrom
-rw-r----- 1 root root 39301055 Dec 26 17:19 debian_2005_04_09_dist.tgz
drwxr-xr-x 4 root root 20480 Dec 27 17:58 dev
drwxr-xr-x 64 root root 4096 Dec 28 02:55 etc
drwxr-xr-x 2 root root 4096 Apr 25 2004 floppy
drwxrwsr-x 8 root staff 4096 Dec 27 00:21 home
drwxr-xr-x 16 root root 1024 Oct 14 2004 initrd
drwxr-xr-x 5 root root 4096 Dec 26 18:36 lib
drwxr-xr-x 2 root root 4096 May 2 2004 lost+found
drwxr-xr-x 2 root root 4096 May 2 2004 mnt
drwxr-xr-x 2 root root 4096 Apr 25 2004 opt
dr-xr-xr-x 87 root root 0 Dec 27 17:58 proc
-rw------- 1 root root 2097120 Dec 27 15:43 quota.group
-rw------- 1 root root 2097120 Dec 27 15:43 quota.user
drwxr-xr-x 2 root root 4096 Dec 26 19:12 root
drwxr-xr-x 2 root root 4096 Dec 26 18:36 sbin
drwxr-xr-x 2 root root 4096 May 10 2005 sys
drwxrwxrwt 4 root root 4096 Dec 28 12:47 tmp
drwxr-xr-x 13 root root 4096 Dec 26 21:20 usr
drwxr-xr-x 14 root root 4096 Dec 26 18:03 var

Any Idea?

falko 28th December 2005 17:55

Please try this:
Code:

rm -f /quota.user
rm -f /quota.group
touch /aquota.user /aquota.group
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug


chris_87 29th December 2005 02:18

Quote:

Originally Posted by falko
Please try this:
Code:

rm -f /quota.user
rm -f /quota.group
touch /aquota.user /aquota.group
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug


[CODE]

Still no luck..
vchow:~# rm -f /quota.user
vchow:~# rm -f /quota.group
vchow:~# touch /aquota.user /aquota.group
vchow:~# chmod 600 /aquota.*
vchow:~# mount -o remount /
vchow:~# quotacheck -avugm
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't sav e quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't sa ve quota settings...
quotacheck: Scanning /dev/hda1 [/] Cannot get exact used space... Results might be inaccurate.
done
quotacheck: Checked 5456 directories and 32248 files
vchow:~# quotaon -avug
quotaon: Cannot find quota file on / [/dev/hda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/hda1] to turn quotas on/off.


drwxr-xr-x 21 root root 4096 Dec 29 01:17 .
drwxr-xr-x 21 root root 4096 Dec 29 01:17 ..
-rw------- 1 root root 11264 Dec 29 01:13 aquota.group
-rw------- 1 root root 10240 Dec 29 01:13 aquota.user
drwxr-xr-x 2 root root 4096 Dec 28 02:37 bin
drwxr-xr-x 2 root root 4096 Apr 25 2004 boot
drwxr-xr-x 2 root root 4096 Apr 25 2004 cdrom
drwxr-xr-x 4 root root 20480 Dec 29 00:48 dev
drwxr-xr-x 64 root root 4096 Dec 29 01:12 etc
drwxr-xr-x 2 root root 4096 Apr 25 2004 floppy
drwxrwsr-x 8 root staff 4096 Dec 27 00:21 home
drwxr-xr-x 16 root root 1024 Oct 14 2004 initrd
drwxr-xr-x 5 root root 4096 Dec 26 18:36 lib
drwxr-xr-x 2 root root 4096 May 2 2004 lost+found
drwxr-xr-x 2 root root 4096 May 2 2004 mnt
drwxr-xr-x 2 root root 4096 Apr 25 2004 opt
dr-xr-xr-x 86 root root 0 Dec 29 00:42 proc
drwxr-xr-x 2 root root 4096 Dec 26 19:12 root
drwxr-xr-x 2 root root 4096 Dec 26 18:36 sbin
drwxr-xr-x 2 root root 4096 May 10 2005 sys
drwxrwxrwt 4 root root 4096 Dec 29 00:48 tmp
drwxr-xr-x 13 root root 4096 Dec 26 21:20 usr
drwxr-xr-x 14 root root 4096 Dec 26 18:03 var


Can anyone help me:confused:


All times are GMT +2. The time now is 06:08.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.