Main menu
WalkswithMeLinux Commands System TipsHow to create bootable USB with terminal in Linux

How to create bootable USB with terminal in Linux

How to create bootable USB with terminal in Linux machine ? Yea there is no need of any other software for formatting and making bootable USB from ISO file. you can simply use your terminal program and complete the task.

Some time other software may failed or returned error while making bootable usb, but this should always work.

First you have to format the USB , you can simply use the following script for formatting the USB make sure you choose exactly same partition other wise you may format your other partitions or dual booted OS.


df -h
or you can use
sudo fdisk -l

Then you will find a result something look like below image and make sure you identified your USB drive letter from the result.

Bootable USB with terminal

Bootable USB with terminal

Now you can un-mount the partition by using following command


sudo umount /dev/sdb1

Now simply choose any of the following command to format the disk based on your preferred file system type. for bootable FAT is used commonly.

Format with vFat file system


sudo mkfs.vfat /dev/sdb1

Format with NTFS file system


sudo mkfs.ntfs /dev/sdb1

Format with EXT4 file system


sudo mkfs.ext4 /dev/sdb1

Once the formatting is complete now you can make the bootable USB with terminal , with single command. First make sure your ISO file path , and USB drive letter. the syntax is as follows.

How to make bootable USB with terminal command ?


sudo dd if=[path_to_iso] of=[path_to_usb]

Just like


sudo dd if=/home/jobin/Downloads/manjaro-xfce-15.09-x86_64.iso of=/dev/sdb

NOTE its sdb not sdb1, It will automatically pick the correct partition just make sure you didn’t connect more than one USB device at this time.

Once the process complete you will something like below.

1275904+0 records in
1275904+0 records out
653262848 bytes (653 MB) copied, 17,4742 s, 37,4 MB/s

Yep its that much simple to create bootable usb with terminal in Linux there is no need of any other software.

Happy reading.. 🙂

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

 

FacebookTwitterGoogle+RSS