nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Configuring disk quotas on Fedora Linux

This is a discussion on Configuring disk quotas on Fedora Linux within the Linux software forums, part of the Linux Getting Started category; How do I configure disk quotas on Fedora Linux? Do I need to patch a kernel (as suggested by some ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-12-2006, 12:52 AM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
OS: Ubuntu
Posts: 79
Thanks: 23
Thanked 4 Times in 3 Posts
Rep Power: 6
chimu is on a distinguished road
Default Configuring disk quotas on Fedora Linux

How do I configure disk quotas on Fedora Linux? Do I need to patch a kernel (as suggested by some tutorials)?
Reply With Quote
  #2 (permalink)  
Old 24-12-2006, 06:00 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Assuming that /home is created and mounted on separate partition such as /dev/sda2

First edit your /etc/fstab file and enable disk quota
Code:
vi /etc/fstab
Make sure it look like as follows
Code:
LABEL=/home       /home          ext3    defaults,usrquota  1 2
Save and close file. Now remount file system
Code:
mount -o remount /home

Now create /home/aquota.user file and set permission
Code:
> /home/aquota.user
chmod 600 /home/aquota.user
Initialize disk quota
Code:
quotacheck -vagum
Setup disk quota for user called vivek, 50 MB:
Code:
edquota -u vivek
You need to setup soft and hard limit let us say soft is 49 MB and hard is 50 Mb
Disk quotas for user vivek (uid 1001):
Code:
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/hdb1                        24      50000      51000       3513        0        0
You need to specify unit in KB. Generally
1000 = 1 MB so 50MB = 51000 (it is 1024 actually)

Save and close the file. Now user vivek cannot exceed his disk quota.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 26-12-2006, 10:18 AM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

nixcraft. Excellent job

On a related note you can use 3rd party tool such as webmin web-based administration toolkit for the same. http://www.webmin.com/
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
configuring DNS on Solaris 10 pappu08 Solaris/OpenSolaris 2 07-04-2009 04:39 AM
Error while configuring Yum linux_sym Getting started tutorials 3 03-07-2008 11:44 AM
Tutorial: Setting up MySQL quotas for users (MyISAM) Nilesh Databases servers 0 26-01-2008 10:01 PM
Linux check disk error raj Linux hardware 3 07-12-2007 10:00 AM
Ubuntu Linux: How do I setup print quotas? cityblogger Linux software 1 06-07-2006 05:11 PM


All times are GMT +5.5. The time now is 05:35 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38