Fill unused space with zero-bytes
On a Linux box you can use dd dd if=/dev/zero of=/zero.bit bs=20971520 # bs=20m rm /zero.bit
On a Linux box you can use dd dd if=/dev/zero of=/zero.bit bs=20971520 # bs=20m rm /zero.bit
Prepare a new disk/partition. Depending on the partition type it may be necessary to clone the functional disk which can be done with ddrescue. After the cloning you should replace the UUID of the new disk as it is and exact copy of the … Continued
If ddrescue is not installed then start with installing the GNU ddrescue program. On Ubuntu you need to enable the Universe Software Repository. sudo apt-get install gddrescue Make sure you specify the source disk first and then the target disk. The -v option … Continued
Make a new uuid uuidgen Replace n with the number of the partition tune2fs /dev/sdan -U uuid_generated_by_uuidgen Check the new uuid with vol_id /dev/sdan use xargs to make that a one liner uuidgen | xargs tune2fs /dev/sdan -U ; vol_id /dev/sdan