You are not logged in.
Other distributions require quite a bit if prep in order to create a bootable USB from the iso image.
How is it that the arch iso can be directly written to the USB drive with dd?
Offline
Would "it was designed to behave that way" be a sufficient answer?
Offline
Other distros can do that too. That prep work is optional, allowing you to continue to use the stick for storing other data, while the dd method creates a read-only device that's the size of the iso image instead of the stick's actual size. Another difference is that the other methods preserve the data that was already on the stick, while dd erases it. If you don't believe me, try it. I know at least Ubuntu and Fedora work by simply dd'ing their image.
Arch does this by using isohybrid from syslinux. Other distros might use that or some other method that does something similar.
Fun fact, on UEFI machines you don't even need dd. You can loop mount the image and simply copy its content to the stick. That's because UEFI will search for EFI/Boot/bootx86.efi on the stick and run that, no need to mess with boot sectors and other stuff that's required for BIOS booting.
Last edited by Gusar (2015-07-14 21:56:18)
Offline
Fun fact, on UEFI machines you don't even need dd. You can loop mount the image and simply copy its content to the stick.
Fun fact number 2 -- `cp` works with all isohybrid images whether UEFI or not and you don't even need to mount the image:
# cp example.iso /dev/sdX
# sync![]()
Jin, Jîyan, Azadî
Offline
I use NetBSD rawrite if I don't care what else is on the flash drive. I use Yumi if I want a FAT32 flash drive that I can use for other things.
Offline
Fun fact number 2 -- `cp` works with all isohybrid images whether UEFI or not and you don't even need to mount the image:
# cp example.iso /dev/sdX # sync
Won't this erase the current content on the stick, like with dd? Copying the loop-mounted files, the data on the stick remains intact.
Offline
I do it as instructed in the Debian manual.
# echo arch.iso > /dev/sdX Offline
I do it as instructed in the Debian manual.
# echo arch.iso > /dev/sdX
This won't work with sudo, though.
echo arch.iso > sudo tee /dev/sdX > /dev/nullEDIT: And echo won't exactly spit out the content of a file, so...
echo "$(<filename)" | sudo tee /dev/sdXLast edited by Awebb (2015-07-15 09:46:02)
Offline
I do it as instructed in the Debian manual.
# echo arch.iso > /dev/sdX
$ echo arch.iso
arch.isoThat'd be true magic, booting on a single line of text. (Not that it would work in the first place, as outlined above. You were looking for a cat instead of an echo.)
Last edited by Alad (2015-07-15 09:55:55)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
OMG, I was referring to cat.
Offline
OMG, you were referring to cat? ![]()
The primary reason that this works with archlinux is, of course, that Allan hasn't gotten around to it yet.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Won't this erase the current content on the stick, like with dd?
Yes, it will.
Jin, Jîyan, Azadî
Offline
Fun fact, on UEFI machines you don't even need dd. You can loop mount the image and simply copy its content to the stick. That's because UEFI will search for EFI/Boot/bootx86.efi on the stick and run that, no need to mess with boot sectors and other stuff that's required for BIOS booting.
I might be doing something wrong, but the above procedure does not work for me. If I mount the iso file and copy its content, i.e. directories "arch EFI isolinux loader", to a (FAT formatted) flashdrive, all I get upon (efi) reboot from the flash is a menu with two items: "EFI Default Loader" and "Reboot Into Firmware". The first runs the loader already installed on the system, the second opens up the efi-interface for configuring the MB.
So neither of them boot from the flashdrive.
This is straying a bit from the original topic, but anybody has a clue what could be wrong? I'm otherwise able to boot e.g. grub in efi mode (when it is on the flash). To be able to prepare an efi bootable flashdrive just from the arch iso would be nice.
Last edited by renergy (2015-07-18 19:04:03)
Offline