From owner-freebsd-current Fri Nov 19 23: 2: 8 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with ESMTP id 63DE014C81 for ; Fri, 19 Nov 1999 23:02:05 -0800 (PST) (envelope-from dmmiller@cvzoom.net) Received: from cvzoom.net (lc186.cvzoom.net [208.226.154.186]) by ns.cvzoom.net (8.9.3/8.9.3) with ESMTP id BAA23705 for ; Sat, 20 Nov 1999 01:43:05 -0500 (EST) Message-ID: <38364741.6443C59F@cvzoom.net> Date: Sat, 20 Nov 1999 02:01:21 -0500 From: Donn Miller X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: current@freebsd.org Subject: dd and gzip'd files Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I recently tried using dd to transfer a binary image to floppy. It was the Linux root disk image, color.gz. Basically, dd works ok with non-gzipped files, but with files in gzip format, it chokes: root@lc186 floppies# dd if=color.gz of=/dev/rfd0 dd: /dev/rfd0: Invalid argument 2453+1 records in 2453+0 records out 1255936 bytes transferred in 42.665771 secs (29437 bytes/sec) Notice the line that says: 2453+1 records in ^^^^^^ For some reason, it is offsetting to 1 before writing to disk. Rawrite.exe does this correctly. I tried with net.i, and it gave me no problems: root@lc186 floppies# dd if=net.i of=/dev/rfd0 2156+0 records in 2156+0 records out 1103872 bytes transferred in 39.172698 secs (28180 bytes/sec) I tried skip=0, but that didn't work. Apparently, dd has some limitations with what kinds of files you can transfer to floppies. I downloaded the files in binary format, so there's no problems there. -- - Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message