How to create an bootable .iso file from Ubuntu Live USB?

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?


Solution 1:

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

Solution 2:

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/

How to launch Pinguy Builder on Ubuntu?