View Full Version : Need to make ISO of Live USB Partition
15th December 2009, 04:05 AM
I created a FC12 Live USB and it works great. I created it with 1 Gb of persistent storage and I've made all the changes that I need to make and it is operating as advertised. Now, I'm trying to make an ISO image of all my changes so that I can then later use it to create a duplicate live USB stick so that I don't have to go through all of my changes again. However, I'm having trouble making an ISO of the FC12 partition on my USB stick. Any ideas? Thanks in advance.
15th December 2009, 04:38 AM
To find the device of your flash drive plug it in and type at the prompt:
Now unmount your flash drive
Then to back it up:
dd if=/dev/name-of-device of=/home/username/flash-backup.img
To Restore the image:
dd if=/home/username/flash-backup.img of=/dev/name-of-device
15th December 2009, 05:46 AM
Thank you for the quick reply Johnny. I guess the only unfortunate thing is that dd creates an image the same size as my usb drive rather than just imaging the contents of the usb partition.
15th December 2009, 07:58 AM
To save space, you can compress data produced by dd with gzip, e.g.:
dd if=/dev/your-flash-drive | gzip -c > /home/username/image.img
You can restore your disk with:
gunzip -c /home/username/image.img.gz | dd of=/dev/your-flash-drive
Unfortunate about the space.
DD should accurately capture the bit state of an unmounted drive. Best not to dd a live filesystem as it can corrupt files since the program has no understanding of the file-system activity that may be going on, and makes no attempt to mitigate it. If a write is partially underway, you will get a partial write.
How big is u flash drive?
---------- Post added at 01:58 PM CST ---------- Previous post was at 12:48 PM CST ----------
Partimage backs up data only.
yum install partimage
see here http://www.psychocats.net/ubuntu/partimage for how to
or try clonzilla
Golden Glades Photos
- Ilorin Photos on Instagram
- Tasgaon Travel Photos
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.