[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to copy the binary image of a dos floppy ?



On Fri, May 04, 2001 at 10:17:13PM -0700, Karsten M. Self wrote:
> on Fri, May 04, 2001 at 04:30:50PM -0400, Jonathan D. Proulx (jon@ai.mit.edu) wrote:
> > On Fri, May 04, 2001 at 02:48:35PM -0500, B Thomas wrote:
> > :Hi,
> > :I have dos and debian installed on my system . I would like to backup the ddevice drivers that came on dos floppies with my system. I know I need to use the dd command to make a binary image of the floppy. But I do not know the exact parameter to pass . Could you please show me a sample command line .
> > :sincerely
> > :b.thomas
> > 
> > 
> > root@localhost$ dd if=/dev/fd0 of=floppy.img bs=72k
> 
> I'm not sure where you're getting your bs= value.
> 
> I tend to use:
> 
>     $ dd if=/dev/fd0 of=floppy.img bs=1024 count=1440
> 
> ...though you may not want to set a count if you aren't sure of the size
> of the image.  Though most 3.5" floppies are 1.4MB, other sizes are
> possible.

I was always taught to use a block size of 512 when {read,writ}ing to
floppies, and double the kByte size of the floppy to obtain the count
e.g.

  dd if=/dev/fd0 of=floppy.img bs=512 count=2880

I'll poke around to see if I can discover _why_ I've been doing it
this way for the last 5 years ... I believe the physical block size of
a floppy is 512 however.

Cheers,

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Ltd.                 | than a perfect plan tomorrow.
mailto:nnorman@micromuse.com   |   -- Patton

Attachment: pgplY5CIR7Cdu.pgp
Description: PGP signature


Reply to: