Re: Nonstandard low-level formats and USB floppy drives (is linux capable?)
From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 02/10/05
- Next message: Justin: "X display information question.."
- Previous message: prg: "Re: SpamAssassin (3.0.2) unbreakable?"
- In reply to: Luser: "Nonstandard low-level formats and USB floppy drives (is linux capable?)"
- Next in thread: Luser: "Re: Nonstandard low-level formats and USB floppy drives (is linux capable?)"
- Reply: Luser: "Re: Nonstandard low-level formats and USB floppy drives (is linux capable?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Feb 2005 03:45:34 GMT
On 9 Feb 2005 16:39:39 -0800, Luser staggered into the Black Sun and
said:
> I broke down and bought a USB floppy drive. Why do I need floppies,
> don't ask, but I do need them. In particular, I need HD 3.5 inch
> floppies, with nonstandard, i.e. higher capacity, low-level formats
> such as 1.722MB.
>
> However, with a USB floppy, apparently I only have one device,
> /dev/sda, through which I can access the floppy. Can Linux low-level
> format and mount nonstandard formats, such as 1722KB on USB floppies?
Good question. The standard utility, fdformat, uses ioctl()s that are
specific to "normal" floppy disk devices. Those ioctl()s fail if used
on SCSI devices. Therefore, I don't know if you can even lowlevel
format a floppy disk of any kind with a USB floppy drive. The
usb-storage module has a number of comments in it about a Uniform Floppy
Interface protocol that all USB floppy drives are supposed to use, but I
didn't see anything in there about it supporting the raw device commands
necessary to move the head to track N and lowlevel-format that track.
You should test the drive with a 1722K floppy made on a machine with a
non-USB floppy drive. If the USB drive can't read and write that
lowlevel format properly, you'll be kind of screwed no matter what.
There may be a way around this though. If you can lowlevel-format a
floppy using this drive on a Windows machine, you can use a program like
USBSnoopy ( http://www.wingmanteam.com/usbsnoopy/ ) under Windows to
figure out exactly what USB commands are sent to the drive to get it to
lowlevel-format a floppy. Then, you can take those commands, use libusb
to send them to the drive, and see if they work under Linux. Modify the
commands so they format 82 tracks at 21 sectors/track instead of 80
tracks at 18 sectors/track, and foom, you've got the ability to lowlevel
format a 1722K floppy. Adjust numbers to taste. Publish your results.
Make a kernel patch for the usb-storage module so that it can deal with
sending the commands required.
This seems like it'd be an interesting thing to fiddle with. My laptop
has a normal floppy drive and a 'Doze2K partition, so if I can find a
USB floppy drive, I'll have all the tools necessary to try all the crap
I wrote in the above paragraph. Let me know what you come up with; I'll
try to find a drive tomorrow....
-- Matt G|There is no Darkness in Eternity/But only Light too dim for us to see Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong http://www.brainbench.com / Hire me! -----------------------------/ http://crow202.dyndns.org/~mhgraham/resume
- Next message: Justin: "X display information question.."
- Previous message: prg: "Re: SpamAssassin (3.0.2) unbreakable?"
- In reply to: Luser: "Nonstandard low-level formats and USB floppy drives (is linux capable?)"
- Next in thread: Luser: "Re: Nonstandard low-level formats and USB floppy drives (is linux capable?)"
- Reply: Luser: "Re: Nonstandard low-level formats and USB floppy drives (is linux capable?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|