Direct disk access, was: Re: (no subject)
Chuck Swiger
cswiger at mac.com
Sun Feb 12 05:51:57 PST 2006
gs_stoller at 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
More information about the freebsd-questions
mailing list