04-26-2022, 03:42 PM
(01-20-2022, 04:41 PM)jiyong Wrote: Depends on how thorough/paranoid you want to do it.
You can flash it again and fill up the remaining space with random files.
You can use videos from Blender (copyright free) and keep copying them until your drive is (close to) full.
But it is better to leave several MB free, as you might run into problems with log files.
https://4kmedia.org/big-buck-bunny-4k-demo/
Or you can boot from a micro SD card and format the eMMC (not a quick format) and flash the eMMC again.
And when you feel like it, you can fill up the remaining space with random files.
In ultimate paranoid mode, you sell it without the eMMC.
Quick and dirty, but more than effective enough:
Log in as root or at prompt: su- followed by root password when demanded.
You are now superuser and in /root directory
Now enter at prompt# dd if=/dev/urandom of=/home bs=1M <enter>
The entire /home directory including all files and directory strucftures, and, incidentally,all unused space on the partition which houses /home will be overwritten with random characters. Totally nuked.
while(!(succeed=try()));