mkbootdisk command is a Linux command that is used to create a bootable floppy disk or USB drive for the current system. This command is useful when you need to create a bootable disk for your Linux system in case of an emergency.
The syntax for the
mkbootdisk command is as follows:
mkbootdisk [options] [kernel-version]
kernel-version parameter is optional and specifies the version of the kernel to use when creating the boot disk. If this parameter is not specified, the command uses the currently running kernel.
Here is an example of how to create a bootable floppy disk for the current system:
mkbootdisk --device /dev/fd0
This command creates a bootable floppy disk on the
Here is an example of how to create a bootable USB drive for the current system:
mkbootdisk --device /dev/sdb1
This command creates a bootable USB drive on the
The following table lists the available options for the
|–device device||Specifies the device to use for the boot disk.|
|–iso file||Specifies the name of the ISO file to create.|
|–label label||Specifies the label for the boot disk.|
|–size size||Specifies the size of the boot disk in megabytes.|
|–verbose||Displays verbose output.|
|–version||Displays the version of the
|–help||Displays help information for the
- Make sure that you have the necessary permissions to create a bootable disk.
- Ensure that the device you are using is formatted correctly and is not write-protected.
- If you are creating a bootable USB drive, make sure that it is properly mounted before running the command.
mkbootdiskcommand is only available on certain Linux distributions, such as Red Hat and Fedora.
mkbootdiskcommand is not recommended for creating bootable disks for modern systems, as most modern systems use UEFI instead of BIOS.