Make Live USB flash drive with dd

7,742

This is an older question and you already discovered that in your case, the issue was a defective flash drive. For other readers with a similar problem, let me add a few other potential causes and solutions.

  1. Use of a standard ISO

    The ISO format is a container for a disk image of an optical disk. Systems can boot from an optical drive without the need for MBR or EFI, so the ISO doesn't contain this. Using dd to write the ISO to a flash drive results in media that lacks a boot provision.

    Some distros provide an ISO-Hybrid. This contains a boot provision, so the dd result can be booted. There are a couple of limitations, though.

    • You may not be able to boot a UEFI system. It is possible to configure this (see below), but not every distro with an ISO-Hybrid may be configured this way.
    • Writing the ISO-Hybrid with dd also writes the filesystem, which is read-only. So this method of installation will work like a live DVD session, but you won't be able to use it as your working OS.
  2. Use of non-matching boot provision

    Your computer will be set to boot in either UEFI or legacy mode, so the flash drive needs to either match or be provisioned for both. If you use just dd, it will work only if it is an ISO-Hybrid and it matches the computer's boot basis or has been designed for dual mode. If you make the drive bootable with a third-party tool, that needs to prepare it to match the computer or be dual mode. A dual mode setup can be done manually if you are an experienced Linux user.

    Not every third party tool can prepare a flash drive for UEFI or dual mode booting. These abilities are likely to change over time. I'm aware that Rufus can do this at the current time and there are likely some others. Shreyas P V has an answer on Ask Ubuntu that shows how to use Rufus to set up dual mode booting: How to create a dual boot mode pen-drive which can support both UEFI Mode and Legacy BIOS mode?.

    If you are experienced enough to do this manually, you probably won't be searching for an answer to this question. However, even if just for educational purposes, this answer by grawity provides a good explanation: Is a hybrid Linux USB-Stick for UEFI & legacy BIOS possible?

Share:
7,742

Related videos on Youtube

if __name__ is None
Author by

if __name__ is None

Updated on September 18, 2022

Comments

  • if __name__ is None
    if __name__ is None over 1 year

    The last time I booted from a USB flash drive was back in 2006. Ever since, I keep failing at making live USB bootables.

    I tried getting Fedora 17 and 18, Ubuntu, and tons of other distros to boot from USB and never succeeded. I also tried different USB keys. Every single time, I get either kernel panic, or a bunch of meaningless errors when trying to boot.

    I am sick of buying CDs and DVDs to be able to boot stuff; I want to be able to use my USB drive.

    I've been using this basic command:

    sudo dd if=Downloads/myiso.iso of=/dev/myusb bs=1M && sync
    

    EDIT: The reason for my failed attempts seemed to be corrupt hardware. I bought a new memory stick and the issue is gone.

    • user88311
      user88311 over 11 years
      If you want a linux distro, drop by pendrive linux and make your life a whole lot easier, as for other os's, as long as the hardware doesn't change, install the OS to a hard drive, or the flash drive if you want (depends on OS) if windows, hard drive, dd if=/dev/sda of=/dev/sdb (or whatever the drive is listed as) bs=1M
    • if __name__ is None
      if __name__ is None over 11 years
      I don't want to install, I just want live usb of fedora.
    • if __name__ is None
      if __name__ is None over 11 years
      look, my problem is that DD fails to make anything useful every single time. And yet, any tutorial on how to make bootable usb live medium is using dd.
    • user88311
      user88311 over 11 years
      If that's the case, just google pendrivelinux, they have the best tools for making bootable USB.
    • if __name__ is None
      if __name__ is None over 11 years
      I went to pendriveLINUX and they offer me some windows program? Am I retarded or what is this?
    • user88311
      user88311 over 11 years
      There is software for all OS's built specifically for making bootable USB drives, pendrivelinux host a index of all of them and the best ones to use, less then 15 minutes are you're set.
    • if __name__ is None
      if __name__ is None over 11 years
      pendrive linux seems to be WINDOWS software, its useless to me.
    • fixer1234
      fixer1234 over 7 years
      @JanNetherdrake, this is a really old post that you updated back in 2013 with your fix. It got bumped by the community bot after that and got additional answers. It's had over 3,600 views, so a lot of people have found the thread useful. Consider moving your edit to an actual answer, which you can then accept. That will close the loop, and will also allow the answer to be indexed so people can more easily find your solution. Thanks.
  • CharlieRB
    CharlieRB about 8 years
    Welcome to Super User. A common mistake new users make is to answer without details of how to actually resolves the issue. Answers should be detailed and include references, as needed. Please take a few minutes to edit your answer to include details of why your answer is valid. If you need some help, read How do I write a good answer?.
  • DavidPostill
    DavidPostill about 8 years
    Welcome to Super User! While this may answer the question, it would be a better answer if you could provide some explanation why it does so.