Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
06-01-2004, 08:14 AM
|
#1
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Slack/Ubuntu & OpenBSD (not a linux distro)
Posts: 56
Rep:
|
Quota for an user
Hi,
i'm new to this quota thing, i configured everything to use quota but what will be the value if a want to give 25 MB disk quota on a disk for an user ?
edquota -u username
Disk quotas for user curtones (uid 1006):
Filesystem blocks soft hard inodes soft hard
/dev/hda1 1268 0 0 173 0 0
i don't get this blocks thing & inodes.. sorry i know is a shame :-(
|
|
|
06-01-2004, 10:33 AM
|
#2
|
Member
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216
Rep:
|
According to the Quota mini HOWTO at http://www.tldp.org/HOWTO/Quota.html , one block is one kilobyte (1024 bytes). So, 25 MB * 1024 KB/MB = 25600 KB = 25600 blocks.
I believe (correct me if I'm wrong) that each file and directory uses an inode, so the inode limit restricts the number of files and directories a user can own.
Last edited by eric.r.turner; 06-01-2004 at 10:38 AM.
|
|
|
06-01-2004, 10:42 AM
|
#3
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Slack/Ubuntu & OpenBSD (not a linux distro)
Posts: 56
Original Poster
Rep:
|
Quote:
Originally posted by eric.r.turner
According to the Quota mini HOWTO at http://www.tldp.org/HOWTO/Quota.html , one block is one kilobyte (1024 bytes). So, 25 MB * 1024 KB/MB = 25600 KB = 25600 blocks.
I believe (correct me if I'm wrong) that each file and directory uses an inode, so the inode limit restricts the number of files and directories a user can own.
|
Ok got that.. but what i don't get is, what do this mean ?
Disk quotas for user curtones (uid 1006):
Filesystem blocks soft hard inodes soft hard
/dev/hda1 1268 0 0 173 0 0
blocks 1268
inodes 173
Wht should the soft & the hard be ?
|
|
|
06-01-2004, 12:37 PM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Going by the doc's that I've if soft and hard limits are set to zero the user has unlimited disk use, so I guess you have to set them.
The soft limit is a limit that once the user goes over it they have a grace period of a few days ,or whatever length that you can set, to get their disk usage back under the soft limit else the soft limit becomes a hard lmit. The user is then unable to write to the disk.
|
|
|
06-02-2004, 12:14 AM
|
#5
|
Member
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216
Rep:
|
Quote:
Originally posted by Anibal
Ok got that.. but what i don't get is, what do this mean ?
|
Read the mini HOWTO (yes, all of it.) What it shows for blocks and inodes are current usage. The hard and soft limits at zero mean unlimited.
|
|
|
All times are GMT -5. The time now is 12:21 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
|
|