Search code examples
windowsmacosbackupfloppy

What software do I use to put floppies as images on a hard disk?


I still have a large number of floppies. On some of them there probably is source code I don't want to lose. I also don't want to take look at each one individually, as that's going to take a lot of time. What software would be best for copying all data to a hard disk, preferably while creating an index at the same time?

I would also be interested in imaging mac floppies, but it doesn't have to be on the same machine.

[responses]
The goal is to finally get rid of all those boxes with floppies. I was asking about images as xcopy doesn't copy all (hidden?) sectors, does it? Is xxcopy better?

I don't want to type a name for each floppy.

Disk Utility on the mac probably needs a bit too much keyboard or mouse action, but might be appescriptable


Solution

  • Here is a script I used on my Linux box to perform the same type of task. Basically I just a raw image of each disk to a folder. I had another script I ran later that mounted each and dumped a directory listing into a file.

    #!/bin/bash
    
    floppydev='/dev/sdb'
    savepath='/srv/floppy_imgs'
    while true
    do
      echo "Press a key to create an image of the next floppy"
      read -n 1
    
      dd if=$floppydev of=/dev/null count=1 2> /dev/null
      errlvl=$?
      #if the disk isn't in the drive then wait
      while [ $errlvl -ne 0 ]
      do
        sleep 1
        dd if=$floppydev of=/dev/null count=1 2> /dev/null
        errlvl=$?
      done
    
      filename=$(date +'img-%Y%m%d-%H%M%S.flp')
    
      if [ ! -f $savepath/$filename ]
      then
        echo "creating image as $filename"
        dd if=$floppydev of=$savepath/$filename
        errlvl=$?
    
        if [ $errlvl -ne 0 ]
        then
          echo 'the image copy failed!'
          rm -i $savepath/$filename
        else
          mlabel -s -i $savepath/$filename ::
          md5sum $savepath/$filename > $savepath/$filename.md5
          echo "copy complete"
          echo " "
        fi
      fi
    
    done