I created a bootable thumb drive for my windows installation and Ubuntu live CD, it also contains some windows exe (applications).
IMO in order to prevent against virus I came to the idea that I had better fill up all the space in the thumb drive. I use the command below on Ubuntu
yes > AAA.dummy
To create a dummy file and it stops when the drive has been filled up, and as I can see obviously see in Nautilus (Ubuntu file manager) it shows the drive is completely filled up and Windows 10 explorer shows 0 byte free on the drive.
Good it looks like what I want but trying to see if a file can still be written to drive I simply did
touch temp.text
The file get created, I was confused but I feel probably since the size of the created file is just 0 byte it doesn't matter but
echo "it doesn't work" > temp.txt
also works, the file is written and it shows in the drive. How Come?
If the space is 0 byte how is something still written to it? I ain't even save from Virus!. Tried same stuff on my Android device with a Terminal emulator, I filled up the space on removable sdcard but commands like touch still create empty file although this time around echo > *.txt doesn't work
EDIT:
Sorry I didn't add that, the file system is NFTS
My main concern is a virus can still write to the drive?