pedgarcia / cpcsdk

Automatically exported from code.google.com/p/cpcsdk
0 stars 0 forks source link

Find a way to detect the usb drives under linux #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
cpcfs detects the type of the file you are trying to open with the 
following guess:

-a:, b:, /dev/fd0, /dev/fd1 : real floppy
-/dev/sdb : raw image/usb floppy
-other name : DSK file.

There are two problems with this approach :
-One could have an usb floppydrive plugged as /dev/sda or /dev/sdc
-It is not possible to open raw dumps of floppies to get files out of them.

Add a proper method for getting the filetype, for example, first try to 
open as dsk, then test if it is real floppy, and fallback to raw if no 
other method worked.
It would be nice if we avoided reading on real disks as much as possible 
however, in order to speed things up a little.

Original issue reported on code.google.com by pulkoma...@gmail.com on 20 Sep 2008 at 7:51

GoogleCodeExporter commented 9 years ago
I think it's ok now (will accept /dev/sd*)

Original comment by pulkoma...@gmail.com on 29 Aug 2011 at 9:03