Hi!

To be a bit more productive than just complaining, how about this?

/* Automatically partition the selected hard drive */
void Automatically_Partition_Hard_Drive()

could be patched using:

--- FDISKIO.C.bak       2022-08-03 02:10:06.914145715 +0200
+++ FDISKIO.C   2022-08-03 02:10:27.141382832 +0200
@@ -110,7 +110,7 @@
           (pDrive->total_head+1)*
           pDrive->total_sect / 2048; */
       }while(  (pDrive->ext_part_largest_free_space > 0)
-           && (Determine_Drive_Letters()<'Z') );
+           && (Determine_Drive_Letters()<'D') );
     }
 }

That would at least somewhat limit the damage done by /AUTO :-)

One could also change the following part to NOT use type 6:

/* Create a primary partition...if the size or type is incorrect,  */
/* int Create_Primary_Partition(...) will adjust it automatically. */
Determine_Free_Space();
Set_Active_Partition(Create_Primary_Partition(6,2048));

By using FAT32, the whole extended/logical partition creation
hassles could be dropped, making a FAT32 variant of /AUTO much
simpler than the original. Both could co-exist with different
command line options in a patched FDISK, e.g. /AUTO32 and /AUTO.

Eric



_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to