User Tools

Site Tools


ubuntu:iso:create_iso_from_a_bootable_usb_drive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:iso:create_iso_from_a_bootable_usb_drive [2024/07/30 14:18] – created peterubuntu:iso:create_iso_from_a_bootable_usb_drive [2024/07/30 14:22] (current) peter
Line 3: Line 3:
 This enables us to efficiently preserve and share the contents of our bootable drives. This enables us to efficiently preserve and share the contents of our bootable drives.
  
-----+There are various method that can be used:
  
-===== Using dd ===== +  [[Ubuntu:ISO:Create ISO from Bootable USB Drive:Using dd]] 
- +  [[Ubuntu:ISO:Create ISO from Bootable USB Drive:Using mkisofs]]
-**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 Copy ==== +
- +
-Create a copy from the bootable USB to a file: +
- +
-<code bash> +
-sudo dd if=/dev/sdb1 of=myisofile bs=4M status=progress +
-</code> +
- +
-<WRAP info> +
-**NOTE:**  This creates raw binary copy of the USB in the current directory. +
- +
-These are optional, but do help: +
- +
-  * **bs=4M**:  Read and write up to 4M at a time; to make I/O faster. +
-  * **status=progress**:  Provide a progress report while dd runs. +
- +
-</WRAP>+
  
 ---- ----
  
-==== Convert the raw binary file to an ISO format ==== 
- 
-Install genisoimage: 
- 
-<code bash> 
-sudo apt install genisoimage 
-</code> 
- 
----- 
- 
-Convert the raw file to an ISO format: 
- 
-<code bash> 
-sudo genisoimage -o converted.iso -input-charset utf-8 -R -J myisofile 
-</code> 
- 
-<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. 
- 
-</WRAP> 
- 
----- 
- 
-==== 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  
-</code> 
- 
-returns: 
- 
-<code> 
-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 
-</code> 
- 
-<WRAP info> 
- 
-**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. 
- 
-</WRAP> 
  
ubuntu/iso/create_iso_from_a_bootable_usb_drive.1722349118.txt.gz · Last modified: 2024/07/30 14:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki