0

Some softwares offer both a .iso file and a .img file. The .iso is supposed to be burn to a CD/DVD, while the .img file is to be written directly on a USB disk. But other softwares only provide a .iso file. Then how to create a bootable USB from this .iso file?

Please note that I'm not asking about tools to do this. I'd like to know what's the difference between the .iso and the .img files, and why or why not writing the .iso file directly to a USB disk works. If directly writing an .iso file to a USB disk doesn't work, how can we create a flashable .img file from the .iso file?

Cyker
  • 421

2 Answers2

0

One of the reasons for providing different formats is for convenience and semantics. ISO files are typically images of discs while img files are typically images of a hard disk or partition, historically img file was for floppy disk's. IMG files if used with the right software can clone HDD's even down to the partition layout and whether or not a partition is bootable etc.

As for the difference between installing from usb or iso, its virtually the same. You could extract the files from the ISO, place them on the usb, setup the syslinux config file and all the necessary partitions such as the boot partition as well as the master boot record if booting from legacy bios or setting the boot partition as efi or esp depending on os being installed, windows calls it an esp partition if I recall. So you can manually create a bootable usb. However sotware like rufus streamlines the process, as well as providing an img file since it already contains an exact copy of the layout.

Frostalf
  • 543
-2

You can create your bootable usb drive from .iso with

(run as root)

dd if=[name of iso] of=/dev/sdb bs=1M
sync
eject /dev/sdb

Just pay attention of the /dev/sdb corresponding to your usb drive.

aurelien
  • 109