From owner-freebsd-questions Wed Jun 7 20: 8:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id C0C0C37BF11 for ; Wed, 7 Jun 2000 20:08:08 -0700 (PDT) (envelope-from dkelly@hiwaay.net) Received: from nospam.hiwaay.net (tnt6-216-180-5-144.dialup.HiWAAY.net [216.180.5.144]) by mail.hiwaay.net (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id e58386G25727; Wed, 7 Jun 2000 22:08:06 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by nospam.hiwaay.net (8.9.3/8.9.3) with ESMTP id VAA59894; Wed, 7 Jun 2000 21:24:05 -0500 (CDT) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <200006080224.VAA59894@nospam.hiwaay.net> X-Mailer: exmh version 2.1.1 10/15/1999 To: tienhuat lee Cc: questions@FreeBSD.ORG From: David Kelly Subject: Re: diskette duplication--exactly In-reply-to: Message from tienhuat lee of "Tue, 06 Jun 2000 23:04:47 PDT." <20000607060447.9953.qmail@web702.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Jun 2000 21:24:05 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG tienhuat lee writes: > Dear Sir/Madam: > > How to duplicate "exactly" a diskette, including everything -- > partition tables, bad sectors, file system, file, time stamp, ... BIT > BY BIT? Sounds like tienhuat lee desires to copy copy-protected floppies. If you want to copy a floppy exactly bit by bit then you are looking at the wrong OS for the job. Should probably be in DOS where a disc duplication program can have total access to the floppy drive controller hardware. If you wish to duplicate "normal" floppies, where normal would be defined as the same number of sectors per track and tracks per disc as a typical (normal) MS-DOS 1.44 MB floppy then FreeBSD does a great job. If the floppy is an 800k MacOS formatted, then you are out of luck. I've tried it with oddball floppies out of and HP test instrument with 128 byte sectors and failed, too. But later found a utility from HP that worked under DOS on same PC hardware. Others have suggested reading the floppy with dd, and writing it again with dd. In between you need to format the floppy. And maybe you have only one floppy drive of that type. Use dd to read the original floppy as Alan Clegg suggests: dd if=/dev/fd0 of=/home/me/floppy.img bs=18k But rather than use dd to write, use fdwrite(1): fdwrite -f /home/me/floppy.img -d /dev/fd0 The big advantage is fdwrite will format the floppy on the fly. Heads will make half as many passes over the media when compared to an fdformat(1) followed by dd. The above works just as well for Macintosh 1.44 MB floppies. Needs some adjusting to the floppy device if the media is 720k. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message