Writing this down again. How to burn ISO to USB

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Writing this down again. How to burn ISO to USB

Postby dedanna1029 » 10 Sep 2015, 04:11

Since I couldn't find the old thread that showed how to do this, I searched it on google. How to burn an .iso file to USB:

As full root:

Code: Select all

dd if=/path/to/your/isofile of=/your/usb/disk


Run fdisk -l first, and df to determine the exact drive your usb is.

For me:

Code: Select all

[root@dedanna dedanna]# fdisk -l

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C374023C-DD10-4D05-895F-708C9093C2A9

Device          Start        End   Sectors   Size Type
/dev/sda1        2048    2050047   2048000  1000M unknown
/dev/sda2     2050048    2582527    532480   260M EFI System
/dev/sda3     2582528    4630527   2048000  1000M unknown
/dev/sda4     4630528    4892671    262144   128M Microsoft reserved
/dev/sda5     4892672  628248575 623355904 297.2G Microsoft basic data
/dev/sda6   628248576  695357439  67108864    32G Linux filesystem
/dev/sda7  1251602432 1874954239 623351808 297.2G Microsoft basic data
/dev/sda8  1874956288 1927385087  52428800    25G Microsoft basic data
/dev/sda9  1927385088 1953523711  26138624  12.5G unknown
/dev/sda10  695357440  712132607  16775168     8G Linux swap
/dev/sda11  712134656  779243519  67108864    32G Linux filesystem
/dev/sda12  779243520 1251600383 472356864 225.2G Linux filesystem

Partition table entries are not in disk order.
Disk /dev/sdc: 1.8 TiB, 2000365289472 bytes, 3906963456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf3f2bb14

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdc1        2048 3906963455 3906961408  1.8T  7 HPFS/NTFS/exFAT

Disk /dev/sdd: 7.5 GiB, 8004304896 bytes, 15633408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x43f19278

Device     Boot Start     End Sectors  Size Id Type
/dev/sdd1  *        0 7653375 7653376  3.7G  0 Empty
/dev/sdd2        2720   10911    8192    4M ef EFI (FAT-12/16/32)

[root@dedanna dedanna]#

I figured it would be a good idea to umount the 2T external drive, and did. Then I ran:

Code: Select all

[root@dedanna dedanna]# df
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G  276K  3.9G   1% /dev/shm
tmpfs           3.9G  1.2M  3.9G   1% /run
/dev/sda6        32G  1.1G   31G   4% /
/dev/sda11       32G  6.1G   26G  19% /usr
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           3.9G   64K  3.9G   1% /tmp
/dev/sda7       298G  192K  298G   1% /media/win_d
/dev/sda2       256M   29M  228M  12% /boot/EFI
/dev/sda12      226G  1.4G  224G   1% /home
tmpfs           791M  8.0K  791M   1% /run/user/1001
tmpfs           791M  8.0K  791M   1% /run/user/1000
/dev/sdd1       3.7G  3.7G     0 100% /run/media/dedanna/Mageia-5-x86_64
[root@dedanna dedanna]#

The Mageia disk is the one I want to overwrite with the openSUSE iso, so I then ran:

Code: Select all

[root@dedanna dedanna]# md5sum /home/dedanna/Downloads/openSUSE-42.1-DVD-x86_64-Build0148-Media.iso
0ea083009c1f67b7cf51191539208075  /home/ded[root@dedanna dedanna]# dd if=/home/dedanna/Downloads/openSUSE-42.1-DVD-x86_64-Build0148-Media.iso of=/dev/sdd1

This because I copied it over from the 2T drive, and wanted to be sure the copy was good.
Then,

Code: Select all

[root@dedanna dedanna]# dd if=/home/dedanna/Downloads/openSUSE-42.1-DVD-x86_64-Build0148-Media.iso of=/dev/sdd1

Et, voila... :A

Code: Select all

[root@dedanna dedanna]#


Now, just ask me if I give a crap if I destroyed the Windows partition or the Mageia one. Just ask me. LOL.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Writing this down again. How to burn ISO to USB

Postby viking60 » 02 Dec 2015, 09:53

Ok
Do you give a crap if you destroy your Windows partition? :lol:
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Writing this down again. How to burn ISO to USB

Postby dedanna1029 » 02 Dec 2015, 15:02

Not really lol.

I pretty much have this down to a science anyway. ;)
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Writing this down again. How to burn ISO to USB

Postby viking60 » 16 Dec 2015, 12:38

dedanna1029 wrote:Since I couldn't find the old thread that showed how to do this, I searched it on google. How to burn an .iso file to USB:

As full root:

Code: Select all

dd if=/path/to/your/isofile of=/your/usb/disk



This works just fine but to speed the process up you can add bs=4k at the end.

Code: Select all

dd if=/path/to/your/isofile of=/your/usb/disk bs=4k


Rule to remember it is simply "4 kilos of bullshit" or more precisely "bullshit equals 4 kilos" :-D
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Writing this down again. How to burn ISO to USB

Postby dedanna1029 » 22 Dec 2015, 01:47

LOL! Thanks! :)
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Writing this down again. How to burn ISO to USB

Postby viking60 » 26 Mar 2019, 15:41

If you are scared to use dd to burn your iso's to USB (you should be :twisted: ) then there is a nice alternative.

Install Etcher and flash your ISO to USB with it. It makes the process easy.
Image

Image


It is in the Community repo in Manjaro and it should be in your repos too...

Just to repeat it - If you use dd to make your USB then this is the method:

Code: Select all

dd if=viking.iso of=/dev/sdx bs=4m
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Writing this down again. How to burn ISO to USB

Postby dedanna1029 » 02 Apr 2019, 13:43

Very cool, that Etcher.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Writing this down again. How to burn ISO to USB

Postby dedanna1029 » 06 Apr 2019, 02:38

And this time, I bookmarked this thread!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Writing this down again. How to burn ISO to USB

Postby dedanna1029 » 16 Jul 2019, 00:27

viking60 wrote:Just to repeat it - If you use dd to make your USB then this is the method:

Code: Select all

dd if=viking.iso of=/dev/sdx bs=4m

Earlier in the thread you said bs=4k. Here you have 4m. What gives?
Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Tips & Tricks”