Create Smaller USB Flash Drive Image?
OK, I have a bootable 2GB USB flash drive. It has one partition that is around 100M and the rest is free space.
I wanted to create an image of the flash drive to use with memdisk. So, I used dd. However, dd copies the entire flash drive, even the free space.
What I want to do is extract the MBR/bootrecord and the first partition into a disk image. Or, in simpler terms - extract everything but the free space. Since the image file is the same size of my USB flash drive, I can't fit it on my flash drive, so I need to cut off all that unneeded free space.
I tried using Qemu-img to create a raw image of the size I need and then formatting it right in FreeDOS from Qemu and copying over the files, but the image doesn't seem to want to boot (at least in Qemu).
Last edited by Githlar; 09-24-2007 at 06:31 PM.