LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-01-2004, 12:45 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Rep: Reputation: 32
Managing Disk Usage With Quotas


Hi all i have a question

I take it that usrquota means usernamequota as in jackquota

Is that correct.

TT
 
Old 09-01-2004, 12:56 AM   #2
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
no, usrquota is usrquota
you can only specify userquota on per partition basis
 
Old 09-01-2004, 01:01 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
I'm following this page here

http://www.siliconvalleyccie.com/linux-adv/quota.htm

I'm using putty from XP to my linux box to make all the changes when i used init 1 as in
Quote:
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

TT
 
Old 09-01-2004, 01:15 AM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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
http://www.linuxquestions.org/questi...09#post1147309

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. ( http://user.mydomain.com/ )

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

TT

Last edited by tommytomato; 09-01-2004 at 01:47 AM.
 
Old 09-01-2004, 02:28 AM   #5
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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.

TT
 
Old 09-01-2004, 02:57 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,111

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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 www.tldp.org .

Good luck!
 
Old 09-01-2004, 03:04 AM   #7
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
Thanks

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.

TT

Last edited by tommytomato; 09-01-2004 at 03:21 AM.
 
Old 09-01-2004, 03:40 AM   #8
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
well what a day, i lost the lot.

TT
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Quotas mdk3 Linux - General 12 07-06-2005 04:41 PM
Samba + disk quotas DanWiFi Linux - Software 0 08-20-2004 10:19 AM
Disk Quotas in ProftpD amdathlonboy Linux - Software 0 06-21-2004 02:42 PM
disk quotas johnnycash Linux - General 1 03-16-2004 08:12 AM
disk quotas skeletal29 Linux - General 1 10-13-2002 04:42 PM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration