quota! but on the wrong fs :-(

2004-01-31 Thread stefan
Hi,
Got quota working on another web server and wanted to get it working on a 
development/shell server that is kinda new. I forgot that i needed /home mounted on 
it's own like 
/dev/ar0s4e /usr/home   ufs rw,userquota2   2
for example but i just have / mounted so now quota is set on /.
How can i fix this?



Med vänliga hälsningar

Stefan Midjich, Swebase AB
Tel: 042-20 15 00
Fax: 042-20 15 03
E-post: [EMAIL PROTECTED]
Webb: http://swebase.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: quota! but on the wrong fs :-(

2004-01-31 Thread Matthew Seaman
On Sat, Jan 31, 2004 at 08:57:35PM +0100, [EMAIL PROTECTED] wrote:
 Hi,
 Got quota working on another web server and wanted to get it working on a 
 development/shell server that is kinda new. I forgot that i needed /home mounted on 
 it's own like 
 /dev/ar0s4e /usr/home   ufs rw,userquota2   2
 for example but i just have / mounted so now quota is set on /.
 How can i fix this?

You'll have to set up quotas again from scratch on the new partition
-- you can't make the quotas on the root partition extend to cover
/usr/home.  It may be possible to script copying the actual file and
byte limits from what you've setup on the root and copy them into
/usr/home.

Turning off quotas on the root partition is pretty simple -- just edit
/etc/fstab to take out the 'userquota' mount flags, remount the root
partition:

# mount -u /

and then delete the quota.user file.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature