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

Re: [Debian]:floppy-Problem



borek@physik.uni-halle.de (Reinhard Borek) writes:

> [1  <text/plain; us-ascii (quoted-printable)>]
> at Thu, 09 Sep 1999 Florian Siegesmund wrote:
> > Reinhard Borek <borek@physik.uni-halle.de> wrote:
> > 
> > Davon abgesehen hätte es für eine Diskettenkopie doch auch
> >    dd if=/dev/fd0 of=/tmp/wasauchimmer
> >    dd if=/tmp/wasauchimmer of=/dev/fd0
> > getan, oder?
> Das sieht aber maechtig kompliziert und unkomfortabel aus.
>
Dann nimm stattdessen das hier:

------------ snip --------------------
#!/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$$
------------ snip --------------------
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     722


Reply to: