-   Linux - Newbie (
-   -   Managing Disk Usage With Quotas (

tommytomato 09-01-2004 01:45 AM

Managing Disk Usage With Quotas
Hi all i have a question

I take it that usrquota means usernamequota as in jackquota

Is that correct.


Demonbane 09-01-2004 01:56 AM

no, usrquota is usrquota
you can only specify userquota on per partition basis

tommytomato 09-01-2004 02:01 AM

I'm following this page here

I'm using putty from XP to my linux box to make all the changes when i used init 1 as in

Enter Single User Mode
As we'll need to remount the /home filesystem it's best to ensure that no other users or processes are using it. This is best achieved by entering single user mode from the console. This may be unnecessary if you are certain that you're the only user on the system.

[root@bigboy tmp]# init 1
It locked me out of the linux box, i had to switch to the main linux keyboard to type back in init 3 to gain control back so i can use putty again.

Is this normal because i freak out a bit, thought i killed the pc for the 100 th time


tommytomato 09-01-2004 02:15 AM

I have another question

I take it you have to be in ( init 1 ) mode to Remount The Filesystem ( mount -o remount /home )
after editing the /etc/fstab File

I have added the line to the fstab file ( LABEL=/home /home ext3 defaults,usrquota 1 2 )

My error

mount -o remount /home
[mntent]: warning: no final newline at the end of /etc/fstab
mount: no such partition found

I'm trying to get to work with this, so user has a disk quoter of 50meg

If i do what is says that will add in 5meg to any user thats in the home
will this add a limit to the folder as well called sbs under /var/www/sites/sbs because i created a link for that user to that folder, which is showing his test site. ( )

his home is /home/user and his site sits at /var/www/sites/sbs whcih he has access to write to sbs.


tommytomato 09-01-2004 03:28 AM

can some one tell me whats going on please

I'm in init 1 mode i edited the file fstab

then i type in mount -o remount /home

and i get the follow error

mount: no such partition found

anyway i did touch /home/aquota.user and chmod 600 /home/aquota.user

then i run quotacheck -vagum and i get the following error

can't find filesystem to check or filesystem not mounted with quota.

can any one help me out please.


btmiller 09-01-2004 03:57 AM

OK -- you asked a bunch of questions. Firstly, yes it's normal that you got kicked off when you went to runlevel 1 (which is what init 1 does). Riunlevel 1 is a very minimal setup with no networking support, so obviously your SSH connection is going to die when you go to it. As for your problem:

(a) check that there's a blank line at the end of /etc/fstab (this should fix the "no newline" error).
(b) /home may not even be mounted in single user mode (runlevel 1) -- type df to see what's mounted. In general, once you've made your changes in runlevel 1, you may as well reboot the machine to get it back up to a higher runlevel (or just type 'init 3' to go to runlevel 3). You can finish up setting quotas there. There's another nice document on quota setup at .

Good luck!

tommytomato 09-01-2004 04:04 AM


I went to reboot the system, and now i cant get back in, its asking me to repair the filesystem

error is on boot as well

*** An error occurred during the file system check
***Droping you to a shell; the system will reboot
***when you leave the shell
Give root password for maintenance
( or type Control -D to Continue ):
(Repair filesystem 1 # )

I have never seen this before, and i have no clue on what to do, and i dont realy want to reboot the whole thing again.

can any one explain how to fix.


tommytomato 09-01-2004 04:40 AM

well what a day, i lost the lot.


All times are GMT -5. The time now is 03:03 AM.