I use ImDisk Virtual Disk Driver, which lets Windows handle formatting it, but due to the way it works you can't partition the image (it emulates a logical drive, not a physical one). However, the code for partitioned and unpartitioned drives should be the same if you do it right. You just add HiddenSectors to FirstDataCluster and FirstFATSector.
Edit: Weird, Windows tends to set HiddenSectors to 1 on disk images, when it should be 0. Now I'm going to have to have 2 versions of my boot loader: one for flat images and one for partitioned ones.
Understanding the FAT32 allocation table
- Firestryke31
- Member
- Posts: 550
- Joined: Sat Nov 29, 2008 1:07 pm
- Location: Throw a dart at central Texas
- Contact:
Re: Understanding the FAT32 allocation table
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
Re: Understanding the FAT32 allocation table
Thanks I'll try that! Any good information about how to use ImDisk (couldn't find much on the site where I downloaded it). What I want to do is to create a fat32 image and mount it, put some files there, and then unmount it and try to "parse" it with my own code
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Understanding the FAT32 allocation table
Frequently asked question. Disk Images
- Firestryke31
- Member
- Posts: 550
- Joined: Sat Nov 29, 2008 1:07 pm
- Location: Throw a dart at central Texas
- Contact:
Re: Understanding the FAT32 allocation table
Create a file of the appropriate size (I used the Bochs image program thing) and just right click it, select Mount (IIRC it's the second option), go to My Computer, format the new drive as usual, right click the drive, and unmount. Then you can play around with the image file. Whenever you want to add/remove files, just mount it and use it like a normal drive.mangaluve wrote:Thanks I'll try that! Any good information about how to use ImDisk (couldn't find much on the site where I downloaded it). What I want to do is to create a fat32 image and mount it, put some files there, and then unmount it and try to "parse" it with my own code
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?