Disk Quotas
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
> /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
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.
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 -
from the drop-down list and issue a reboot (or start) command.
Access your Linode via ssh
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