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.
|
 |
02-08-2005, 11:35 PM
|
#1
|
Member
Registered: Oct 2004
Location: India
Distribution: RH9,Fedora
Posts: 75
Rep:
|
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...
|
|
|
02-09-2005, 12:07 AM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
02-09-2005, 12:44 AM
|
#3
|
LQ Newbie
Registered: Apr 2004
Distribution: Ubuntu Warty Warthog
Posts: 29
Rep:
|
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?
|
|
|
02-09-2005, 08:35 AM
|
#4
|
Member
Registered: Oct 2004
Location: India
Distribution: RH9,Fedora
Posts: 75
Original Poster
Rep:
|
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...
|
|
|
02-09-2005, 03:12 PM
|
#5
|
LQ Newbie
Registered: Apr 2004
Distribution: Ubuntu Warty Warthog
Posts: 29
Rep:
|
|
|
|
All times are GMT -5. The time now is 03:55 AM.
|
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
|
|