Diskcopy in Linux?

Diskcopy in Linux?

Post by Chew, Hee Chia » Tue, 21 May 1996 04:00:00



Hi Everyone,

Just a quick question:

How do I duplicate a floppy track by track.  I tried cp the contents of the original
floppy to the hard drive and then cp to the formated destination floppy, but it would
not copy the entire data from the original floppy as the data were larger than the
destination floppy could handle.

Any suggestions?

Thanks,

Chew.

 
 
 

Diskcopy in Linux?

Post by Wim Vandeput » Wed, 22 May 1996 04:00:00



: How do I duplicate a floppy track by track.  I tried cp the contents of the original
: floppy to the hard drive and then cp to the formated destination floppy, but it would
: not copy the entire data from the original floppy as the data were larger than the
: destination floppy could handle.

man dd

 
 
 

Diskcopy in Linux?

Post by Norman James Lew » Wed, 22 May 1996 04:00:00



: Hi Everyone,
:
: Just a quick question:
:
: How do I duplicate a floppy track by track.  I tried cp the contents of the original

Ok, so I'm bored :)

dd if=/dev/fd0 bs=1k count=1440 of=/tmp/disk

then

dd if=/tmp/disk bs=1k count=1440 of=/dev/fd0

 
 
 

Diskcopy in Linux?

Post by Rob Janss » Wed, 22 May 1996 04:00:00



Quote:>Hi Everyone,
>Just a quick question:
>How do I duplicate a floppy track by track.  I tried cp the contents of the original
>floppy to the hard drive and then cp to the formated destination floppy, but it would
>not copy the entire data from the original floppy as the data were larger than the
>destination floppy could handle.

cp /dev/fd0 /tmp/file
cp /tmp/file /dev/fd0

When it doesn't fit, you formatted it differently from the original.

Rob
--
+------------------------------------+--------------------------------------+


+------------------------------------+--------------------------------------+

 
 
 

Diskcopy in Linux?

Post by Lee Sau Dan ~ » Thu, 23 May 1996 04:00:00


    Norman> dd if=/dev/fd0 bs=1k count=1440 of=/tmp/disk
    Norman> then
    Norman> dd if=/tmp/disk bs=1k count=1440 of=/dev/fd0

If you have two 3.5" floppy drives, you may also try:

        dd if=/dev/fd0 bs=1k count=1440 of=/dev/fd1

This  will  copy the  contents from  the  diskette in  /dev/fd0 to the
diskette in /dev/fd1.

You may also try to use "bs=18k count=80" to see if it is faster.

--
Lee Sau Dan

-------------------------------------------------------------------------------
URL: http://www.cs.hku.hk/~sdlee

 
 
 

Diskcopy in Linux?

Post by David E. F » Thu, 23 May 1996 04:00:00



>Ok, so I'm bored :)

>dd if=/dev/fd0 bs=1k count=1440 of=/tmp/disk

Ordinarily, the bs= stuff is unnecessary. However, if you plan on
using it, don't use such a low figure, or the copy will take place
abysmally slowly.

--
------------------------------------------------------------------------
David E. Fox                 Tax              Thanks for lettimg me


-----------------------------------------------------------------------

 
 
 

Diskcopy in Linux?

Post by Elmar Bauma » Thu, 23 May 1996 04:00:00



schrieb am Mon, 20 May 1996 21:59:14 -0400,

: How do I duplicate a floppy track by track.  I tried cp the contents of the original
: floppy to the hard drive and then cp to the formated destination floppy, but it would
: not copy the entire data from the original floppy as the data were larger than the
: destination floppy could handle.
:
: Any suggestions?

Hi,

You can use the command "dd":

   dd if=/dev/fd0 of=filename_on_harddisk

Then change disk and type:

   dd if=filename_on_harddisk of=/dev/fd0

If You often copy disks, then You can write a shell-script, which uses these
commands, e.g.:

-----[ begin of file diskcopy ]-----
#!/bin/sh

# diskcopy

echo "diskcopy - physical copy of floppy disks"

echo -n "Insert source disk and hit ENTER "
read eingabe

dd if=/dev/fd0 of=/tmp/diskcopy_tmp$$

aktiv=1

while [ $aktiv -eq 1 ]; do

   echo -n "Insert destination disk and hit ENTER "
   read eingabe

   dd if=/tmp/diskcopy_tmp$$ of=/dev/fd0

   echo -n "Ready. Another duplicate? [y/n] "
   read eingabe

   if [ $eingabe != "y" ]; then
      aktiv=0
   fi

done

rm /tmp/diskcopy_tmp$$

-----[ end of file diskcopy ]-----

Elmar

--

 
 
 

Diskcopy in Linux?

Post by Stephen Knila » Fri, 24 May 1996 04:00:00



Quote:>Hi Everyone,

>Just a quick question:

>How do I duplicate a floppy track by track.  I tried cp the contents of the original
>floppy to the hard drive and then cp to the formated destination floppy, but it would
>not copy the entire data from the original floppy as the data were larger than the
>destination floppy could handle.

man dd

Steve

 
 
 

Diskcopy in Linux?

Post by Ken Y » Wed, 29 May 1996 04:00:00




|>         dd if=/dev/fd0 bs=1k count=1440 of=/dev/fd1
|> You may also try to use "bs=18k count=80" to see if it is faster.
|
|Command being timed: "dd if=/dev/fd0 bs=1k count=1440 of=/dev/fd1"
|Elapsed (wall clock) time (h:mm:ss or m:ss): 1:51.66
|
|Command being timed: "dd if=/dev/fd0 bs=18k count=80 of=/dev/fd1"
|Elapsed (wall clock) time (h:mm:ss or m:ss): 1:29.86
|
|Command being timed: "dd if=/dev/fd0 bs=1440k count=1 of=/dev/fd1"
|Elapsed (wall clock) time (h:mm:ss or m:ss): 1:23.88
|
|Don't know why, but it doesn't get much faster... :)
|
|Andi
|--
|Hard work may not kill you, but why take chances?

18k is the size of one track. When you allocate one large 1440k memory
buffer the saving is not havng to write out the data to HD one track at
a time. But the copy time is dominated by the floppy read and seek time
so keeping the whole data in memory until the end doesn't save much
time. In the 1k case it would waste a lot of time seeking and waiting
for the right sector to come around.