Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2007 11:06:36 -0800
From:      "Michael K. Smith - Adhost" <mksmith@adhost.com>
To:        "Don Munyak" <don.munyak@gmail.com>, "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   RE: compiling error - /usr : filesystem full
Message-ID:  <17838240D9A5544AAA5FF95F8D52031601A8BF2E@ad-exh01.adhost.lan>
In-Reply-To: <6207f7d90702081057i597ff6e4r427b0ec66f91acc5@mail.gmail.com>
References:  <6207f7d90702070902n5a2aceb3xe6b380b491ae5b64@mail.gmail.com><d7195cff0702072125v1c7bd696j6cdb762746abf12f@mail.gmail.com> <6207f7d90702081057i597ff6e4r427b0ec66f91acc5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hell Don:

> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> questions@freebsd.org] On Behalf Of Don Munyak
> Sent: Thursday, February 08, 2007 10:58 AM
> To: FreeBSD Questions
> Subject: Re: compiling error - /usr : filesystem full
>=20
> Here's some additional Information I have been able to find. The
> narrative is just to further explain what I was doing.
> ---------------------
> I was in the process of rebuilding a new kernel for one of my laptops.
> I did the whole cvsup_without-gui. I created a new kernel called
> LAPTOP and commented all unnecessary drivers and options.
>=20
> When I ran make buildkernel KERNCONF=3DLAPTOP, the process eventually
> died with an error. I neglected to write down the exact error, but it
> was something like
>=20
> {objcopy) /usr : filesystem full
>=20
> As you can see /usr is choking. I have not turned off the laptop.
> Based on the information below, what can I "delete" to free up some
> space. I use the word delete in broad terms. Much like the windows
> world where you should 'uninstall' as opposed to simply deleting a
> folder...I am not sure what to do...ie how to free up space.
>=20
> The only thing I can think of is to simply # rm /usr/ports ... for
> lack of a better example.
>=20
> # du -ak /usr |sort -nr | > /tmp/file2.txt
> This file had 24,000 lines so I deleted much of the file.
>=20
> Your thoughts/suggestions will be much appreciated.
>=20
> ----------------------------------------------------
>=20
> ### output from running # df -m > /tmp/file1.txt
> ### where -m is MB
> Filesystem  1M-blocks Used Avail Capacity  Mounted on
> /dev/ad0s1a       495   55   400    12%    /
> devfs               0    0     0   100%    /dev
> /dev/ad0s1e       495   10   445     2%    /tmp
> /dev/ad0s1f      2300 2286  -170   108%    /usr
> /dev/ad0s1d      1098   58   952     6%    /var
> devfs               0    0     0   100%    /var/named/dev
>=20
>=20
> ### output from running # du -ak /usr |sort -nr | > /tmp/file2.txt
> ### where -a is 'display entry for each file in file hierarchy
> ### where -k is 'display block count in kilobyte'
> 2341378    /usr
> 636728    /usr/obj
> 636726    /usr/obj/usr
> 636724    /usr/obj/usr/src

<snip>

This is from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

4.6 Remove /usr/obj
As parts of the system are rebuilt they are placed in directories which
(by default) go under /usr/obj. The directories shadow those under
/usr/src.

You can speed up the make buildworld process, and possibly save yourself
some dependency headaches by removing this directory as well.

Some files below /usr/obj may have the immutable flag set (see
chflags(1) for more information) which must be removed first.

# cd /usr/obj
# chflags -R noschg *
# rm -rf *

---

That might get you enough room.

Regards,

Mike



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