Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pulkomandy opened this issue May 25, 2014 · 1 comment
Closed

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

pulkomandy opened this issue May 25, 2014 · 1 comment

Comments

@pulkomandy
Copy link
Member

From pulkoma...@gmail.com on September 20, 2008 09:51:20

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: http://code.google.com/p/cpcsdk/issues/detail?id=5

@pulkomandy
Copy link
Member Author

From pulkoma...@gmail.com on August 29, 2011 14:03:59

I think it's ok now (will accept /dev/sd*)

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant