dd is a powerful Linux tool for a wide range of disk-related tasks:
* creating disk images * copying data between devices * performing low-level operations on data
dd makes a bit-for-bit copy of the USB drive’s contents into a single ISO file.
Create a copy from the bootable USB to a file:
sudo dd if=/dev/sdb1 of=myisofile bs=4M status=progress
NOTE: This creates a raw binary copy of the USB in the current directory.
These are optional parameters, but do help:
Install genisoimage:
sudo apt install genisoimage
sudo genisoimage -o converted.iso -input-charset utf-8 -R -J myisofile
NOTE:
The output converted.iso will be in a standard ISO format and can be used for various purposes, including burning to optical media or distributing bootable images.
Perform a simple check to examine the ISO’s structure and extract information about its content.
sudo isoinfo -d -i converted.iso
returns:
CD-ROM is in ISO 9660 format System id: LINUX Volume id: CDROM ... Volume set size is: 1 Volume set sequence number is: 1 Logical block size is: 2048 Volume size is: 123456 Joliet with UCS level 3 found Rock Ridge signatures version 1 found
NOTE: isoinfo is a part of the genisoimage package:
The resulting output confirms that the converted.iso file is in the ISO format.
It provides details about its volume and file system attributes and support for extended file names and attributes.