How to make a Bootable pendrive for linux Distribution – Linux Booth

How to make a Bootable USB sticks for all linux Distribution.

Here we are setting up a example to make a bootable USB stick for Centos 7.0 can do the same steps to all distribution which you want to build.

First download media from the above link and save it to your laptop/desktop or any other external hard drive .

Here’s how to create a live USB stick of Linux distributions from Windows, macOS and Linux.

Create a bootable Linux USB from Windows

If you are running Windows, your best bet is to use rufus, a free and open source USB writing tool. Rufus is much faster than other such tools like UNetbootin and it can create bootable USB sticks of Linux as well as Windows.

Download rufus from the official site (I discourage downloading software from unofficial sources for security’s sake). You don’t have to install the app; just run it and then select the target drive (USB stick), browse the ISO image of the operating system that you want to put on the USB flash drive, and rufus will take care of the rest.

Create a bootable Linux USB from macOS

Plug the USB drive into your Mac system and open the Terminal app (just search for Terminal in Spotlight). Then run the following command to find the name of the device:

$ diskutil list

As you can see from the output ‘/dev/disk3’ is the 4GB USB drive that we will use.. Now unmount this drive:

$ diskutil unmountDisk /dev/disk3

And run the dd command as sudo using the following pattern:

$ sudo dd if=PATH_OF_LINUX.iso PATH_OF_USB bs=1m

In my case, I had downloaded Centos 7.0 image to the Document folder and the mount point for the USB was /dev/Rajat-usb. So the command is:

sudo dd if=/Users/Rajat/Document/CentOS-7-x86_64-Minimal-1804.iso of=/dev/Rajat-usb bs=1m

It will ask for the password and you are all set.

Create a bootable USB stick from Linux

I was keeping the best for last. If you are running Linux, you can use the dd command (as in the instructions for macOS above) to create the bootable drive. Plug the USB drive into the system and then run the lsblk command to find the connected storage devices.

[root@www Rajat]# lsblk
NAME                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                               8:0    0 931.5G  0 disk 
├─sda1                            8:1    0   200M  0 part /boot/efi
├─sda2                            8:2    0     1G  0 part /boot
└─sda3                            8:3    0 930.3G  0 part 
  ├─fedora_localhost--live-root 253:0    0    50G  0 lvm  /
  ├─fedora_localhost--live-swap 253:1    0   7.8G  0 lvm  [SWAP]
  └─fedora_localhost--live-home 253:2    0 872.5G  0 lvm  /home
sdb                               8:11   0   3.5G  0 disk 
├─sdb1                            8:12   0   3.5G  0 part 
sr0                              11:0    1  1024M  0 rom

Take note of the mount point, which in my case is /dev/sdb

Then unmount the device

$ umount /dev/sdb

And now run the dd command:

$ sudo dd if=/path_of_Linux.iso mount_point bs=1M

In my case it was:

$ sudo dd if=/Users/Rajat/Document/CentOS-7-x86_64-Minimal-1804.iso of=/dev/sdb bs=1M

Enter the password and it will create a bootable drive of Linux.

One thought on “How to make a Bootable pendrive for linux Distribution

Leave a Reply

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