TESTED and Worked!

with acronis 2015 usb boot stick.

!!! BE CAREFUL YOU DON’T WANT TO OVERWRITE ANY INTERAL HARDDISK HERE!!!

 

find out where your USB Stick is-mounted…

you could use gparted which gives you a nice grafical view of where is what.

or you use:

lsblk 

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 111.8G  0 disk 
|-sda1   8:1    0 107.2G  0 part /
`-sda5   8:5    0   4.6G  0 part [SWAP]
sdb      8:16   1   7.3G  0 disk 
`-sdb1   8:17   1   7.3G  0 part /media/usb0
loop0    7:0    0   158M  1 loop /media/canoodle/pantheon_v2bmwmitw

or:

mount | grep usb

/dev/sdb1 on /media/usb0 type vfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro,user)

fill the device with zeros

should result in much smaler filesize of the backup (gzip compressed)

cd /media/usb0; # change to the dir your usb stick is mounted
cat /dev/zero > bigfile.txt; # if it does not stop by itself "device full" then cancel it with Ctrl+C
rm -rf bigfile.txt; # remove the big junk file again

monitor progress:

dd does not do this automatically if you want to monitor the progress use pv

 apt-get install pv; # install pv

backup:

umount /dev/sdb; # umount the usb stick
dd if=/dev/sdb | pv | gzip -c  > /where/compressed/image/is/stored/USBStickImage.img.gz; # backup content of usb stick (inkluding boot sector) to a file

now unplug your current usb stick and insert new one…

restore:

gunzip -c /where/compressed/image/is/stored/USBStickImage.img.gz | pv | dd of=/dev/sdb; # restore content and boot sector to a different usb stick

example:

dd if=/dev/sdb | pv | gzip -c > /mnt/DATA/SOFTWARE/ACRONIS/Acronis2015.bootstick.img.gz; # backup a 8GB Stick (resulted in 7.5GByte FILE!!! ARGH)
gunzip -c /mnt/DATA/SOFTWARE/ACRONIS/Acronis2015.bootstick.img.gz | pv | dd of=/dev/sdb; # restore it to a 32GByte stick (takes a while)

i actually canceded after 1.2GBytes.... Strg+C but the stick works! :-D
admin