From owner-freebsd-questions@FreeBSD.ORG Thu Mar 11 05:02:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A4D916A4CE for ; Thu, 11 Mar 2004 05:02:48 -0800 (PST) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id C6B4C43D1D for ; Thu, 11 Mar 2004 05:02:46 -0800 (PST) (envelope-from doublef@tele-kom.ru) Received: (qmail 55813 invoked by uid 555); 11 Mar 2004 16:02:45 +0300 Received: from hal.localdomain (213.80.149.165) by t-k.ru with TeleMail/2 id 1079010164-55171 for jerrymc@clunix.cl.msu.edu; Thu, 11 Mar 16:02:44 2004 +0300 (MSK) Date: Thu, 11 Mar 2004 15:59:00 +0300 From: Sergey 'DoubleF' Zaharchenko To: Jerry McAllister Message-Id: <20040311155900.6c5ea1eb@Hal.localdomain> In-Reply-To: <200403101614.i2AGE3b08293@clunix.cl.msu.edu> References: <20040310081200.51b84ef1@Hal.localdomain> <200403101614.i2AGE3b08293@clunix.cl.msu.edu> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Thu__11_Mar_2004_15_59_00_+0300_qqdjtbb0KpBmIL1." cc: Jason Dictos cc: "'freebsd-questions@freebsd.org'" Subject: Re: Using int 13 while BSD is running X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 13:02:48 -0000 --Signature=_Thu__11_Mar_2004_15_59_00_+0300_qqdjtbb0KpBmIL1. Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Wed, 10 Mar 2004 11:14:03 -0500 (EST) Jerry McAllister probably wrote: > Gee whiz, just let dd(1) do it for you. It can seek to any position > and read any number of bytes of a disk. That's what I meant by `shellscript':). > If it gets ornery, set the > block size to 1 byte - a little slow and inefficient, but then it won't > have trouble with other block arrangements. The minimum blocksize is 512 bytes (at least on ATA drives; 2048 on data CDROMS). You get an `invalid argument' error if you try using a size which is not a multiple of 512. But after dd'ing, you can use head(1)/tail(1) to get only the necessary info, right to the single byte. -- DoubleF My mother loved children -- she would have given anything if I had been one. -- Groucho Marx --Signature=_Thu__11_Mar_2004_15_59_00_+0300_qqdjtbb0KpBmIL1. Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAUGKgwo7hT/9lVdwRAq8NAJ40S262UhMffg25Cts4KtiKbHoVogCfQWZe 3RXurY5HOUvHbcsSKJtZvsM= =cya7 -----END PGP SIGNATURE----- --Signature=_Thu__11_Mar_2004_15_59_00_+0300_qqdjtbb0KpBmIL1.--