I used dd to write the image to my flash drive (64M image). Real capacity of USB is 2G Works great. But when I tried to write Xubuntu img on it. There is no free space. I already tried fdisk, parted and others, but there is no result.
Please, help me. What may I do to recover USB capacity?
ps I can use only cli
That's right; when you use dd to image a USB drive, the source file is all you get. You will need to use fdisk or parted to delete the filesystem on the USB (erasing what you put there before) then create a FAT or FAT32 partition to make all the space usable.
Illustrations of how to use fdisk in general are shown here; examples of fdisk and parted are shown here.