LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Blogs > Ztcoracat
User Name
Password

Notices


Rate this Entry

Use The dd Command to Make a Flash Drive Bootable

Posted 03-14-2017 at 05:54 PM by Ztcoracat

Sometimes Unetbootin doesn't work and leaves things on the drive behind.

Using the dd command is very useful and only takes a few minutes.

First execute; as root, fdisk -l to find out what drive the flash drive is.
I'll use /dev/sdg as an example.

To reformat run as root:
Code:
mkfs.vfat /dev/sdg -I
Unmount the drive:
Code:
umount /dev/sdg
Than to write the .iso to the flash drive run:
Code:
dd bs=4M if=path/to/.iso of=/dev/sdg && sync
Wait for the terminal to return to the Bash prompt than your done.
-------------------------------------------------------------------------
Now in some cases there will be 2 partitions and you would have to reformat each one ex

Code:
mkfs.vfat /dev/sdg1 -I
mkfs.vfat /dev/sdg2 -I
Also; if a distributions .iso is 5 GB's or more your have to change your string to 512M like so:

Code:
dd bs=512M if=path/to/.iso of=/dev/sdg && sync
Posted in Uncategorized
Views 2331 Comments 2
« Prev     Main     Next »
Total Comments 2

Comments

  1. Old Comment
    What's the significance of /dev/sdg and the mkfs.vfat filesys?

    Meow.
    Posted 03-14-2017 at 06:31 PM by Habitual Habitual is offline
  2. Old Comment
    Quote:
    Originally Posted by Habitual View Comment
    What's the significance of /dev/sdg and the mkfs.vfat filesys?

    Meow.
    /dev/sdg is a usb flash drive that's a verbatim brand.
    Posted 03-16-2017 at 10:30 PM by Ztcoracat Ztcoracat is offline
 

  



All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration