/etc 100%
James Hartley
jjhartley at gmail.com
Thu Jul 10 06:27:16 PDT 2008
On Thu, Jul 10, 2008 at 5:53 AM, the. phule <the.phule at gmail.com> wrote:
> # df -h
> Filesystem Size Used Avail Capacity Mounted on
> /dev/wd0a 1008M 38.8M 919M 4% /
> /dev/wd0g 70.2G 1.9G 64.8G 3% /home
> /dev/wd0f 1008M 16.0K 958M 0% /tmp
> /dev/wd0e 1008M 961M -2.7M 100% /usr
> /dev/wd0d 1008M 8.5M 949M 1% /var
>
> Anyone got a clue as to what I may have done to fill up /etc with 1gb
> of stuff? how do I go about cleaning it? should it have more space?
>From your df(8) output, /etc isn't the problem; /usr is has filled
up. It also looks like you have only allocated 1GB for all partitions
& held out for 70G for /home.
Given the information presented, It is unclear if you allocated all
space on your drive. If you didn't, then you might consider
growfs(8), however, growfs can only be used to grow a partition into
*adjacent* free space. Unfortunately, I suspect you may have allocated
all space on the drive, so this will neither be a simple or a easy
solution to implement if it is possible at all.
Because of this, I would suggest studying Section 4.5.2 & 14.3 of the
FAQ. I will also suggest that you consider the following
redistribution of space:
/dev/wd0a 500MB /
/dev/wd0f 1G /tmp
/dev/wd0d 1G /var
/dev/wd0e 20G /usr
/dev/wd0g 5G /home
In this manner, if you fill up any particular partition, you can
create a new partition from the ample free space available.
Also note that all applications/packages go into /usr. So does source
& all its object files if you ever recompile the system or compile
ports. If this is what you are going to do, consider adding more
partitions such as:
/dev/wd0h 5G /usr/src
/dev/wd0i 5G /usr/obj
/dev/wd0j 5G /usr/xenocara
/dev/wd0k 30G /usr/ports
If you ever compile large ports such as Java, OpenOffice.org, KDE, or
GNOME, you will need *lots* of space in /usr/ports.
Learn to watch how the partitions fill up via df(1), & don't expect
that you will get the distribution of space correct the first time.
You may have to go through a few iterations before you see how you use
space over a longer period of time. Given that a new version of
OpenBSD is released every six months, reinstalling with every new
release may be worthwhile until you are familiar/comfortable/happy
with your chosen distribution of disk space.
More information about the Openbsd-newbies
mailing list