From owner-freebsd-questions Thu Jul 25 16:35:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D12E937B400 for ; Thu, 25 Jul 2002 16:35:23 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4243343E70 for ; Thu, 25 Jul 2002 16:35:23 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g6PNZJi16204; Thu, 25 Jul 2002 19:35:19 -0400 (EDT) From: Jerry McAllister Message-Id: <200207252335.g6PNZJi16204@clunix.cl.msu.edu> Subject: Re: restoring disklabel from an active disk? To: paulbeard@mac.com (paul beard) Date: Thu, 25 Jul 2002 19:35:18 -0400 (EDT) Cc: questions@FreeBSD.ORG In-Reply-To: <3D4082EE.7080104@mac.com> from "paul beard" at Jul 25, 2002 03:59:58 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Assuming I work out the partition sizes with the output of df -k, > is there a way to determine the starting point for the slice that > contains all my BSD partitions? Now you are really talking fdisk stuff, not disklabel. That's a different thing entirely and it really is relative to the whole disk. Since I generally have either the whole disk given to FreeBSd or split between MS and FreeBSD where disklabel doesn't pay attention the MS slice, I could be a little out of your specific situation. But, try looking at the disk with fdisk with no extra flags - just the main disk name like da0 without slice info. like 'fdisk da0' and it will print out what it thinks the slices are. FreeBSD slices will have a sysid of 165. How it starts and ends will depend a little on the disk itself unless it is a SCSI disk (then you are lucky). ////jerry > > As long as I don't reboot, things seem to be hunky-dory, but > that's not the most practical way to continue. > > > -- > Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / > paulbeard [at] mac [ dot] com / 206 529 8400 > > http://paulbeard.no-ip.org/movabletype > > Satellite Safety Tip #14: > If you see a bright streak in the sky coming at you, duck. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message