LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Preparing system to install qouta (https://www.linuxquestions.org/questions/linux-software-2/preparing-system-to-install-qouta-797628/)

Terion23 03-24-2010 04:27 PM

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

smoker 03-24-2010 07:35 PM

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


All times are GMT -5. The time now is 12:17 PM.