From owner-freebsd-stable Fri Aug 30 10:26:50 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 802F737B400 for ; Fri, 30 Aug 2002 10:26:43 -0700 (PDT) Received: from jack.clarksys.com (jack.clarksys.com [64.70.36.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 134FE43E6E for ; Fri, 30 Aug 2002 10:26:43 -0700 (PDT) (envelope-from max@clarksys.com) Received: (qmail 71694 invoked from network); 30 Aug 2002 17:26:26 -0000 Received: from unknown (HELO princess) (4.47.62.87) by jack.clarksys.com with SMTP; 30 Aug 2002 17:26:26 -0000 From: "Max Clark" To: Subject: Help with growfs on ufs partitions Date: Fri, 30 Aug 2002 10:26:39 -0700 Message-ID: <016501c2504a$664009b0$6445a8c0@princess> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: The data for partition 3 is: The data for partition 4 is: 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