[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

best way to backup USB stick (2)


So I got a script that backs up the USB stick to a file and restores a (larger) USB stick from that file all using dd. It is here:


the relevant parts are the backup:

dd conv=notrunc,noerror bs=4096 if=$usbDrive | gzip > $backupFilename

and the restore:

gzip -dc $backupFilename | dd of=$usbDrive

Makes perfect copy AFAICT, but it does not boot and the original USB stick does. Completes w/o errors.

Can any dd expert tell me what I am doing wrong?


Reply to: