LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-08-2005, 11:35 PM   #1
IwantLINUX
Member
 
Registered: Oct 2004
Location: India
Distribution: RH9,Fedora
Posts: 75

Rep: Reputation: 15
Quota....???


Hello,

Can I apply Quota on / filesystem as I m not having /home separately in /etc/fstab. Also, where does my /home directory( and users under that) resides if i am not having a separate partition for /home.

pls help...
 
Old 02-09-2005, 12:07 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Yes, it's fairly easy to set up quotas. Read the howto at the Linux documentation project. If you don't have /home as a separate partition, it's just part of the root filesystem.
 
Old 02-09-2005, 12:44 AM   #3
dialate
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu Warty Warthog
Posts: 29

Rep: Reputation: 15
It sounds like you want all your users to only use a certain amount of the drive, so create a /home partition of that size.

If you don't have a separate home partition, then it becomes a standard directory in the root partition, like any other. What happens when you create a separate home partition is that there is a directory in the root partition called home, and any interactions under this directory get redirected to the other partition. This can be confusing, since its hard to casually tell the difference between the two, because of the seamless integration of the filesystems. If you were to unmount the home partition, it would simply appear to be an empty directory.

If you were to put this into DOS/Windows terms, say you have root partition c:\. You also have a directory c:\home. If DOS/Windows did with the home directory was the same as a separate home partition in Linux does, then you have directory c:\home, but if you did a dir/w, or looked at c:\home in Explorer, you would see the files in d:\.

In Linux you never really see what partitions you're using, because partitions simply "take over" other existing directories to make themselves visible.

Lets look at a simple case with a barebones setup. First you need a root partition, because in the beginning there is only the "/" directory, thats it. So, you tell your first partition to take over "/" Okay, well the first partition has a directory called home with no files or subdirectories. Here comes the second partition. You tell it to take over (mount to) "/home". Now, we create a user iwantlinux. The adduser tool then tries to make a directory called /home/iwantlinux. The second partition says, "thats MINE" and makes that directory in itself. There is only a iwantlinux directory on the second partition, not the first.

Now, if you then told the second partition to bugger off (umount). Then there would just be the empty /home directory, with no /home/iwantlinux directory, because when the second partition went away, it took that information with it.

Lets say now that you just had the first partition mounted to the "/" directory, and no second partition. Adding the user would create a /home/iwantlinux directory under the first partition like usual.

See how that works?
 
Old 02-09-2005, 08:35 AM   #4
IwantLINUX
Member
 
Registered: Oct 2004
Location: India
Distribution: RH9,Fedora
Posts: 75

Original Poster
Rep: Reputation: 15
thank you very much btmiller and dialate for a helpful link and wonderful explanation...

when i try to implement quota on / partition, i get an error "quotacheck: Can't find filesystem to check or filesystem not mounted with quota option." Why is it not able to find filesystem which is ext3...
 
Old 02-09-2005, 03:12 PM   #5
dialate
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu Warty Warthog
Posts: 29

Rep: Reputation: 15
http://www.tldp.org/HOWTO/Quota-3.html#ss3.5
 
  


Reply



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
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM
Quota ziox Linux - General 3 05-07-2004 09:33 PM
quota lynger Linux - Software 0 04-26-2004 10:53 PM
Quota on/off sharon Linux - Newbie 2 07-21-2003 05:17 AM
How to Quota jcb_dreamvsat Linux - General 2 07-16-2003 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration