Date: Sun, 12 Feb 2006 08:52:01 -0500 From: Chuck Swiger <cswiger@mac.com> To: "gs_stoller@juno.com" <gs_stoller@juno.com> Cc: freebsd-questions@freebsd.org Subject: Direct disk access, was: Re: (no subject) Message-ID: <43EF3D81.5000202@mac.com> In-Reply-To: <20060211.190237.29586.250540@webmail65.nyc.untd.com> References: <20060211.190237.29586.250540@webmail65.nyc.untd.com>
next in thread | previous in thread | raw e-mail | index | archive | help
gs_stoller@juno.com wrote: > I would like to have the source code of (the set of) programs > that can "read from"/"write to" any sector of a disk without a > file-system, think of them as the disk i/o programs that underly the > file-system. I expect them to have (collectively) about four arguments, > one specifying the disk to access, the second pointing to a buffer > (supplying the data to write or to accept the data read), the third > stating the number of bytes to transfer, and the fourth giving the LBA > address of the sector to be accessed. Sounds a bit like homework to me, but what you want is here: /usr/src/bin/dd See "man dd". -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43EF3D81.5000202>