Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 38162  / 2 Years ago, tue, may 17, 2022, 5:12:17

Possible Duplicate:

Create USB installer from the command line?






With curiosity I have on terminal, I came to this step. How can I create Live USB from terminal? Is there any tool i got to do that ?



I am using Ubuntu 12.04 .


More From » 12.04

 Answers
7

You can use the famous (and also dangerous) Linux tool dd for this job. But take note that it will completely erase all the contents of USB drive. Also note that you can't get the facility of persistence storage with the Live USB, which means every boot to the Live System will be new.


Using dd


First take note of the device number of your USB drive with the command sudo blkid. Most probably, it will be /dev/sdb or /dev/sdc. Almost all of the time, it cannot be /dev/sda.


Then open a terminal with the Ctrl+Alt+T shortcut and use this command (I'm assuming your USB drive is /dev/sdb).


sudo dd if=/path-to-the-iso-file/filename.iso of=/dev/sdb

The command will run for some time. When you see the prompt $ in your terminal, you're done.


Using cat


You can also use the cat command. Open a terminal and enter the command like below:


sudo cat /path-to-ubuntu-iso/iso-filename.iso > /dev/sdb; sync

Replace the /dev/sdb with your system-specific USB drive number.


Please note that you need to specify the output device as /dev/sdb or /dev/sdc, not /dev/sdb1, /dev/sdc1, etc.


Update for the updated question


Not all distros can be made bootable using the dd method. One such example is OpenSUSE DVD (not the live one). So it is not possible to use dd to make a bootable iso for every Linux distro, but the dd method should work for all live distros.


[#35076] Wednesday, May 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fectlyole

Total Points: 64
Total Questions: 110
Total Answers: 110

Location: Nicaragua
Member since Thu, Feb 3, 2022
2 Years ago
fectlyole questions
Sun, May 8, 22, 02:54, 2 Years ago
Mon, Jun 21, 21, 16:56, 3 Years ago
Fri, Jul 9, 21, 17:44, 3 Years ago
;