MAKING A BOOTABLE DRIVE IN LINUX CLI

 If you have used windows you might be familiar with a tool called RUFUS. It was widely used for creating bootable usb drives and was easy to use. In linux we also have many such similar tools to do that particular task but what if you want to do the same using CLI below is the easy processes to create a bootable usb using CLI .


dd tool is one of the most used command by Linux professionals  it is generally by default available in nearly all Linux distributions. dd stands for Data Duplicator and is used for converting and copying data block by block. 

First unmount the drive 
use lsblk to locate your drive the unmount it 



Format your external drive
usr mkfs to format your drive, you can format it according to your need into vfat,ntfs or ext4 here we will use ext4



Copy the .iso file 
Then use dd to copy the .iso file into the formatted drive
here if = Input file
of = Output file




Monitoring the progress
Now dd process can take a lot of time depending upon your image size to monitor the progress you can use
kill -USR1 pid 
and you can get pid of dd using 
pgrep ^dd






Comments

Popular posts from this blog

OOP Assignment 3 helping materials

Square root Algorithm in C++

OOP lab 7 task solution