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-07-2006, 11:21 PM   #1
y.sudhir.rao
LQ Newbie
 
Registered: Apr 2005
Location: India
Posts: 1

Rep: Reputation: 0
Setting disk quota in LINUX


Hello Friends,

I have a doubt related to Setting Disk Quota in Linux. I could not understand the inital step of configuring /etc/fstab file. By default /home is the home directory. What device file name should i give in the fstab file for the /home directory. What i should type at the place of ? that i have entered below.

? /home default user,group 1,1.

I tried with LABEL=/home /home default user,group 1,1. But system showed error that label could not find and hence could not mount /home. Could you help me please.

Thanking you,

Sudhir Rao
 
Old 08-08-2006, 01:52 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You only need to put /home in your /etc/fstab if you need to mount it. This means that the contents of /home are on a different disk than the contents of your /. If they're on the same disk, then there's no need to mount them.

Maybe you need a separately mounted /home in order to use quotas. But haven't used those myself, so I can't help you with that.
 
Old 08-08-2006, 03:14 AM   #3
sambyte
Member
 
Registered: Feb 2006
Distribution: Redhat 9
Posts: 38

Rep: Reputation: 15
hello,
your /home is the directory in which your partition is mounted . it could be anything like /dev/sdax where x could be any number. now in /etc/fstab write
/dev/sdax /home defaults,usrquota 0 0

now mount -av then set the quota by the command like quotacheck -mcvu /home
quotaon /home
setquoua -u x x x x /home username

pls try these and see if it helps
 
  


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
Setting disk quota ray5_83 Linux - General 1 08-09-2004 04:57 AM
disk over quota blacbastard Linux - General 1 11-20-2003 10:44 AM
disk over quota blacbastard Solaris / OpenSolaris 1 11-19-2003 09:26 AM
Disk Quota argh2005 Red Hat 3 09-01-2003 04:15 AM
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 06:07 PM.

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