LV='/dev/mapper/plex--new-plex--new' BASE='/plexmediaserver/Library/Application Support/Plex Media Server' { for path in \ "$BASE/Plug-in Support/Data" \ "$BASE/Plug-in Support/Metadata Combination" \ "$BASE/Scanners" do printf '\n========== %s ==========\n' "$path" DEBUGFS_PAGER=cat debugfs -c \ -R "ls -l \"$path\"" \ "$LV" 2>&1 done for inode in 249299786 249299774 do printf '\n========== INODE %s ==========\n' "$inode" DEBUGFS_PAGER=cat debugfs -c \ -R "stat <$inode>" \ "$LV" 2>&1 done } | tee /mnt/recovery/plex-final-inspection.txt