Easy OS Booting Through the Linux Terminal

DevapraveenDevapraveen
2 min read

Creating a bootable USB drive is a crucial step for installing or running a Linux operating system. This guide will walk you through the process using the Linux terminal.

Step 1: Format Your USB Drive

Before you begin, ensure your USB drive is properly formatted. Follow these steps:

  1. Identify the USB Drive Path: Open a terminal and use the lsblk or fdisk -l command to identify the path of your USB drive. The path will typically be something like /dev/sdX, where X is a letter assigned to your drive.

     lsblk
    

    or

     sudo fdisk -l
    
  1. Format the USB Drive: Use the following command to format your USB drive. Replace /dev/sdX with the actual path of your USB drive.

     sudo mkfs.fat -F 32 /dev/sdX
    

    Step 2: Create a Bootable USB

    Once your USB drive is formatted, you can create a bootable USB drive using the dd command. This command will write the ISO file to your USB drive.

    1. Execute the dd Command: Replace /path/to/linuxmint.iso with the actual path to your downloaded ISO file and /dev/sdX with your USB drive path.

       sudo dd if=/path/to/linuxmint.iso of=/dev/sdX bs=4M status=progress
      
      • if stands for input file, which is your ISO file.

      • of stands for output file, which is your USB drive.

      • bs=4M sets the block size to 4 megabytes.

      • status=progress shows the progress of the operation.

Conclusion

By following these steps, you can successfully format your USB drive and create a bootable USB using the Linux terminal. This method is efficient and reliable for installing or running a Linux operating system.

0
Subscribe to my newsletter

Read articles from Devapraveen directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Devapraveen
Devapraveen

Passionate full-stack developer from india. Sharing knowledge and experiences through my blog to help fellow developers tackle challenges and navigate the evolving world of software development.