From owner-freebsd-questions Sat Mar 7 13:53:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA19567 for freebsd-questions-outgoing; Sat, 7 Mar 1998 13:53:12 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from bogslab.ucdavis.edu (root@bogslab.ucdavis.edu [128.120.162.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA19551 for ; Sat, 7 Mar 1998 13:53:02 -0800 (PST) (envelope-from greg@bogslab.ucdavis.edu) Received: from myrtle1.bogs.org (root@myrtle1.bogs.org [198.137.203.39]) by bogslab.ucdavis.edu (8.7.4/8.7.3) with ESMTP id NAA20358 for ; Sat, 7 Mar 1998 13:52:55 -0800 (PST) Received: from myrtle1.bogs.org (greg@localhost [127.0.0.1]) by myrtle1.bogs.org (8.6.12/8.6.12) with ESMTP id NAA11174 for ; Sat, 7 Mar 1998 13:51:11 -0800 Message-Id: <199803072151.NAA11174@myrtle1.bogs.org> To: questions@FreeBSD.ORG Subject: Re: how to determine raw disk layout? In-reply-to: Your message of "Sat, 07 Mar 1998 12:54:07 PST." Reply-To: gkshenaut@ucdavis.edu Date: Sat, 07 Mar 1998 13:50:45 -0800 From: Greg Shenaut Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As you were--I found it: my old friend disklabel(8) spits out the needed info quite nicely. -Greg Greg Shenaut cleopede: >I am writing a script which needs to figure out the physical >locations of each of the /dev device names located on each disk. >That is, for each of the names, list the absolute offset in blocks, >the size in blocks, and perhaps the partition type code and some >other info. The script is going to use this information to copy >selected regions for the purposes of baking them up or cloning >them, so it needs to be accurate and noninteractive. If it can >be done using C library routines, this would also be OK. > >How can I get this information? > >-Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message