nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-21-2006, 01:52 AM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
My distro: Ubuntu
Posts: 33
Rep Power: 0
chimu is an unknown quantity at this point
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 tutorial?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-24-2006, 07:00 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 12-26-2006, 11:18 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 01:26 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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