This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
init
Tom Hancocks edited this page Feb 12, 2017
·
4 revisions
init
is a command that exists in the imgtool shell that allows you to initialise a disk image file. Initialisation is the process that populates the disk image file with the appropriate number of zero filled sized sectors.
An example of the init
command for creating a blank floppy disk image is simply
init
Or if you want to be more explicit
init -b 512 -c 2880
The init
command is dependant on a disk image being attached to imgtool. If a disk image is not attached then the command will fail. See the attach command for details.
Argument | Description |
---|---|
init | The command itself. |
-b value | The number of bytes that should be placed in each sector. This is required for any device that is not a floppy disk. |
-c value | The number of sectors that should be placed in the disk image. This is required for any device that is not a floppy disk. |
Care should be used with the init
command to ensure you are actually working on the intended disk image. This will eliminate any previously held data in the disk image.