I have an Ubuntu 14.04 Live USB (32 GB).
- Is it possible to create a bootable .iso file from the Live USB ?
how can I create a bootable ISO?
I have an Ubuntu 14.04 Live USB (32 GB).
how can I create a bootable ISO?
It should be enough to just cat
the device. If your USB is, for example, /dev/sdb
, you can do:
cat /dev/sdb > foo.img
to restore the image to a USB disk, do:
cat foo.img > /dev/sdb
Note that this approach will create an image file as large as the drive itself, even if the drive is almost empty. If the drive is not 100% full and you only want an iso of the used space, use genisoimage
(install it with apt install genisoimage
) instead:
genisoimage -o foo.iso /path/to/usb/mount/point
.iso
file then be 8GB in size with much blank space in it or will it only eat up as much as necessary to hold the data? I'm referring to both the cat
and the genisoimage
methods.
cat
approach will indeed make a file as large as the device, irrespective of how much data you have. The geniso
will make a file only as big as the used space of the device. Thanks, answer edited.
I found a tool called Pinguy Builder which creates .iso
from within the operating system.
Pinguy Builder will create an installable ISO of your current system.
You can burn this ISO to an USB drive or write it directly to a DVD.
The DVD/USB is bootable and so can then be booted from any PC.
Depending on what option you choose you can determine what type of ISO will be created.
If you pick “Dist”, it backups the whole system but excludes your home folder.
If you pick “Backup”, it backups the system and will include your home folder.
References :
http://sourceforge.net/projects/pinguy-os/files/ISO_Builder/
At this date, your tools for creating a bootable ISO in Linux include Systemback, Clonezilla, Distroshare, and possibly a few paid alternatives that I have not tried (e.g., TeraByte, PowerISO). I am still hoping to find a way to do it with dd.
There are many detailed tutorials for the ISO process in Systemback and Clonezilla. I have found Systemback much more user-friendly. It has been forked within the past year or two, and even the older version works for me on Ubuntu 21.04. But Clonezilla seems to be much more enduring and widely known. You may want to try a few different tools and see which works best for you, or at least view a few different tutorials.