[Tails-dev] Filling remaining space on DVDR from /dev/random

Üzenet törlése

Válasz az üzenetre
Szerző: Anonymous
Dátum:  
Címzett: tails-dev
Tárgy: [Tails-dev] Filling remaining space on DVDR from /dev/random
Hello my good friends,

I would like to fill remaining space on DVDR from /dev/random
after I have burned the Tails 2.4 ISO.

How would I do this? Can you verify the following instructions
as the correct method, please?

###

"When creating the CD-R image, also remember to use /dev/random to fill the remaining CD-R space so that any malware trying to hide inside the CD-R (assuming you create the CD-R image from a more secure environment without being infected in the first place) when mounting the CD-R on a public computer."

How is this accomplished?

###

After writing the ISO to the CD-R, query the CD-R for the amount of disk space and then make a file with the same size as the remaining disk space and then pipe /dev/random output into that file.

To find out CD-R space after copying Tails onto CD-R:
fdisk -l /dev/cdrom

Fill up the CD-R with random stuff:
dd if=/dev/random of=/dev/cdrom/ bs=2048 count=

Open the CD-R and it indicate it has no more free space (by some file manager or fdisk again).

You may want to SHA-256 hash the CD-R content, write down the hash on a paper and keep in your wallet in case you need to verify the CD-R as your Tails installation.

To get the SHA-256 hash do:
sha256sum /dev/cdrom

@ https://www.schneier.com/blog/archives/2016/06/friday_squid_bl_528.html#c6725819