Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2001 14:22:02 +1100
From:      Tony Landells <ahl@austclear.com.au>
To:        "Brad W" <bradley_watts@hotmail.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Transfer disk space form /usr to root partition 
Message-ID:  <200102130322.OAA01079@tungsten.austclear.com.au>
In-Reply-To: Message from "Brad W" <bradley_watts@hotmail.com>  of "Mon, 12 Feb 2001 22:02:45 CDT." <F142W7MnO1AiDLAuh1w0000a669@hotmail.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Brad,

This is possible, but it's not fun.  At all.

You may want to work out where on / you're chewing up space and look
for an alternative solution:

	if it's /root, create another user with a home directory under
	/usr and do all the stuff that's collecting space as that user

	if it's /tmp either arrange a regular cleanout, try to reconfigure
	some of the stuff to use /var/tmp, or make /tmp a symlink to
	somewhere on /usr (for which you'll also need to create a matching
	directory without /usr mounted, so that if you boot to single-user
	mode and don't have /usr mounted then the symlink still refers to
	a real directory)

	if it's really stuff that has to be in /, see if you can clean up
	some other stuff, like dumping some stuff from /modules that you
	never intend to use, or if you have more than /kernel, /kernel.old
	and /kernel.GENERIC throw out the others.

And if you still think the solution is to reallocate space from /usr to /,
understand that you'll either be starting from scratch, or need a lot of
spare space to dump your existing system, since the process is (subject
to some variations):

	backup existing data

	repartition (which destroys every partition you change, which in
	your case is everything)

	reinstall

	restore the data you backed up

> First of all, is this possible? I have exceeded all available space on my 
> root partition.
> 
> Filesystem    Size   Used  Avail Capacity  Mounted on
> /dev/ad0s2a    51M    51M  -4.0M   109%    /
> /dev/ad0s2f   4.6G   1.8G   2.4G    42%    /usr
> /dev/ad0s2e    20M   9.7M   9.0M    52%    /var
> procfs        4.1K   4.1K     0B   100%    /proc
> 
> 
> I should have made my root partition larger when I initially installed but, 
> ahh... too late now. Is there any valuable documentation on doing this and 
> if so where?
> 
> Thanks,
> Brad

Good luck,
Tony
-- 
Tony Landells					<ahl@austclear.com.au>
Senior Network Engineer				Ph:  +61 3 9677 9319
Australian Clearing Services Pty Ltd		Fax: +61 3 9677 9355
Level 4, Rialto North Tower
525 Collins Street
Melbourne VIC 3000
Australia




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102130322.OAA01079>