Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

tinypliny’s journal

Making a bootable USB in Linux

·

Sometimes the simplicity of things across all distributions of linux are most refreshing. To burn an iso into a USB and create a bootable USB, I was glad to find out that I didn't need to hunt for programs as I usually do. I could do it in 4 steps.


@paul would like to remind everyone that this method completely gets rid of all the existing data on the USB drive so do it on an expendable one not somewhere you have all your backup files.



Pull up a terminal.
Pull up the system messages by


tail -f /var/log/messages


This records the realtime happenings on your system

Plug in your USB, you'll see it coming up on the messages window
Let's say its /dev/sdb


At this point @uncutsaniflush would like to say:
You should also note that this only works if your usb drive is "/dev/sdb." If a box has multiple hard drives, it is unlikely that "/dev/sdb" would be your usb drive. If someone had for example two hard drives, "dev/sdb" would be the second one. And thus, all data on the second hard drive would be destroyed. "dd" is a wonderful tool but rather easy to misuse if one isn't absolutely clear which drive is which.


On the terminal again, umount it first


umount /dev/sdb



Go to the directory containing the iso image


cd /directory/that/contains/iso



Then give the simple command to burn the iso into the USB


dd if=file.iso of=/dev/sdb



This will take a while to finish, but yes, it's that simple.
Share 281 words · edited Oct 16, 2011

💬 4 comments

  1. paul ·

    You should note this destroys all data on the USB drive before some reads this and does it with a drive that conatins all of their backup files.
  2. tinypliny ·

    done, though I sometimes think everyone gets what they deserve for stupidity including me ;-)
  3. uncutsaniflush ·

    You should also note that this only works if your usb drive is "/dev/sdb." If a box has multiple hard drives, it is unlikely that "/dev/sdb" would be your usb drive. If someone had for example two hard drives, "dev/sdb" would be the second one. And thus, all data on the second hard drive would be destroyed. "dd" is a wonderful tool but rather easy to misuse if one isn't absolutely clear which drive is which.

    Both unetbootin :::link::: and imagewriter :::link::: are good gui alternatives to using ""dd" in a cli.
  4. tinypliny ·

    Yes! That is an important point. My two hard drives were attached to the comp when I did this and my USB was actually scc or some such thing. Unetbootin is good, but sometimes, it doesnt work for some distros. I wonder why...

    Haven't tried imagewriter.

💬 Write a comment