37
18
Recently I wanted to create a bootable USB of Linux mint. I found that there was a lot of conflicting advice/experience about whether the 'dd' command could be used to create a bootable USB. I decided to download an ISO and try. While dd definitely put the image on the USB stick it was not bootable. So my question is what is the magic ingredient that will make this work or why has this approach persisted if it does not work?
This is the command I used,
dd if=/mint/iso/image of=/dev/sdb1 oflag=direct
You may have a system-on-a-stick that shall be used in an EFI boot system -- but your machine is configured to use "classical" boot. So seen with a Linux Mint USB stick. – David Tonhofer – 2016-08-08T16:12:24.830
Here is a simple/genius workaround for recalcitrant iso images (based on Ubuntu Live ISO): 1) Format stick so that there is a filesystem on (say) "/dev/sdX1" , 2) Mount stick as "/mnt/usb" for example, 3) Install grub2 on stick:
grub2-install --boot-directory /mnt/usb/boot/ /dev/sdX
, 4) Copy previously downloaded ISO image (for example "foolinux.iso") to stick:cp foolinux.iso /mnt/usb/
5) Create "/mnt/usb/boot/grub2/grub.cfg" file that boots linux from the ISO image present on the stick (cont) – David Tonhofer – 2016-08-08T18:40:33.460(cont from previous, using "¶" to indicate line breaks)
– David Tonhofer – 2016-08-08T18:42:38.877set timeout=10 ¶ set default=0 ¶ menuentry "Run Ubuntu Live ISO" { ¶ loopback loop /foolinux.iso ¶ linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=/foolinux.iso splash -- ¶ initrd (loop)/casper/initrd.lz ¶ }
... and that should work (tested onboot-repair-disk-64bit.iso
, picked up from this page@sawdust while you are stating that the answers posted are a "no go", this article (http://community.linuxmint.com/tutorial/view/744) indicates that this is the correct procedure.
– Dave G – 2012-04-02T02:03:30.5001@DaveG - Interesting, apparently 'dd' is a usable command iff the source file is a "Hybrid ISO image". But it is not a generic procedure for every iso. Perhaps that distinction is the reason for the conflicting advice jdowner encountered. – sawdust – 2012-04-02T05:26:44.060
@sawdust thanks for the additional clarification on that. – Dave G – 2012-04-02T07:47:06.910