OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:08 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: 1.44MB exFAT/FAT64 floppy disk?
PostPosted: Sat May 21, 2016 1:23 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 06, 2007 11:17 am
Posts: 1225
Why not an exFAT floppy?

It's supposed to be different from FAT12/FAT16/FAT32 be it CHS or LBA.

It's also supposed to be possible to call it FAT64 (it's supposed to be 64-bit).

It can actually store files bigger than 2 Gigabytes, and there are disks like 1-Terabyte SD cards with exFAT format (although be careful with fake 1TB Micro/SD cards).

_________________
Live PC 1: Image Live PC 2: Image

YouTube:
http://youtube.com/@AltComp126/streams
http://youtube.com/@proyectos/streams

http://master.dl.sourceforge.net/projec ... 7z?viasf=1


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Sat May 21, 2016 2:40 pm 
Offline
Member
Member

Joined: Fri Jan 30, 2015 4:57 pm
Posts: 215
Location: Germany
NTFS for floppies? Sure....


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Sat May 21, 2016 2:58 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 558
To hell with it, just put UDF on everything!


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Sat May 21, 2016 5:08 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 06, 2007 11:17 am
Posts: 1225
A floppy image could be a good sample if it could have any filesystem installed and recognized on it as a floppy.

Then it would make things more understandable when dealing with filesystems in their intended devices, but it would serve like an excellent and easy-to-understand tutorial for filesystems.

So as we see, floppy disks are still extremely useful to simplify the understanding of filesystems, translating LBA to CHS, and many other details, as an excellent ad actually the original starting point for mass-storage media.

_________________
Live PC 1: Image Live PC 2: Image

YouTube:
http://youtube.com/@AltComp126/streams
http://youtube.com/@proyectos/streams

http://master.dl.sourceforge.net/projec ... 7z?viasf=1


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Sat May 21, 2016 5:42 pm 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
~ wrote:
A floppy image could be a good sample if it could have any filesystem installed and recognized on it as a floppy.
However, when used as a USB flash drive image or emulation image properly written code will permit it to be used as a BIOS emulated
hard drive in addition to a BIOS emulated floppy disk, depending on the BIOS setup or BIOS default.
~ wrote:
So as we see, floppy disks are still extremely useful to simplify the understanding of filesystems, translating LBA to CHS, and many
other details, as an excellent ad actually the original starting point for mass-storage media.
But not the actual long gone and forgeten disks.
Also, if the PC (or emulator) can boot a USB flash drive the int 0x13 extensions can be used without CHS.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk - Win7 update
PostPosted: Tue Jun 07, 2016 1:28 pm 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
I just received the USB floppy drive that I had ordered.
The 1.44MB FAT32 floppy disk works just fine on Win7 (chkdsk shows no errors) and of course it also boots and runs just fine
from the attached USB floppy drive.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Last edited by mikegonta on Mon Nov 21, 2016 10:27 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Tue Jun 07, 2016 1:45 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
Very exciting stuff. Makes me want to go order a USB foppy drive too!

Does it work on 5.25 inch disks too?

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk - Win7 update
PostPosted: Tue Jun 07, 2016 2:05 pm 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1070
Location: Germany
mikegonta wrote:
The 1.44MB FAT32 floppy disk works just fine on Win7 (chkdsk shows no errors) and of course it also boots and runs just fine from the attached USB floppy drive.

I wouldn't call it "works fine" when it shows the wrong disk size.

Did you try what happens when you try to store more than 1.44 MB on the disk?

_________________
Developer of tyndur - community OS of Lowlevel (German)


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk - Win7 update
PostPosted: Tue Jun 07, 2016 2:57 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
Kevin wrote:
I wouldn't call it "works fine" when it shows the wrong disk size.

Did you try what happens when you try to store more than 1.44 MB on the disk?
If I remember correctly, he marked the non-existent space as "bad sectors". And that's probably what would happen if you tried to use them - the storage device would return an I/O error just like if you try to access a bad sector on any other disk. It would still be interesting to know though - I imagine that it would be pretty system-dependent, with some systems possibly freezing and other returning errors.

On a slightly unrelated note, I can't remember the exact details but I once did something along the lines of formatting a floppy disk with extra sectors per track and storing more data on it, which worked fine. I then, if I remember correctly, formatted it with 18 sectors per track but somehow made Linux believe that it had 20 sectors per track. Linux was able to read and write the disk correctly, even though there were two "missing" sectors per track (it didn't care what physical track the sectors were in, because that is abstracted at the block-device level), but the reported capacity was larger than the disk actually had sectors for and once I got past the end of the real sectors the storage device gave I/O errors for any sectors that didn't exist.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Tue Jun 07, 2016 5:44 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 558
Formatting more sectors per track on a floppy was actually more than just a valid method if you did it at the disk level and not just the filesystem level! In the 90s, Microsoft formatted 3.5 inch installation floppies at 21 sectors per track to get 1.68 MB on a disk, thereby reducing the number of floppies needed for larger software considerably.

With even more trickery (like lowering the amount of space between tracks on the disk to get 82 tracks in, and changing the sizes of the sectors on each track) you can get over 1.7 MB on a standard 3.5 inch high density floppy disk. IBM introduced a completely non-compatible format called XDF that pushed the formatted capacity of a floppy to 1840 KiB*. They technically have the space for 2,000,000 bytes of storage on them, but if you just used them raw like that you'd have no way to seek to specific sectors and tracks since those 2,000,000 raw bytes include the space for synchronization information and inter-sector gaps.


* IBM's proprietary XDF distribution format took advantage of the fact that you can technically format different sectors on a single track with arbitrary power-of-two sizes. With 12,500 raw bytes available on a single track, you can fit the equivalent of 23 512-byte sectors onto the track by formatting it as four sectors: the first is 8192 bytes, the second 2048, the third 1024, and the fourth 512. You can do this in the sector ID gaps, but you can't do this in the track header, so the track header was programmed to think there were 39 128 byte sectors instead. This gives you 11776 bytes per track, and with two sides of 80 tracks, you get exactly 1840 KiB. More technical details can be found here.


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk - Linux update
PostPosted: Wed Jun 08, 2016 8:46 am 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 228
The 1.44MB FAT32 floppy disk works just fine on Linux.
Of course, this is running on a Win64 VM with the physical USB floppy drive mounted.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Last edited by mikegonta on Mon Nov 21, 2016 10:28 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Wed Jun 08, 2016 9:27 am 
Offline
Member
Member

Joined: Fri Jan 30, 2015 4:57 pm
Posts: 215
Location: Germany
I somehow still don't get the point of fat32 on fd :)


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Wed Jun 08, 2016 12:08 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
Because.... why not?

What's the point of OSDev?

For me, I like the idea of my computer only running code that I wrote, and nothing else. And I've also learned a lot about hardware, Linux, assembler, and even Windows that I didn't know before.

I also prefer flexibility over performance. So having the option to format a floppy drive with any file system that I choose appeals to me. Windows gives you no options, whatsoever.

Not sure about Linux. Never tried to format a floppy with FAT32, or EXT4. Anyone know if this is possible?

EDIT: Apparently, Debian has support for formatting floppies as EXT2. https://wiki.debian.org/FormatFloppy

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Wed Jun 08, 2016 12:34 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 558
ext2 is scalable. FAT32 has lower bounds of 32 MB.

This is still a bad hack. A clever hack would be adding support for DMF or XDF. Or something actually useful, like giving MikeOS the ability to use subdirectories.


Top
 Profile  
 
 Post subject: Re: The 1.44MB FAT32 floppy disk
PostPosted: Wed Jun 08, 2016 3:10 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
Kazinsal wrote:
Formatting more sectors per track on a floppy was actually more than just a valid method if you did it at the disk level and not just the filesystem level! In the 90s, Microsoft formatted 3.5 inch installation floppies at 21 sectors per track to get 1.68 MB on a disk, thereby reducing the number of floppies needed for larger software considerably.
Yes, I know it's a valid method. That's why I was doing it (except I did only 20 sectors per track because one of the floppy drives that I was using them in couldn't read 21 sectors per track (old/worn hardware) and I didn't want to risk damaging my drive with 81 or 82 tracks so I left it at 80 tracks - 82 tracks doesn't change the distance between the tracks; that distance is fixed by the floppy drive's stepper motor, so putting 82 tracks on the disk relies on the fact that most floppy drives can seek beyond track 80 before they reach their physical limits - a lot of old software used to put copy-protection data in tracks 81 and 82 as well because most disk copying utilities would only copy the first 80 tracks). But then i started messing around to see what would happen if the system thought there were 20 sectors per track but there were only 18.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group