This command allows you to manage the flash disks (such as compact flash) of the connected device. The possible operations are as follows:
•Resetting the physical device
•Saving (to device) an existing flash
•Restoring (from device) an existing flash
Annotation:
•Standard and Standard* type flashes cannot be handled by this command, but only with the appropriate FINIT command.
•Compact, SD, microSD, large SD (>= 4GiB) and large microSD (>= 4GiB) type flashes are identified by names like /diskXY, where X is the flash device identifier and Y is the partition number: e.g. /diska1 is partition 1 of the primary flash device (default).
Creating a new flash
This operation allows you to create a new flash or (option -O) to re-create an existing flash.
Syntax |
FDISK CREATE [-Q][-O] <flash> <size> |
-Q |
Queries only how the operation would be performed. |
-O |
Overwrites any existing flash |
<flash> |
Name of the flash |
<size> |
Required size of the flash [kb] |
WARNING: If the flash already exists and the -O option has been specified, it is recreated with the new requested size, resulting in the (irreparable) loss of all the data and files it contains. Therefore, perform the operation only and only if you are well sure of what you intend to do. Querying with the -Q parameter alone, on the other hand, poses no risk regarding the contents of the flash itself.
For more information on the number and type of flashes that can be used, consult the hardware documentation for the specific device in question. When the operation is finished, you can check the list (with its status) of flashes with the FMEM command.
NOTE: Creating the /diska1 flash may automatically generate some folders, such as /diska1/f@ and /diska1/fa.
Examples of use
To create the main flash with size of 32mb (32 x 1024 = 32768 kb):
FDISK CREATE /diska1 32768 |
Deleting an existing flash
This operation allows you to erase and remove an existing flash with all its contents.
Syntax |
FDISK DELETE <flash> |
<flash> |
Name of the flash |
WARNING: Deleting an existing flash will result in the (irretrievable) loss of all the data and files it contains. Therefore, perform the operation only and only if you are well sure of what you intend to do.
For more information on the number and type of flashes that can be used, consult the hardware documentation for the specific device in question. When the operation is finished, you can check the list (with its status) of flashes with the FMEM command.
Examples of use
To delete the second partition of the main flashes:
FDISK DELETE /diska2 |
Physical device reset
This operation allows you to erase and remove all flash contained on a specific physical device.
Syntax |
FDISK CLEARDEVICE <name> |
<name> |
Name of the physical device |
CAUTION: Clearing the physical device results in the erasure of all flash resulting in the (irreparable) loss of all data and files contained therein. Therefore, perform the operation only and only if you are well sure of what you intend to do.
For more information on the number and type of flashes that can be used, consult the hardware documentation of the specific device in question. When the operation is finished, you can check the list (with its status) of flashes with the FMEM command.
Examples of use
To clear the entire main flash device (where the /diska1, /diska2, etc. flashes reside):
FDISK CLEARDEVICE /diska |
Saving (to device) an existing flash
This operation allows you to perform a save of all the contents of the specified flash to the corresponding save flash, which is automatically created and reserved for this purpose with the FDISK CREATE command.
Syntax |
FDISK BACKUP <flash> |
<flash> |
Name of the flash |
CAUTION: Saving results in the loss of any previous save.
For more information on the number and type of flashes that can be used, consult the hardware documentation for the specific device in question.
Examples of use
To back up the main flash, partition 1:
FDISK BACKUP /diska1 |
Restoring (from device) an existing flash.
This operation performs a restore of all the contents of the flash specified by the special save flash, the contents of which are created using the FDISK BACKUP command.
Syntax |
FDISK RESTORE <flash> |
<flash> |
Name of flash |
WARNING: Saving results in the irretrievable loss of all contents of the specified flash.
For more information on the number and type of flashes that can be used, consult the hardware documentation for the specific device in question.