Detect SquashFS and I/O errors while Tails is running
Usually, when the USB stick or the DVD is buggy or has faulty hardware, Tails starts to respond in strange ways: application crashes, Tails not starting at all, etc.
When this happens the kernel issues messages like the
following:
[ 55.816599] SQUASHFS error: xz_dec_run error, data probably corrupt
[ 55.816603] SQUASHFS error: squashfs_read_data failed to read block 0x7e05a9b
[ 55.816606] SQUASHFS error: Unable to read data cache entry [7e05a9b]
[ 55.816608] SQUASHFS error: Unable to read page, block 7e05a9b, size 6cac
We could monitor for these messages and display a warning notification in case it happens stating something like:
The system is having trouble reading Tails CD. Either the medium has defects or the optical drive is not able to read it properly.
Please try another CD or use Tails from a USB stick.
Ideally, the files needed by this application should be closer to the start of the CD and (maybe) locked into memory. That’s in the hope there is less chance it will be unreadable itself.
Documentation update
-
Update /doc/persistent_storage/rescue -
Rename as "recover from" -
Add instructions to open the Files browser as root?
Edited by sajolida