If you have a DOS utility such as a BIOS Flash utility or small DOS-based diagnostic .exe file, you can try using the E2B FreeDOS bootable image.
This image contains an NTFS driver and so you can directly access files on a FAT32 or NTFS E2B drive.
The user can change the keyboard type, by typing keyb UK, etc. (e2B v1.A5+).
1. Make a new folder on your E2B USB drive (e.g. \MyDOS - use a name of less than 9 characters) and copy your DOS files into it.
2. Boot to E2B and go to the DOS menu and run 'FreeDOS (from a floppy image)'.
3. When it boots to FreeDOS, type:
to change to your directory.
4. Type the name of your .exe or .com or .bat file to run it.
Drive A: will be the floppy disk image drive letter and Drive C: or D: or E:, etc. will be the E2B USB drive letter. If you have internal disks with FAT or NTFS partitions, they will also be given drive letters.
IMPORTANT: The NTFS driver is buggy and I strongly recommend that you do not use it for writing files to an NTFS drive (e.g. do not write to the E2B USB drive). You should only use it to run files from an NTFS drive or to copy files from an NTFS drive to the A: drive or other FAT32 drive.
If you write new files to an NTFS USB drive, it can corrupt the existing E2B files! If you do copy files, do not use *, but copy the files one at a time.
If your utility runs from a .bat batch file, you may need to edit the batch file first (or copy your files to the root of the E2B USB drive).
If your DOS utility reports that there is not enough memory available, you will need to create your own bootable .ima or .img floppy disk image which does not load the large NTFS driver and copy your files into the .ima image.
Notes: E2B v.1.98+ has increased conventional memory available, supports DPMI (EMM386 memory manager), is now a 7.6MB FAT32 floppy and loads a mouse driver. E2B v1.A5+ includes a KEYB utility to change keyboard type (e.g. KEYB FR).
Use 7Zip to unzip the E2B.ima file from \_ISO\DOS\MNU\Freedos288.IMA.gz and copy it to \_ISO\DOS.
You can use WinImage to add or delete files inside the .ima.
Name the floppy image file as .imarw if you want to keep any changes you may make within FreeDOS.
You can use 7zip to compress the .ima file to a .ima.gz file.
See RMPrepUSB DOS tutorial here for more details and the RMPrepUSB WinImage tutorial here.
It does not include an NTFS driver and so can only access FAT partitions but can boot as floppy disk 0, or hard disk 0 or 1.
Switch to the .imgPTN and then add your own DOS files to the image (just copy files to the USB drive).
To make your own .imgPTN file.
1. Find a suitable MS-DOS 7 or 8 or FreeDOS floppy disk image or zip file or set of DOS boot files.
2. Extract/copy the files to an empty new folder (e.g. .\MyDos) on your Windows Desktop.
3. Drag-and-drop the new folder (MyDos) onto the MPI_FAT32 Desktop shortcut (you must install the MPI Tool Kit first).
4. Copy the 38MB .imgPTN file that this makes to your E2B drives \_ISO\DOS folder.
5. Run \MAKE_THIS_DRIVE_CONTIGUOUS.cmd from the E2B drive.
6. Now either MBR-boot to E2B and select the new .imgPTN file or use \_ISO\SWITCH_E2B.exe to switch it in.
7. The E2B USB drive will now appear as a 38MB FAT32 volume. You can directly change the files on it or edit any of the files.
You can test it by using RMPrepUSB - F11 (QEMU) to boot to it (or use Virtual Box+VMUB).
To restore the E2B drive, run \e2b\SWITCH_E2B.exe - Restore E2B Partition(s), or MBR boot from the USB drive and select menu item 0.
Tip: name the file with a .imgPTNAUTO file extension to avoid the 'OK to switch' user prompt.
Add you own DOS files to a ready-made .imgPTN file
Copy the FAT32 .imgPTN file to \_ISO\DOS folder
Boot to E2B and select the .imgPTN file from the DOS menu or use SWITCH_E2B.exe (SWITCH_E2B does not work correctly with FAT16 .imgPTN files)
You can now add files and modify the contents of the partition using Explorer. \FDAUTO.bat or \AUTOEXEC.BAT will run on startup and you can add the utilities name at the end of the file so that it will automatically run.
Boot to the E2B USB drive and use Menu option 0 to return to the E2B menu system (or use SWITCH_E2B.exe)
How to reduce the size of a .imgPTN file
The smallest size we can make using standard Windows utilities for a FAT32 volume is approx. 38MB.
If you have small DOS programs, you can reduce the size of the 38MB .imgPTN file as follows (change text in bold as required)...
1. Open the .imgPTN file that you want to copy (e.g. FreeDos_FAT32_38MB.imgPTN.zip) using 7zip and determine the total size required by sellecting all files (usually approx 6MB)
2. Open Windows Control Panel and run ImDisk - Mount New - Image file = C:\temp\MyNew.imgptn - Size of virtual disk = 10MB - OK
This will create a new drive letter for you - e.g. O:
3. Select the new drive in Explorer (e.g. O:) and allow Explorer to format it as FAT which is actually FAT16 (not NTFS).
4. Use Extract in 7zip to copy all the files to the new drive letter (e.g. O:\)
5. You can now directly edit any of the files on the new virtual drive
6. In Imdisk, use Remove to unmount the virtual drive (wait for 30 seconds after copying files first)
7. (optional) Use 7zip to verify that the contents of the new MyNew.imgptn file are present and correct.
Tip: You can delete the \clover and \efi folders to reduce the size required. Do not delete the \PBR.bin, \boot6 file or \menu.lst of \grldr files or the \e2b folder.
Note that Switch_E2B.exe does not work with FAT16 .imgPTN files, you must select the .imgPTN file using the E2B menu system.
A ready-made 10MB FAT16 .imgPTN file is also available in the Alternate Downloads Areas.