fx disk-extract-serial-log

Extract disk image from serial logs.


When filesystems are corrupted, it may happen that we lose abiility to ssh into the system to debug. In such cases, we may want access to filesystem metadata to debug the problem. A board or product may write filesystem metadata to serial. This script helps to identify and extract metadata written to serial. Since scraping logs is prone to error, this script may fail if format of log changes. For reference, |logs| under function test() contains a real example log with which the script works. There are multiple ways to get serial log including `fx serial`. The output of serial log should be stored in input file. usage: fx disk-extract-serial-log --input FILE --output FILE --input Extract disk image from serial logs. --output Path where extracted image will be created.

disk-extract-serial-log source code