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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-01-2004, 12:45 AM
|
#1
|
Senior Member
Registered: Nov 2003
Location: Western Australia
Distribution: GUI Ubuntu, Server Ubuntu, HamPi, Skywave, DragonOS, many other's
Posts: 1,058
Rep:
|
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
|
|
|
09-01-2004, 12:56 AM
|
#2
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
no, usrquota is usrquota
you can only specify userquota on per partition basis
|
|
|
09-01-2004, 01:01 AM
|
#3
|
Senior Member
Registered: Nov 2003
Location: Western Australia
Distribution: GUI Ubuntu, Server Ubuntu, HamPi, Skywave, DragonOS, many other's
Posts: 1,058
Original Poster
Rep:
|
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
|
|
|
09-01-2004, 01:15 AM
|
#4
|
Senior Member
Registered: Nov 2003
Location: Western Australia
Distribution: GUI Ubuntu, Server Ubuntu, HamPi, Skywave, DragonOS, many other's
Posts: 1,058
Original Poster
Rep:
|
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.
|
|
|
09-01-2004, 02:28 AM
|
#5
|
Senior Member
Registered: Nov 2003
Location: Western Australia
Distribution: GUI Ubuntu, Server Ubuntu, HamPi, Skywave, DragonOS, many other's
Posts: 1,058
Original Poster
Rep:
|
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
|
|
|
09-01-2004, 02:57 AM
|
#6
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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!
|
|
|
09-01-2004, 03:04 AM
|
#7
|
Senior Member
Registered: Nov 2003
Location: Western Australia
Distribution: GUI Ubuntu, Server Ubuntu, HamPi, Skywave, DragonOS, many other's
Posts: 1,058
Original Poster
Rep:
|
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.
|
|
|
09-01-2004, 03:40 AM
|
#8
|
Senior Member
Registered: Nov 2003
Location: Western Australia
Distribution: GUI Ubuntu, Server Ubuntu, HamPi, Skywave, DragonOS, many other's
Posts: 1,058
Original Poster
Rep:
|
well what a day, i lost the lot.
TT
|
|
|
All times are GMT -5. The time now is 09:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|