LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-09-2009, 11:32 PM   #1
abhijit_mohanta
LQ Newbie
 
Registered: Apr 2008
Posts: 27

Rep: Reputation: 15
assign disk quota or size limit to a specific directory or folder on fedora


I want to assign maximum size limit to directory on fedora.Can someone tell me the commands.
 
Old 08-10-2009, 02:06 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You could have a problem; quotas are defined per file-system; effectively partitions for simple disks, or logical volumes for LVM
http://www.linuxtopia.org/online_boo...sk-quotas.html
 
Old 08-10-2009, 03:04 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
You can do this
mount your folder as loop device
#mount -o loop,usrquota <your folder> <where to mount>
Now treat this mounted folder as filesystem
Apply quotacheck command
#quotacheck -cvf <mounted filesystem>
#quotaon <mounted filesystem>
#edquota -u <username>

Thanks
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are Quota Limit and Disk Size consumed different? Nakano Linux - Newbie 1 07-19-2009 03:08 AM
Limit size quota for a samba shared folder delltek04 Linux - Server 6 01-26-2009 06:35 PM
How to assign disk quota(disk space limited) to user and group. hocheetiong Linux - Newbie 1 08-24-2007 04:20 AM
How to limit the size of a specific file ericthyred Linux - Software 1 04-15-2004 11:13 AM
Limit Disk Quota per user ? mikeshn Linux - General 1 06-19-2003 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:48 AM.

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