djgpp, and MinGW compiled executables with sources [DOS 32-bit, windows 32+64-bit]).
This program is under GPL3 license and is available as a single extract512bytesfromfile.zip. It is under the GPL3 license. lsm file.
This program is useful for extracting boot sectors and MBR from floppy image file generated by rawrite or rawrite for windows or hard disk images.
09/27/2010 12:39 AM 169,773 extract512bytesfromfile.zip SHA512 extract512bytesfromfile.zip 01dddf536a53cadf 5bd6023e64a3941c 58437f92d419d79e 888b20010664ebd9 95a64cb1a14b4a7a 7dfc6ccde0a59a04 1f7512c0dd3a43d4 22826c169d199ae1 MD5 extract512bytesfromfile.zip 38c11f204c95e0990515a524b3c7f579
extract512bytesfromfile (extr512) is a utility that simply extracts the first 512 bytes from a file.
it is intended to be used on floppy image files that come out of rawrite
or rawrite for windows to extract the boot sector. the filename BOOTSECT.FD is what is used by FreeDOS Ripcord for
making bootable cd's. the rest of the files on the boot image should be
copyable from a floppy to the CDBTDSK\ area of the ripcord area.
this is the process intended.
you don't have to use the destination filename BOOTSECT.FD - you can use any filename you like.
Copyright 2007,2008 Jim Michaels
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
usage: extract512bytesfromfile [-?] [-h] [-v] [-p[os] p] [-l[ength] l] srcfile destfile
extracts l 512 byte chunks from srcfile starting at position p and writes to destfile. or at least it attempts to.
p and l are both in 512-byte chunks. for instance, 1 comes out as 512,
2 as 1024, 0 as 0, 3 as 1536, 4 as 2048, etc.
defaults to first 512 bytes.
-? or -h or --help or no arguments gives this help.
-v gives version number and exits.
Copyright 2007,2008 Jim Michaels. under GPL3 license.
C:\prj\extract512bytesfromfile>dos\extr512 c:\floppy.img BOOTSECT.FD
extracts first 512 bytes from floppy.img and puts into BOOTSECT.FD.
C:\prj\extract512bytesfromfile>dos\extr512 -p 1 -l 8 c:\floppy.img some.bin
last one extracts 8 sectors worth (4096 bytes) starting at position 512.