Saturday, September 21, 2019

usb drive - Why isn't Ubuntu delivering USB images instead of ISO ones?



So far Ubuntu (and derivatives) has been delivering ISO images to be burned onto optical media.
Then there's a tool (usb-creator) to "burn" those ISOs onto USB drives.
I could be wrong, but I think that nowadays the majority of users don't use optical media to install Ubuntu (as well as other OSs) also because optical drives are not any more standard.



A "USB image" is usually "burnt" with a standard dd which is readily available within whatever OS you already have. While if you are not coming from Ubuntu it's likely your conversion tool is different from Ubuntu's and it won't work flawlessly.



What is the advantage for Ubuntu to keep the ISO instead of a "dd-able" image?




The current iso image is ddable and the images have been ddable for quite some time now as far as I know.



sudo dd if=./ubuntu.iso of=/dev/sdx bs=16M


Where ./ubuntu.iso is the path to the actual file and /dev/sdx is the target USB drive.



Alternatively, you can use cat instead of dd which is arguably faster like so:




sudo -i
cat ./ubuntu.iso > /dev/sdx
exit


Again, ./ubuntu.iso represents the full path to the actual iso file and /dev/sdx is the actual USB device.



Even if the image were not ddable, it would simply take a couple of syslinux commands to convert the image to ddable form.







Hypothetically, if the Ubuntu iso images were not ddable, you would just have to run the following commands:



sudo apt-get install syslinux syslinux-utils
isohybrid ./ubuntu.iso --entry 4 --type 0x1c
dd if=./ubuntu.iso of=/dev/sdx bs=16M


Again, where ./ubuntu.iso is the path to the actual iso file and /dev/sdx is the actual USB device.




source


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...