/usr too small
Andrew Konstantinov
abkonstantinov at earthlink.net
Wed Jan 12 00:42:17 PST 2005
On Wed, Jan 12, 2005 at 09:22:19AM +0100, Marc Plumet wrote:
> Dear all,
>
> my system :
> kern.osreldate: 503001
> FreeBSD 5.3-RELEASE #0: Tue Nov 9 13:34:27 CET 2004
>
> I am running Freebsd on a laptop (Compaq Evo N800c).
> I have a winnt partition (8GB)
> I have a ufs partition (11GB)
>
> I have ******* Working on device /dev/ad0 *******
> parameters extracted from in-core disklabel are:
> cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl)
>
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=38760 heads=16 sectors/track=63 (1008 blks/cyl)
>
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
> start 63, size 16374897 (7995 Meg), flag 0
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 1023/ head 15/ sector 63
> The data for partition 2 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 16374960, size 22695120 (11081 Meg), flag 80 (active)
> beg: cyl 1023/ head 255/ sector 63;
> end: cyl 1023/ head 15/ sector 63
>
> my problem is that /usr is getting full.
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> /dev/ad0s2a 507630 362568 104452 78% /
> devfs 1 1 0 100% /dev
> /dev/ad0s2f 3966294 2783584 865408 76% /home
> /dev/ad0s2e 4737646 4222964 135672 97% /usr
> /dev/ad0s2d 1012974 55104 876834 6% /var
>
> I could scratch the winnt partition because I can do most of my work now with
> FreeBSD, I still need java/openoffice though, but therfore I need some free
> space first.
>
> Is there a way to use the free space from the "scratched-winnt" partition to
> increase the /usr size ?
Perhaps someone can give you a better advice but the easiest thing to do is to:
1) remove winnt partition
2) create freebsd partition
3) find a directory that takes up most space in /usr
4) put the content of that directory onto the new partition
5) remove the old directory and mount the new partition there
OR
You could try something fancy like using growfs for growing the filesystem or
unionfs for creating multiple filesystem layers.
Hope this helps,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050112/e2405776/attachment.bin
More information about the freebsd-stable
mailing list