Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Mar 1998 13:50:45 -0800
From:      Greg Shenaut <greg@bogslab.ucdavis.edu>
To:        questions@FreeBSD.ORG
Subject:   Re: how to determine raw disk layout? 
Message-ID:  <199803072151.NAA11174@myrtle1.bogs.org>
In-Reply-To: Your message of "Sat, 07 Mar 1998 12:54:07 PST."

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803072151.NAA11174>