r/Ubuntu • u/MarkTupper9 • 8h ago
How do you know your files/documents aren't being written to the bootable USB?
/r/tails/comments/1x65ewk/how_do_you_know_your_filesdocuments_arent_being/1
u/guiverc 6h ago
It'll depend somewhat on how you wrote the ISO, as some software allows the ISO/image to be reformatted and thus written differently to the design.
The designed ISO 9660 file is READ ONLY, so cannot be written to; changes are made via COPY ON WRITE (COW) with the COPY existing in RAM; so that's were writes will occur; as any attempted to overwrite a correct image will just result in error (UNABLE TO WRITE!!! AS READ ONLY)
You can change this default behavior by writing the ISO/image using certain software that changes it, allowing persistence etc - but that's all done by the user anyway; and I'd expect the user would know they've reformatted the ISO/image and thus changed default behavior (besides that; most reformats write the persistence in a different partition on same thumb-drive anyway; so the ISO/IMAGE remains read-only anyway - but your ISO writing software will decide this!!)
I know this cannot happen normally as I'm the person who writes me ISOs to thumb-drive, and I'm using documented procedures that make it impossible. On the rare occasions when I'm reformatting an ISO during it's write to thumb-drive; again I'm aware of it. I just know as I'm the one who controls it.
1
u/guiverc 6h ago
If I picked up a thumb-drive and couldn't remember how it was written/created; I could always jump to terminal (assuming I'd booted it) and pretty quickly detect what its doing anyway; is it a READ ONLY image (how mounted is clue; type of file-system a huge clue; *squashfs* for example and not ext4), is it an installed system (writing to thumb-drive), mixture of *squashfs*/RO & persistence mount etc...) or not
If I hadn't booted it, plugging it in and exploring what is written can be done anyway; though as ISO 9660 is a very broad format (with distros/OSes varying what they rely on, with differences over time anyway!) that maybe more involved, but still perfectly possible.
1
u/candy49997 8h ago
If you did not set up persistence, nothing is written to disk.