Terminal: create bootable USB from iso

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
1












How can I create a bootable USB stick from an iso image?



I thought dd should do the work, but so far I were unsuccesful.



This is what I've tried:



  1. umount /dev/sdx

  2. deleted every partition on sdx with Gparted

  3. dd if=/path/to/iso/some_file.iso of=/dev/sdx bs=1024K

The file is a bootable BIOS update utility, but since my laptop does not have a CD/DVD drive I want to deploy this image on a USB stick.



However, when I have a look at sdx in Gparted, it tells me that it's size is 0 and no partitions have been created, although dd claims it has written 26MB to /dev/sdx.



I also tried to create a FAT32 partition (full size) with Gparted and then let dd copy onto this partition: dd if=/path/to/iso/some_file.iso of=/dev/sdx1. Did not work either.



The USB Stick is ok, I can write and exchange data between my laptop and computer with it. (Actually it is the same USB stick that I used to install Manjaro on my laptop before)



What am I doing wrong?










share|improve this question

























    up vote
    4
    down vote

    favorite
    1












    How can I create a bootable USB stick from an iso image?



    I thought dd should do the work, but so far I were unsuccesful.



    This is what I've tried:



    1. umount /dev/sdx

    2. deleted every partition on sdx with Gparted

    3. dd if=/path/to/iso/some_file.iso of=/dev/sdx bs=1024K

    The file is a bootable BIOS update utility, but since my laptop does not have a CD/DVD drive I want to deploy this image on a USB stick.



    However, when I have a look at sdx in Gparted, it tells me that it's size is 0 and no partitions have been created, although dd claims it has written 26MB to /dev/sdx.



    I also tried to create a FAT32 partition (full size) with Gparted and then let dd copy onto this partition: dd if=/path/to/iso/some_file.iso of=/dev/sdx1. Did not work either.



    The USB Stick is ok, I can write and exchange data between my laptop and computer with it. (Actually it is the same USB stick that I used to install Manjaro on my laptop before)



    What am I doing wrong?










    share|improve this question























      up vote
      4
      down vote

      favorite
      1









      up vote
      4
      down vote

      favorite
      1






      1





      How can I create a bootable USB stick from an iso image?



      I thought dd should do the work, but so far I were unsuccesful.



      This is what I've tried:



      1. umount /dev/sdx

      2. deleted every partition on sdx with Gparted

      3. dd if=/path/to/iso/some_file.iso of=/dev/sdx bs=1024K

      The file is a bootable BIOS update utility, but since my laptop does not have a CD/DVD drive I want to deploy this image on a USB stick.



      However, when I have a look at sdx in Gparted, it tells me that it's size is 0 and no partitions have been created, although dd claims it has written 26MB to /dev/sdx.



      I also tried to create a FAT32 partition (full size) with Gparted and then let dd copy onto this partition: dd if=/path/to/iso/some_file.iso of=/dev/sdx1. Did not work either.



      The USB Stick is ok, I can write and exchange data between my laptop and computer with it. (Actually it is the same USB stick that I used to install Manjaro on my laptop before)



      What am I doing wrong?










      share|improve this question













      How can I create a bootable USB stick from an iso image?



      I thought dd should do the work, but so far I were unsuccesful.



      This is what I've tried:



      1. umount /dev/sdx

      2. deleted every partition on sdx with Gparted

      3. dd if=/path/to/iso/some_file.iso of=/dev/sdx bs=1024K

      The file is a bootable BIOS update utility, but since my laptop does not have a CD/DVD drive I want to deploy this image on a USB stick.



      However, when I have a look at sdx in Gparted, it tells me that it's size is 0 and no partitions have been created, although dd claims it has written 26MB to /dev/sdx.



      I also tried to create a FAT32 partition (full size) with Gparted and then let dd copy onto this partition: dd if=/path/to/iso/some_file.iso of=/dev/sdx1. Did not work either.



      The USB Stick is ok, I can write and exchange data between my laptop and computer with it. (Actually it is the same USB stick that I used to install Manjaro on my laptop before)



      What am I doing wrong?







      arch-linux dd iso bootable manjaro






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 21 '16 at 19:10









      daniel451

      4083717




      4083717




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Using gparted remove the existing partitions from your usb, and fix the msdos partition table (by going to the device menu and selecting "create partition Table"). Then, create a new partition fat32 by right clicking on the unallocated space and selecting new, making a primary FAT32 partition.



          Next step create your bootable usb:



          dd if=/path_to_iso_without_space.iso of=/dev/sdx
          sync


          You can add the bs=4M option to make it faster:



          dd bs=4M if=/path_to_iso.iso of=/dev/sdx


          Example: if your device is sdb1 you should type sdb



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





          share|improve this answer






















          • So the partition table should be msdos by default?
            – daniel451
            Apr 21 '16 at 20:16










          • Plus: is sync really needed? if so, why doing it in two steps? wouldn't dd if=/path_to_iso_without_space.iso of=/dev/sdx && sync be better?
            – daniel451
            Apr 21 '16 at 20:18






          • 1




            of cource && sync is better and you need to fix the Invalid MSDOS partition tables first.
            – GAD3R
            Apr 21 '16 at 20:24











          • Ok, so just for clarification: the partition table should be msdos, a fat32 partition (primary & full size) should be created on the usb stick and it should be unmounted before using dd?
            – daniel451
            Apr 21 '16 at 20:34











          • It is not mounted
            – GAD3R
            Apr 21 '16 at 20:38

















          up vote
          1
          down vote













          If it is a archlinux bootable iso, you don't have to do anything special.
          Just



          dd if=somefile.iso of=/dev/sdx


          where sdx is the block device like /dev/sda and not a partition like /dev/sda1.



          This is possible as the iso already contains all that is needed.
          If you set some partition table, it will simply has no effect, as it will be overriden by dd, as anything else on the target device.



          Edit: You sure have to unmout any partition on that device, as they will be overriden as described before.



          Edit2: The same applies to the manjaro image, according to their wiki.






          share|improve this answer



























            up vote
            1
            down vote













            If you don't know your USB device block file (such as /dev/sdb) and if you want to make sure you're not writing over one of your sata system drives, you can use the more secure bootiso utility.



            You can give your USB device name explicitly (will fail if it is not connected through USB):



            bootiso -d /dev/sdb /path_to_iso_without_space.iso


            Or let him find it for you:



            bootiso /path_to_iso_without_space.iso


            See it in action:








            share|improve this answer




















              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f278181%2fterminal-create-bootable-usb-from-iso%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              5
              down vote



              accepted










              Using gparted remove the existing partitions from your usb, and fix the msdos partition table (by going to the device menu and selecting "create partition Table"). Then, create a new partition fat32 by right clicking on the unallocated space and selecting new, making a primary FAT32 partition.



              Next step create your bootable usb:



              dd if=/path_to_iso_without_space.iso of=/dev/sdx
              sync


              You can add the bs=4M option to make it faster:



              dd bs=4M if=/path_to_iso.iso of=/dev/sdx


              Example: if your device is sdb1 you should type sdb



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





              share|improve this answer






















              • So the partition table should be msdos by default?
                – daniel451
                Apr 21 '16 at 20:16










              • Plus: is sync really needed? if so, why doing it in two steps? wouldn't dd if=/path_to_iso_without_space.iso of=/dev/sdx && sync be better?
                – daniel451
                Apr 21 '16 at 20:18






              • 1




                of cource && sync is better and you need to fix the Invalid MSDOS partition tables first.
                – GAD3R
                Apr 21 '16 at 20:24











              • Ok, so just for clarification: the partition table should be msdos, a fat32 partition (primary & full size) should be created on the usb stick and it should be unmounted before using dd?
                – daniel451
                Apr 21 '16 at 20:34











              • It is not mounted
                – GAD3R
                Apr 21 '16 at 20:38














              up vote
              5
              down vote



              accepted










              Using gparted remove the existing partitions from your usb, and fix the msdos partition table (by going to the device menu and selecting "create partition Table"). Then, create a new partition fat32 by right clicking on the unallocated space and selecting new, making a primary FAT32 partition.



              Next step create your bootable usb:



              dd if=/path_to_iso_without_space.iso of=/dev/sdx
              sync


              You can add the bs=4M option to make it faster:



              dd bs=4M if=/path_to_iso.iso of=/dev/sdx


              Example: if your device is sdb1 you should type sdb



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





              share|improve this answer






















              • So the partition table should be msdos by default?
                – daniel451
                Apr 21 '16 at 20:16










              • Plus: is sync really needed? if so, why doing it in two steps? wouldn't dd if=/path_to_iso_without_space.iso of=/dev/sdx && sync be better?
                – daniel451
                Apr 21 '16 at 20:18






              • 1




                of cource && sync is better and you need to fix the Invalid MSDOS partition tables first.
                – GAD3R
                Apr 21 '16 at 20:24











              • Ok, so just for clarification: the partition table should be msdos, a fat32 partition (primary & full size) should be created on the usb stick and it should be unmounted before using dd?
                – daniel451
                Apr 21 '16 at 20:34











              • It is not mounted
                – GAD3R
                Apr 21 '16 at 20:38












              up vote
              5
              down vote



              accepted







              up vote
              5
              down vote



              accepted






              Using gparted remove the existing partitions from your usb, and fix the msdos partition table (by going to the device menu and selecting "create partition Table"). Then, create a new partition fat32 by right clicking on the unallocated space and selecting new, making a primary FAT32 partition.



              Next step create your bootable usb:



              dd if=/path_to_iso_without_space.iso of=/dev/sdx
              sync


              You can add the bs=4M option to make it faster:



              dd bs=4M if=/path_to_iso.iso of=/dev/sdx


              Example: if your device is sdb1 you should type sdb



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





              share|improve this answer














              Using gparted remove the existing partitions from your usb, and fix the msdos partition table (by going to the device menu and selecting "create partition Table"). Then, create a new partition fat32 by right clicking on the unallocated space and selecting new, making a primary FAT32 partition.



              Next step create your bootable usb:



              dd if=/path_to_iso_without_space.iso of=/dev/sdx
              sync


              You can add the bs=4M option to make it faster:



              dd bs=4M if=/path_to_iso.iso of=/dev/sdx


              Example: if your device is sdb1 you should type sdb



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






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited 10 hours ago









              Jonathan Komar

              7731829




              7731829










              answered Apr 21 '16 at 19:47









              GAD3R

              24.2k1748102




              24.2k1748102











              • So the partition table should be msdos by default?
                – daniel451
                Apr 21 '16 at 20:16










              • Plus: is sync really needed? if so, why doing it in two steps? wouldn't dd if=/path_to_iso_without_space.iso of=/dev/sdx && sync be better?
                – daniel451
                Apr 21 '16 at 20:18






              • 1




                of cource && sync is better and you need to fix the Invalid MSDOS partition tables first.
                – GAD3R
                Apr 21 '16 at 20:24











              • Ok, so just for clarification: the partition table should be msdos, a fat32 partition (primary & full size) should be created on the usb stick and it should be unmounted before using dd?
                – daniel451
                Apr 21 '16 at 20:34











              • It is not mounted
                – GAD3R
                Apr 21 '16 at 20:38
















              • So the partition table should be msdos by default?
                – daniel451
                Apr 21 '16 at 20:16










              • Plus: is sync really needed? if so, why doing it in two steps? wouldn't dd if=/path_to_iso_without_space.iso of=/dev/sdx && sync be better?
                – daniel451
                Apr 21 '16 at 20:18






              • 1




                of cource && sync is better and you need to fix the Invalid MSDOS partition tables first.
                – GAD3R
                Apr 21 '16 at 20:24











              • Ok, so just for clarification: the partition table should be msdos, a fat32 partition (primary & full size) should be created on the usb stick and it should be unmounted before using dd?
                – daniel451
                Apr 21 '16 at 20:34











              • It is not mounted
                – GAD3R
                Apr 21 '16 at 20:38















              So the partition table should be msdos by default?
              – daniel451
              Apr 21 '16 at 20:16




              So the partition table should be msdos by default?
              – daniel451
              Apr 21 '16 at 20:16












              Plus: is sync really needed? if so, why doing it in two steps? wouldn't dd if=/path_to_iso_without_space.iso of=/dev/sdx && sync be better?
              – daniel451
              Apr 21 '16 at 20:18




              Plus: is sync really needed? if so, why doing it in two steps? wouldn't dd if=/path_to_iso_without_space.iso of=/dev/sdx && sync be better?
              – daniel451
              Apr 21 '16 at 20:18




              1




              1




              of cource && sync is better and you need to fix the Invalid MSDOS partition tables first.
              – GAD3R
              Apr 21 '16 at 20:24





              of cource && sync is better and you need to fix the Invalid MSDOS partition tables first.
              – GAD3R
              Apr 21 '16 at 20:24













              Ok, so just for clarification: the partition table should be msdos, a fat32 partition (primary & full size) should be created on the usb stick and it should be unmounted before using dd?
              – daniel451
              Apr 21 '16 at 20:34





              Ok, so just for clarification: the partition table should be msdos, a fat32 partition (primary & full size) should be created on the usb stick and it should be unmounted before using dd?
              – daniel451
              Apr 21 '16 at 20:34













              It is not mounted
              – GAD3R
              Apr 21 '16 at 20:38




              It is not mounted
              – GAD3R
              Apr 21 '16 at 20:38












              up vote
              1
              down vote













              If it is a archlinux bootable iso, you don't have to do anything special.
              Just



              dd if=somefile.iso of=/dev/sdx


              where sdx is the block device like /dev/sda and not a partition like /dev/sda1.



              This is possible as the iso already contains all that is needed.
              If you set some partition table, it will simply has no effect, as it will be overriden by dd, as anything else on the target device.



              Edit: You sure have to unmout any partition on that device, as they will be overriden as described before.



              Edit2: The same applies to the manjaro image, according to their wiki.






              share|improve this answer
























                up vote
                1
                down vote













                If it is a archlinux bootable iso, you don't have to do anything special.
                Just



                dd if=somefile.iso of=/dev/sdx


                where sdx is the block device like /dev/sda and not a partition like /dev/sda1.



                This is possible as the iso already contains all that is needed.
                If you set some partition table, it will simply has no effect, as it will be overriden by dd, as anything else on the target device.



                Edit: You sure have to unmout any partition on that device, as they will be overriden as described before.



                Edit2: The same applies to the manjaro image, according to their wiki.






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  If it is a archlinux bootable iso, you don't have to do anything special.
                  Just



                  dd if=somefile.iso of=/dev/sdx


                  where sdx is the block device like /dev/sda and not a partition like /dev/sda1.



                  This is possible as the iso already contains all that is needed.
                  If you set some partition table, it will simply has no effect, as it will be overriden by dd, as anything else on the target device.



                  Edit: You sure have to unmout any partition on that device, as they will be overriden as described before.



                  Edit2: The same applies to the manjaro image, according to their wiki.






                  share|improve this answer












                  If it is a archlinux bootable iso, you don't have to do anything special.
                  Just



                  dd if=somefile.iso of=/dev/sdx


                  where sdx is the block device like /dev/sda and not a partition like /dev/sda1.



                  This is possible as the iso already contains all that is needed.
                  If you set some partition table, it will simply has no effect, as it will be overriden by dd, as anything else on the target device.



                  Edit: You sure have to unmout any partition on that device, as they will be overriden as described before.



                  Edit2: The same applies to the manjaro image, according to their wiki.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 22 '16 at 6:10









                  bvolkmer

                  1747




                  1747




















                      up vote
                      1
                      down vote













                      If you don't know your USB device block file (such as /dev/sdb) and if you want to make sure you're not writing over one of your sata system drives, you can use the more secure bootiso utility.



                      You can give your USB device name explicitly (will fail if it is not connected through USB):



                      bootiso -d /dev/sdb /path_to_iso_without_space.iso


                      Or let him find it for you:



                      bootiso /path_to_iso_without_space.iso


                      See it in action:








                      share|improve this answer
























                        up vote
                        1
                        down vote













                        If you don't know your USB device block file (such as /dev/sdb) and if you want to make sure you're not writing over one of your sata system drives, you can use the more secure bootiso utility.



                        You can give your USB device name explicitly (will fail if it is not connected through USB):



                        bootiso -d /dev/sdb /path_to_iso_without_space.iso


                        Or let him find it for you:



                        bootiso /path_to_iso_without_space.iso


                        See it in action:








                        share|improve this answer






















                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          If you don't know your USB device block file (such as /dev/sdb) and if you want to make sure you're not writing over one of your sata system drives, you can use the more secure bootiso utility.



                          You can give your USB device name explicitly (will fail if it is not connected through USB):



                          bootiso -d /dev/sdb /path_to_iso_without_space.iso


                          Or let him find it for you:



                          bootiso /path_to_iso_without_space.iso


                          See it in action:








                          share|improve this answer












                          If you don't know your USB device block file (such as /dev/sdb) and if you want to make sure you're not writing over one of your sata system drives, you can use the more secure bootiso utility.



                          You can give your USB device name explicitly (will fail if it is not connected through USB):



                          bootiso -d /dev/sdb /path_to_iso_without_space.iso


                          Or let him find it for you:



                          bootiso /path_to_iso_without_space.iso


                          See it in action:









                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 10 at 0:35









                          Jules Randolph

                          1313




                          1313



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f278181%2fterminal-create-bootable-usb-from-iso%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              Peggy Mitchell

                              Palaiologos

                              The Forum (Inglewood, California)