LinuxQuestions.org
Help answer threads with 0 replies.
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 04-10-2002, 09:02 AM   #1
johnlee
Member
 
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43

Rep: Reputation: 15
Disk Quota in Rehat 7.2 with ext3


Dear All,
I m using redhat 7.2 i want to enable disk quota on /var partition i have just modified /etc/fstab file and define usrquota,grpquota there and reboot machine when i run the command equota username then its give me following errors

No filesystems with quota detected.

what does it mean. How cold i enable quota restriction on var partion please help me


Regards,

John Lee
 
Old 04-10-2002, 12:27 PM   #2
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280

Rep: Reputation: 30
hello,
i think you may need to compile a new kernel, enable quotas - if you are using the default RH kernel I think there were issues.
 
Old 04-14-2002, 01:39 AM   #3
johnlee
Member
 
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43

Original Poster
Rep: Reputation: 15
How could i create aquota.user file

Dear All,
How could i create aquota.user file i just created it by
touch aquota.user

then i run quotaon /var command but this give me this error
quotaon: using /var/aquota.user on /dev/sdc3: Invalid argument
I have checked it with kernel recompilation i have enabled quota option in kernel that is already enabled but still unbale to implement quota restriction also i am getting this error in my /var/log/boot.log file

rc.sysinit: Enabling local filesystem quotas: failed


please help me i m using redhat 7.2

Regards

John Lee
 
Old 04-15-2002, 01:42 PM   #4
kylo8787
Member
 
Registered: Jan 2002
Location: longview idaho
Distribution: slackware 8.1
Posts: 48

Rep: Reputation: 15
you have to add a entry in your /etc/fstab


here is a good how to.

http://www.tldp.org/HOWTO/mini/Quota.html
 
Old 04-23-2002, 11:49 AM   #5
johnlee
Member
 
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43

Original Poster
Rep: Reputation: 15
Redhat kernel 2.4 and quota problem

Dear all,
I have enabled in /etc/fstab file usrquota,grpquota

but still getting error


No file system dectect with quota support.
i need help for setting quota in kernel 2.4


Regards,

johnlee
 
Old 06-29-2002, 08:53 AM   #6
fosky
LQ Newbie
 
Registered: Jun 2002
Location: Maranello - Italy
Distribution: Mandrake 8.2
Posts: 2

Rep: Reputation: 0
I have had this problem 2 days ago, the correct procedure is:
Kernel must be compiled with quota support ( I think that it ' s configured with redhat)
Create file aquota.user in the root directory (for example /var), make the file rw only for root, (chmod 600), modify etc/fstab for enable quota (example of fstab /dev/hda2 /var ext2 defaults,usrquota 1 1), reboot pc, the kernel give an error invalid argument. At this point you must make: quotacheck -vum /var this permit you to write the binary file aquota.user with information in /var. The parameter -m i don't sure that is ok, but if you
don' t put the quotacheck not work becouse /var is in use. After that you must edit aquota.user with edquota <user> /var, save it (esc:wq) and finally enable quota in filesystem: quotaon -av. Next reboot quota will be enable by default. Good luck, i hope that you have understand my englis.
 
Old 09-11-2002, 11:01 PM   #7
bock
LQ Newbie
 
Registered: May 2002
Location: sacramento
Distribution: Bock Hat 7.2
Posts: 11

Rep: Reputation: 0
Smile RH7.2 quota ext3 solution

great post fosky.

I've been reading up on quotas for about 2 days trying to figure out what I have to do before I do it w/ RH7.2.

Here is the skinny on my configureation and what worked for me (after following fosky's post):

Read:
http://www.tldp.org/HOWTO/mini/Quota.html#toc5
Everyone refers people to this page, but it does not seem to target Red Hat users.

Read:
http://www.tldp.org/LDP/solrhe/Secur...1.3/quota.html
very good documentation - specific to Red Hat

So I tried that, but had some issues. Bottom line, here are the summarized steps:

//
// RedHat 7.2 - 2.4.7-10smb
// no kernel upgrade required
// no patch required
// hard drives mounted using ext3
// ext3 & quotas should "work", I saw some posts regarding
// issues, we'll see....
//
// basic flow following doc #2

//make your changes by adding the
//usrquota,grpquota labels
vim /etc/fstab
touch /home/aquota.group
touch /home/aquota.user
touch /home/quota.group
touch /home/quota.user
chmod 660 /home/*quota.*

//
// now fosky's advice
// additional commands because 2 different mounts
// hdbx & hdby
// and because of groups & users quotas

/sbin/quotacheck -vum /home
/sbin/quotacheck -gvm /home
/sbin/quotacheck -uvm /usr
/sbin/quotacheck -gvm /usr

// now reboot

//all should work now.
quota -g staff
quota -u smegol


hope that helps someone.

-bock out

Last edited by bock; 09-11-2002 at 11:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to boot a fedora 3 cd from a rehat linux 8.0 floppy disk llcoolj Linux - Newbie 1 04-22-2005 09:00 AM
Disk Quota mdk3 Linux - Software 2 04-12-2005 06:44 PM
ext3 + Debian + quota Mikessu Linux - General 0 12-27-2003 06:09 PM
Disk quota jcb_dreamvsat Linux - Security 4 07-13-2003 08:37 PM
disk quota iquadri1 Linux - Networking 1 09-29-2001 01:58 PM

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

All times are GMT -5. The time now is 03:10 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