Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Mar 1998 12:54:07 -0800
From:      Greg Shenaut <greg@bogslab.ucdavis.edu>
To:        questions@FreeBSD.ORG
Subject:   how to determine raw disk layout?
Message-ID:  <199803072054.MAA11022@myrtle1.bogs.org>

next in thread | raw e-mail | index | archive | help
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?199803072054.MAA11022>