Linux Create A Bootable USB Pen

https:‮//‬www.lautturi.com
Linux Create A Bootable USB Pen

To create a bootable USB pen on a Linux system, you will need a USB pen with a capacity of at least as large as the bootable image that you want to create, and an image of the bootable operating system or application that you want to install.

Here is an example of how to create a bootable USB pen on a Linux system:

  1. Identify the device name of the USB pen. You will need to know the device name of the USB pen that you want to use to create the bootable USB pen. You can use the lsblk command to list the block devices on your system, and look for the device name of the USB pen (e.g., /dev/sdb).

For example, to list the block devices on your system, you can use the following command:

$ lsblk
  1. Unmount the USB pen. Before you can create the bootable USB pen, you will need to unmount the USB pen if it is currently mounted. You can use the umount command to unmount the USB pen.

For example, to unmount the USB pen with the device name /dev/sdb, you can use the following command:

$ umount /dev/sdb
  1. Use the dd command to create the bootable USB pen. To create the bootable USB pen, you can use the dd command with the if and of options to specify the input and output file, respectively. The input file should be the path to the bootable image file (e.g., /path/to/bootable.img), and the output file should be the device name of the USB pen (e.g., /dev/sdb).

Here is an example of the dd command to create a bootable USB pen:

$ dd if=/path/to/bootable.img of=/dev/sdb

This will create a bootable USB pen with the contents of the bootable image file.

  1. (Optional) Use the status=progress option to show a progress bar while the copy operation is in progress. You can use the status=progress option to display a progress bar while the dd command is running.

For example, to show a progress bar while creating the bootable USB pen, you can use the following command:

$ dd if=/path/to/bootable.img of=/dev/sdb status=progress
Created Time:2017-10-29 22:08:52  Author:lautturi