LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2010, 04:27 PM   #1
Terion23
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Question Preparing system to install qouta


Dear forum visitor,

I wanted to configure my server for users that can have access to php/mysql database but with the limited harddrive space i have
i cant do unlimited space per user.

So i decided to install qouta,
i got this guide from : http://www.debian-administration.org/articles/47

But in this guide that tells me to configure my system partitions to use qouta its says i should edit fstabs.

Quote:
Originally Posted by Tutorial
Quota support is enabled as the filesystems are mounted, and so it must be specified in the options section of your /etc/fstab file.

Specifying the quota options is as simple as adding usrquota for per-user quota, or grpquota for per-group quotes in the options column.

For example this first entry without quotas:

/dev/hda1 /home ext2 defaults 1 1

Would become the following with per-user quotas enabled:

/dev/hda1 /home ext2 defaults,usrquota 1 1

Once this has been added you can remount the partition by rebooting, and install the software. This will setup the partitions to be mounted with quota support enabled, however you haven't enabled them for the running system.
My current fstab:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda1       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
Now my problem is i dont have a unique partition for the /home/ directories of the users.

As far as my knowledge goes my /home/ directory entry is located on /dev/hda2/ where the / parition is mounted.

Now this is my questions to you:

1. What do i put in my fstab. Do i edit it use quota on /dev/hda2 (Where my root partaition is mounted). ?

2. How do i get to know on what partition (/dev//dev/hda2?, /dev/hda2?.) my home directories of the users are?

3. Do you guys know a better guide then the one i am using?

4. Can i reload fstab without having to reboot my machine? (I like keeping my uptime as high as possible )

5. Do i need to know any more stuff that u guys can give me involving risks of badly configuration or handling this matter?

Im looking forward to ure replys.
May The Source Be With You, Terion23

Last edited by Terion23; 03-24-2010 at 04:38 PM.
 
Old 03-24-2010, 07:35 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
df -k /home will tell you which disk it's on.
Use the how-to to put the usrquota on the correct line in fstab.
You can run mount -o remount / to remount the drive without rebooting (assuming home is on /)

There is lots more to know, but where to start ?
man mount
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble preparing HD for slackware 11 install HELP! Lypur Linux - Newbie 114 03-09-2007 03:18 PM
Preparing for Install eggoz Linux - Software 3 09-06-2004 04:48 PM
Preparing a system to dual boot Slackware 9.1 and Windows 98 keldivac Linux - Newbie 1 04-14-2004 06:27 PM
Preparing foir the Slackware 9.1 Install AceTech747 Slackware 12 01-30-2004 08:07 PM
Preparing for Linux install dbr1066 Linux - Newbie 7 12-18-2002 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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