Write iso to bootable usb with dd

Forum Forums General Tips and Tricks Write iso to bootable usb with dd

  • This topic has 1 reply, 2 voices, and was last updated Jun 29-4:31 am by PDP-8.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26288
    Member
    ex_Koo

      First thing to do is found your usb drive with sudo fdisk -l

      As you see from the below picture my usb is sdc (only use the root of usb not sdc1 2).

      [/url]

      Find where where your iso is stored say it is my Download folder.

      The command would be sudo dd if=/home/koo/Downloads/antiX.iso of=/dev/sdc (press enter)

      After you press enter then enter your password the usb will be formatted then the iso is written this will take a while.

      You should now have a bootable install on your usb drive..

      #38199
      Member
      PDP-8
        Helpful
        Up
        0
        ::

        Nice. Maybe investigate the use of other flags to those commands to ensure a speedy and accurate dd. Progress bars etc are nice.

        The only thing I’d say if one is doing this with a simplistic commandline is to be sure and run sync afterwards.

        Historical note: The use of IF= and OF= is a really old hold-over from the 1960’s IBM OS/360 mainframe days and it’s JCL job control language. Yet we still use it today with a definitely un-unixy syntax. 🙂

        Rewritten for unix – and although at first it looks scary, is to just use redirection, first with the IF being substituted with < … and the OF being substituted by the > redirection.

        Something like this:

        dd < /downloads/antiX.iso > /dev/sda [flags]

        If we all started using dd this way, Doug McIlroy would sleep better at night. 🙂

        Sorry – didn’t mean to geek out on you in particular. For the longest time, I always just assumed one had to do dd’s with IF and OF, not realizing that it doesn’t make the Unix gods happy. 🙂

        • This reply was modified 2 years, 10 months ago by PDP-8.
        • This reply was modified 2 years, 10 months ago by PDP-8.
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.