mkfs Command ============ The `mkfs` command is used to format the root filesystem in the HotRIO firmware. This command requires confirmation before performing the format operation, and it takes no additional parameters other than the confirmation response. Usage ----- The `mkfs` command has the following syntax: .. code-block:: mkfs Command Description ------------------- - **No parameters**: The `mkfs` command does not require any parameters when invoked. However, it will prompt the user for a confirmation response before proceeding with the format operation. Examples -------- 1. Execute the `mkfs` command: .. code-block:: mkfs Please confirm the operation [Y/N]: 2. If the user confirms the operation by typing `Y`, the filesystem will be formatted: .. code-block:: Y Staring format operation... Format operation completed successfully. 3. If the user aborts the operation by typing `N`, the format will be canceled: .. code-block:: N Format operation aborted. 4. If the user enters an invalid response, they will be prompted again: .. code-block:: Z Please input Y or N: Error Handling -------------- If an error occurs during the formatting process (e.g., due to filesystem issues), the following message will be shown: - "Error: Format operation failed" In the case of invalid user input, the following prompt will be shown: - "Please input Y or N:" Command Execution ----------------- When the `mkfs` command is executed, the system performs the following steps: 1. The user is prompted to confirm the format operation by typing `Y` (Yes) or `N` (No). 2. If the user confirms with `Y`, the system will initiate the format operation on the root filesystem. 3. If the user cancels with `N`, the format operation will be aborted, and the command completes without changes. 4. If the user enters an invalid response, they will be prompted again for a valid confirmation. The command ensures that the user has the opportunity to confirm or cancel the potentially destructive format operation before it is carried out.