Disk Quotas

Can someone assist me in setting up disk quotas for my users? I've been trying to this using the following link:

~~[http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-disk-quotas.html" target="_blank">](http://www.redhat.com/docs/manuals/linu … uotas.html">http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-disk-quotas.html](

but I keep crashing my linode. Any help would be appreciated. I'm wanting to set about 250-300MB of space per user.

Thanks

l0st_s0ul

3 Replies

Where in the process do you run into trouble?

Well, when I followed those instructions and did what it said, my linode wouldnt start. Here is my etc/fstab:

> /dev/ubda / ext3 defaults 1 1

LABEL=/ / ext3 defaults 1 1

LABEL=/boot /boot ext3 defaults 1 2

none /dev/pts devpts gid=5,mode=620 0 0

LABEL=/home /home ext3 defaults,usrquota,grpquota 1 2

none /proc proc defaults 0 0

none /dev/shm tmpfs defaults 0 0

/dev/ubdb swap swap defaults 0 0

i dunno what im doing wrong? but when I do this, my linode will not start

Hi,

For a start you shouldn't have copy-pasted the fstab lines from the RedHat document. You need to remove the lines starting "LABEL=" – it is probably why your Linode won't boot.

Recovering your Linode

If you can't reach the /etc/fstab from a regular boot, you can access the root disk image by using a recovery profile:

1. https://www.linode.com/members/configs.cfm

2. Select "Create a new configuration profile".

3. Add the following:

Label: Recovery - Finnix

Kernel: Recovery - Finnix (kernel)

Run Level: Single user mode

Drive setup:

/dev/ubda Recovery Finnix (iso)

/dev/ubdb (select your root drive image, e.g. Debian)

[Save Profile]

(Don't make this the "default" configuration.)

4. From the main page - https://www.linode.com/members/main.cfm - at "Issue a command to your Linode", select the "Recovery - Finnix"

from the drop-down list and issue a reboot (or start) command.

Access your Linode via ssh .linode.com, login and mount the root partition of your Linode – IIRC, this should work:````
mount /mnt/ubdb

Now edit your fstab with nano / vi:

nano /mnt/ubdb/etc/fstab

and remove the offending LABEL lines.

Reboot the Linode via <url url="https://www.linode.com/members/main.cfm">https://www.linode.com/members/main.cfm</url> again, and it should restart. Your Linode will be alive again.

****Adding quotas****

I've not done this myself, but to add quotas to your Linode just edit the appropriate fstab entry – don't add lines that don't belong there. For example, if you wanted to add quotas to your root partition, EDIT the line:

/dev/ubda / ext3 defaults 1 1

so it looks like this:

/dev/ubda / ext3 defaults,usrquota,grpquota 0 1

````

The rest of the instructions from the RedHat guide should then work.

HTH.

Cliff

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct