I stopped installing floppy drives on most of my machines before the 90s were over. Didn't need them. That said, I recognize the desire to add capability to programs or OSs, especially to complete a feature. It really bothers me when it can't be done, to the point where I now try to avoid starting down these rabbit holes. It's difficult when you're writing an OS though, because providing a lot of features is kind-of the point and it feels weird if they're not complete. I try to ignore the weird feeling and be happy with designing/coding the parts I'd make more use of.
If you really could make use of all those floppy formats, I'm sure you could design autodetection with some help from looking at how Linux does it. It would take time, but could be quite the engrosing projects in itself. You might even end up able to autodetect more formats than Linux. Don't pay too much attention to why it doesn't try to read side B etc., just try things, read specifications and think.
get floppy disk CHS geometry
Re: get floppy disk CHS geometry
Kaph — a modular OS intended to be easy and fun to administer and code for.
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
Re: get floppy disk CHS geometry
I have a computer with a 1.44 MB floppy drive, so I test the floppy driver once in a while.
I wish I had a functional 386SX board too so I could test this setup, but I don't.
-
- Member
- Posts: 5571
- Joined: Mon Mar 25, 2013 7:01 pm
Re: get floppy disk CHS geometry
I'm pretty sure Linux only checks data rate and sector size. Detecting other parameters would require reading more than the first sector of the disk, and you can't detect gap sizes at all (they only affect writing).
Re: get floppy disk CHS geometry
From radio astronomy to image processing to disk data forensics, I have many times been surprised by what can be detected with the right algorithm. Some such surprises have come from single-author DOS programs which required no special hardware. Most or all of this comes down to Fourier transforms. Now I think about it, if you read raw data at the highest possible density and apply a Fourier transform, you can probably detect just-about anything.Octocontrabass wrote: ↑Sun Nov 24, 2024 3:32 pmI'm pretty sure Linux only checks data rate and sector size. Detecting other parameters would require reading more than the first sector of the disk, and you can't detect gap sizes at all (they only affect writing).
Kaph — a modular OS intended to be easy and fun to administer and code for.
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
-
- Member
- Posts: 5571
- Joined: Mon Mar 25, 2013 7:01 pm
Re: get floppy disk CHS geometry
[/quote]Actually, you can use the FDSETPRM ioctl to set any geometry you should want, so long as it can be formulated in that structure (struct floppy_struct). As I said, if you actually have a non-standard format, and you know it, you can set it. So long as the PC floppy drive can read it, you can do so in Linux as well.
[/quote]
Yes, you are right.
I will be satisfied with the few fundamental formats.
[/quote]
Yes, you are right.
I will be satisfied with the few fundamental formats.