How do we create a LIVE USB on LINUX? (using command line "dd")

How do we create a LIVE USB on LINUX? (using command line "dd")

i’m reading on the internet you type…

  1. Insert your USB drive into your computer and use ‘df’ or ‘lsblk’ from the command line to determine the device name your flash drive has been assigned, e.g. /dev/sdb, sdc, etc. in my case the USB drive shows up on /media/asher/gentoo

  2. Make sure the drive is not mounted. If necessary, unmount it with:

    sudo umount /dev/<device_name>

  3. Write the .iso image to the flash drive:

    sudo dd if=/path/to/distro.iso of=/dev/<device_name> bs=1M

this does seem to do something however it doesn’t write the LIVE USB ISO to the USB DRIVE

THANKS FOR THE LIVE USB HELP!

Asked By: Asher

||

Your problem is likely to be that you have not correctly identified the target device.

The device name will start with /dev, so if you insert the USB drive and then type df in a terminal window, you should see something like:

/dev/sdb1 59279292 28167900 28067760 20% /media/asher/gentoo

So the command would look like:

sudo dd if=/path/to/distro.iso of=/dev/sdb bs=1M

Note that the command above has /dev/sdb not /dev/sdb1 – because you should probably not copy the .iso to a partition on the USB but use the entire drive instead.

Answered By: TommyPeanuts
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.