From owner-freebsd-questions Mon Aug 24 08:08:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA07477 for freebsd-questions-outgoing; Mon, 24 Aug 1998 08:08:21 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from garnet.dgms.com (garnet.dgms.com [206.67.30.153]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA07461 for ; Mon, 24 Aug 1998 08:08:05 -0700 (PDT) (envelope-from gaa@dgms.com) Received: from dgms.com (localhost [127.0.0.1]) by garnet.dgms.com (8.8.8/8.8.8) with ESMTP id LAA12889 for ; Mon, 24 Aug 1998 11:05:45 -0400 (EDT) (envelope-from gaa@dgms.com) Message-ID: <35E18149.2F6271ED@dgms.com> Date: Mon, 24 Aug 1998 11:05:45 -0400 From: Gary Algier X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.6-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Moving the FreeBSD partition Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have finally eliminated the need to keep NT on this machine and I would like to repartition the disk to give the rest of the space to FreeBSD. This leads to a few questions: 1) If I use Partition Magic to move the FreeBSD partition and its contents, will FreeBSD boot ok. Or does it keep track of the partition info in a special FreeBSD specific place. For example: % df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0s3a 127151 31285 85694 27% / /dev/wd0s3f 3621655 2410600 921323 72% /usr /dev/wd0s3e 127151 14571 102408 12% /var Will FreeBSD know that wd0s3a starts at the beginning of partition 3 or will it "know" that wd0s3a starts at cyl 254/sector 1/head 0? 2) If FreeBSD uses its own "records" about the location of everything, what can I do to "fix" it after I move the data? 3) Assuming all else goes ok, is there a "growfs" tool to enlarge /usr? Or must I dump/newfs/restore? I am running 2.2.6, by the way. I will upgrade to 2.2.7 if that buys me anything. I will also do a level 0 dump of everything, just in case. A couple other bits of info: % disklabel wd0 # /dev/rwd0c: type: ESDI disk: wd0s3 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 530 sectors/unit: 8514450 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: 262144 0 4.2BSD 0 0 0 # (Cyl. 0 - 16*) b: 524288 262144 swap # (Cyl. 16*- 48*) c: 8514450 0 unused 0 0 # (Cyl. 0 - 529) e: 262144 786432 4.2BSD 0 0 0 # (Cyl. 48*- 65*) f: 7465874 1048576 4.2BSD 0 0 0 # (Cyl. 65*- 529*) % fdisk ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=784 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=784 heads=255 sectors/track=63 (16065 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,(OS/2 HPFS, QNX or Advanced UNIX) start 63, size 3068352 (1498 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 190/ sector 63/ head 254 The data for partition 2 is: sysid 6,(Primary 'big' DOS (> 32MB)) start 3068415, size 1012095 (494 Meg), flag 0 beg: cyl 191/ sector 1/ head 0; end: cyl 253/ sector 63/ head 254 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 4080510, size 8514450 (4157 Meg), flag 80 beg: cyl 254/ sector 1/ head 0; end: cyl 783/ sector 63/ head 254 The data for partition 4 is: -- Gary Algier, WB2FWZ gary.algier@dgms.com +1 609 608 2758 DGM&S Telecom, 1025 Briggs Rd, Mt. Laurel, NJ 08054 Fax:+1 609 866 8850 Paul Petzoldt on the renaming of Mount Washington: "I Call it the New England Booby Trap. We see Ph.D.'s from private schools taking kids up there in shorts. People die like flies up there!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message