Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2010 11:57:52 -0700
From:      Chip Camden <sterling@camdensoftware.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Space on root partition
Message-ID:  <20100507185752.GA24228@libertas.local.camdensoftware.com>

next in thread | raw e-mail | index | archive | help
When partitioning the drive, I took the defaults -- which seems to create
a root partition that's too small.  I'm at 59% usage, and every time I
install a new kernel I have to rm /boot/kernel.old to get it to go.

Two questions:

1. Is there an easy way to resize partitions?
2. Is there anything in root I could safely symlink off to another partition?

Here's a df:

Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/ad4s1a    507630   273388    193632    59%    /
devfs               1        1         0   100%    /dev
/dev/ad4s1e    507630       18    467002     0%    /tmp
/dev/ad4s1f 463086528 21941374 404098232     5%    /usr
/dev/ad4s1d   4848462   201194   4259392     5%    /var

and here's du -x /:

2	/.snap
1	/dev
2	/tmp
2	/usr
2	/var
56	/etc/defaults
6	/etc/X11
8	/etc/bluetooth
8	/etc/devd
4	/etc/gnats
6	/etc/gss
252	/etc/mail
74	/etc/mtree
38	/etc/pam.d
56	/etc/periodic/daily
6	/etc/periodic/monthly
40	/etc/periodic/security
14	/etc/periodic/weekly
118	/etc/periodic
4	/etc/ppp
396	/etc/rc.d
36	/etc/security
2	/etc/skel
144	/etc/ssh
12	/etc/ssl
2	/etc/zfs
1742	/etc
2	/cdrom
2	/dist
1180	/bin
24	/boot/defaults
2	/boot/firmware
249960	/boot/kernel
310	/boot/modules
2	/boot/zfs
251788	/boot
354	/lib/geom
7628	/lib
1010	/libexec
2	/media
8	/mnt
2	/proc
4464	/rescue
2	/root/.gem/ruby/1.8/cache
2	/root/.gem/ruby/1.8/doc
2	/root/.gem/ruby/1.8/gems
2	/root/.gem/ruby/1.8/specifications
10	/root/.gem/ruby/1.8
12	/root/.gem/ruby
14	/root/.gem
4	/root/.config
10	/root/bin
74	/root
5452	/sbin
273379	/

Any help much appreciated.

-- 
Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.com



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