Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 29th February 2012, 10:56
ircf ircf is offline
Join Date: Feb 2011
Posts: 30
Thanks: 5
Thanked 8 Times in 5 Posts
Default Move quota to another partition ?


About a year ago, when I used the Perfect Debian Squeeze setup, I made a huge mistake while setting quotas.

My ISP provider had installed a separate partition for data (namely /var). But I dumbly setup quotas on main partition /, like told in the setup ><.

So now when I do
repquota -avug
it shows my users quotas (which are defined from ISP Config) but on the wrong partition. I suppose this is useless so I would like to "move" these quota from / to /var.

1. Can anyone tell me if these steps are good and not dangerous for my partitions and/or users data please ?

quotaoff -avug
vi /etc/fstab
# move options usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 from / to /var partition then save and quit
mv /aquota.user /var/aquota.user
mv /aquota.group /var/aquota.group
mount -o remount / && mount -o remount /var # or just reboot
quotacheck -avugm
quotaon -avug
2. I know this is not a forum about ISP Config, but could anyone tell me whether if ISP Config will still be able to update quotas if I move them into /var ? Should I modify something in ISP Config to do so ?

3. Still about ISP Config (sorry) I've read somewhere quotacheck should be run on a periodic base. Does ISP Config does it for me or should I add a crontab like this ?

crontab -e
0 * * * * quotaoff -avug && quotacheck -avugm && quotaon -avug
Thank you for your help.

Last edited by ircf; 29th February 2012 at 12:01.
Reply With Quote
Sponsored Links


crontab, partition, quota, quotacheck

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Move /var to another partition Toucan General 1 5th January 2012 15:54
Cron issue in Debian 6 Nolan Installation/Configuration 6 18th April 2011 17:36
Can all the installation and configuration be automated (Kickstart) gabby Installation/Configuration 0 30th January 2010 20:47
quota problem after move to other server metaldrummer Installation/Configuration 2 14th January 2009 15:18
chgrp error new user DKA General 15 28th July 2008 18:45

All times are GMT +2. The time now is 01:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.