ubuntu:iso:create_iso_from_a_bootable_usb_drive
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ubuntu:iso:create_iso_from_a_bootable_usb_drive [2024/07/30 14:21] – peter | ubuntu:iso:create_iso_from_a_bootable_usb_drive [2024/07/30 14:22] (current) – peter | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ---- | ---- | ||
| - | ===== Using dd ===== | ||
| - | |||
| - | **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 | ||
| - | |||
| - | We can also use dd for converting a bootable USB drive to an ISO file. It enables us to make a bit-for-bit copy of the USB drive’s contents into a single ISO file. | ||
| - | |||
| - | ==== Make a Copy ==== | ||
| - | |||
| - | Create a copy from the bootable USB to a file: | ||
| - | |||
| - | <code bash> | ||
| - | sudo dd if=/ | ||
| - | </ | ||
| - | |||
| - | <WRAP info> | ||
| - | **NOTE: | ||
| - | |||
| - | These are optional, but do help: | ||
| - | |||
| - | * **bs=4M**: | ||
| - | * **status=progress**: | ||
| - | |||
| - | </ | ||
| - | |||
| - | ---- | ||
| - | |||
| - | ==== Convert the raw binary file to an ISO format ==== | ||
| - | |||
| - | Install genisoimage: | ||
| - | |||
| - | <code bash> | ||
| - | sudo apt install genisoimage | ||
| - | </ | ||
| - | |||
| - | ---- | ||
| - | |||
| - | Convert the raw file to an ISO format: | ||
| - | |||
| - | <code bash> | ||
| - | sudo genisoimage -o converted.iso -input-charset utf-8 -R -J myisofile | ||
| - | </ | ||
| - | |||
| - | <WRAP info> | ||
| - | **NOTE: | ||
| - | |||
| - | * **-o**: converted.iso specifies the name of the output ISO file in proper ISO 9660 format. | ||
| - | * **-input-charset utf-8**: sets the character encoding for the ISO image. | ||
| - | * **-R**: generates the Rock Ridge extension for UNIX file attributes. | ||
| - | * **-J**: generates the Joliet extension for Windows file systems. | ||
| - | |||
| - | 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. | ||
| - | |||
| - | </ | ||
| - | |||
| - | ---- | ||
| - | |||
| - | ==== Verify the ISO Format ==== | ||
| - | |||
| - | Perform a simple check to examine the ISO’s structure and extract information about its content. | ||
| - | |||
| - | <code bash> | ||
| - | 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 | ||
| - | </ | ||
| - | |||
| - | <WRAP info> | ||
| - | |||
| - | **NOTE: | ||
| - | |||
| - | 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. | ||
| - | |||
| - | </ | ||
ubuntu/iso/create_iso_from_a_bootable_usb_drive.1722349302.txt.gz · Last modified: 2024/07/30 14:21 by peter
