Date: Fri, 30 Aug 2002 10:26:39 -0700 From: "Max Clark" <max@clarksys.com> To: <freebsd-stable@freebsd.org> Subject: Help with growfs on ufs partitions Message-ID: <016501c2504a$664009b0$6445a8c0@princess>
next in thread | raw e-mail | index | archive | help
I would like to grow the size of my /usr partition. I currently have a
rather large /var partition that I want to replace with a much smaller
one.
Basically I want to nuke the /var partition, create a 2GB partition in
its place and re-allocate 2.5GB to /usr.
I have never used growfs before, I have read Marc Fonvieille's article
on daemonnews but it reallocates unused space from disk slices.
Below is all of the pertinent information from my system, could someone
help me with the steps that I need to perform to get this to work?
Thanks in advance!
Max
jill# uname -a
FreeBSD jill.clarksys.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Mar 13
14:23:17 PST 2002 root@jill.clarksys.com:/usr/src/sys/compile/jill
i386
jill# fdisk -s /dev/mlxd0
/dev/mlxd0: 4339 cyl 128 hd 32 sec
Part Start Size Type Flags
1: 32 17772512 0xa5 0x80
jill# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/mlxd0s1a 1008M 80M 848M 9% /
/dev/mlxd0s1f 1.9G 1.2G 629M 66% /usr
/dev/mlxd0s1e 4.9G 14M 4.5G 0% /var
procfs 4.0K 4.0K 0B 100% /proc
jill# fdisk /dev/mlxd0
******* Working on device /dev/mlxd0 *******
parameters extracted from in-core disklabel are:
cylinders=4339 heads=128 sectors/track=32 (4096 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=4339 heads=128 sectors/track=32 (4096 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 165,(FreeBSD/NetBSD/386BSD)
start 32, size 17772512 (8677 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 127/ sector 32
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
jill# disklabel -r /dev/mlxd0s1a
# /dev/mlxd0s1a:
type: ESDI
disk: mlxd0s1
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 128
sectors/cylinder: 4096
cylinders: 4338
sectors/unit: 17772512
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 2097152 0 4.2BSD 2048 16384 89 # (Cyl. 0 -
511)
b: 1048576 2097152 swap # (Cyl. 512 -
767)
c: 17772512 0 unused 0 0 # (Cyl. 0 -
4338*)
e: 10485760 3145728 4.2BSD 2048 16384 89 # (Cyl. 768 -
3327)
f: 4141024 13631488 4.2BSD 2048 16384 90 # (Cyl. 3328 -
4338*)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016501c2504a$664009b0$6445a8c0>
