>> If I shut down QEMU, and use Linux fdisk to examine the virtual drive > >> image, I see this: > >> > >> $ fdisk -l 4gb.img > >> Disk 4gb.img: 4 GiB, 4294967296 bytes, 8388608 sectors > >> Units: sectors of 1 * 512 = 512 bytes > >> Sector size (logical/physical): 512 bytes / 512 bytes > >> I/O size (minimum/optimal): 512 bytes / 512 bytes > >> Disklabel type: dos > >> Disk identifier: 0x00000000 > >> Device Boot Start End Sectors Size Id Type > >> 4gb.img1 63 6152894 6152832 2.9G b W95 FAT32 > >> 4gb.img2 6152895 8385929 2233035 1.1G 5 Extended > >> 4gb.img5 6152958 7181054 1028097 502M 6 FAT16 > >> 4gb.img6 7181118 8385929 1204812 588.3M b W95 FAT32 >
On 2/22/2021 4:16 AM, Robert Riebisch wrote: > > Little off-topic: > > Does FDISK always create partitions >512M as FAT32? > > I ask, because FAT16 allows partitions up to 2G. > On Mon, Feb 22, 2021 at 11:01 AM Ralf Quint <freedos...@gmail.com> wrote: > If this has been selected when starting FDISK, by confirming the > question "Do you want to use large disk (FAT32) support (Y/N)....?, then > the answer is of course yes. 😉 > > And yes, I did select "Y" to that question. For further debugging, I did this test: *same setup (FD 1.3 RC3, floppy image with FDISK 1.3.3, and 4GB virtual hard disk image) .. boot to FreeDOS 1.3 RC3, exit to DOS, run FDISK 1.3.3 from the floppy: *1. "Do you want to use large disk (FAT32) support" -> N* 2. "Create DOS partition or Logical DOS Drive" -> "Create Primary DOS Partition" -> "Do you wish to use the maximum available size for a Primary DOS Partition and make the partition active" -> Y ... this creates a "2047" Mbytes C: drive ... "Total disk space is 4103 Mbytes" 2. "Create DOS partition or Logical DOS Drive" -> "Create Extended DOS Partition" ... "Maximum space available for partition is 2055 Mbytes (50%)" ... "Enter partition size in Mbytes or percent of disk space (%) to create an Extended DOS Partition" -> hit Enter on the default value of 2055 ... this creates a "2047" Mbytes extended partition 3. FDISK lets me create a logical DOS drive in the extended partition ... "Maximum space available for partition is 2047 MBytes" -> I created a partition at "1000" Mbytes ... this creates a "1004" Mbytes FAT16 D: drive 4. FDISK lets me create another logical DOS drive in the extended partition ... "Maximum space available for partition is 1051 MBytes" -> I hit Enter on the default value of 1051 ... this creates a "1043" Mbytes E: drive 5. FDISK lets me create a logical DOS drive in the extended partition ... "Maximum space available for partition is 8 MBytes" -> I hit Enter on the default value of 8 ... this doesn't create a new drive, but instead wipes out the D: drive to 0 Mbytes and now FAT12. "All available space in the Extended DOS Partition is assigned to logical drives" And when I try to exit FDISK, I get this: pDrive->log_drive[index].start_cyl (0) != extended_cylinder (261) When I shut down the virtual machine, I see this in Linux: $ fdisk -l 4gb.img *Disk 4gb.img: 4 GiB, 4294967296 bytes, 8388608 sectors* Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 *Device* *Boot* * Start* * End* * Sectors* *Size* *Id* *Type* 4gb.img1 * 63 4192964 4192902 2G 6 FAT16 4gb.img2 4192965 8385929 4192965 2G 5 Extended 4gb.img5 4193028 4299160260 4294967233 2T 1 FAT12 4gb.img6 6249348 8385929 2136582 1G 6 FAT16
_______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel