TSK_RECOVER(1)

πŸ“¦
version 4.15.0 Β· 2 versions
, in arch rolling, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– tsk_recover β€” the TSK_RECOVER(1) glow-up πŸ’–

okay bestie, buckle up, because we're about to talk about tsk_recover from the General Commands Manual, section 1, and honestly? it's giving file rescue main character energy. ✨


✨ NAME ✨

tsk_recover β€” export files from an image into a local directory 🫢


🌸 SYNOPSIS 🌸

tsk_recover [-vVae] [ -f fstype ] [ -i imgtype ] [ -b dev_sector_size ]
[ -o sector_offset ] [ -d dir_inum ] image [images] output_dir

πŸ’… DESCRIPTION πŸ’…

so like, tsk_recover recovers files into the output_dir from the image. that's the whole vibe. πŸŽ€

and here's the little plot twist: by default it recovers only unallocated files. yep, only the deleted/ghost ones. if you want everything, you gotta use flags. no cap. πŸ‘‘

The arguments are as follows:

  • -v β€” verbose output to stderr πŸ—£οΈ (she's chatty, she tells you things)
  • -V β€” print version ⭐ (identity check, love that for her)
  • -a β€” recover allocated files only 🟒
  • -e β€” recover all files (allocated and unallocated) πŸ”₯ the full scoop, the whole buffet
  • -f fstype β€” specify the file system type. use -f list to list the supported file system types. if it's not given, autodetection methods are used πŸ” (she'll figure it out herself, she's smart)
  • -i imgtype β€” the format of the image file, such as raw. use -i list to list the supported types. if not given, autodetection methods are used πŸ¦‹
  • -b dev_sector_size β€” the size (in bytes) of the device sectors. if not given, autodetection methods are used πŸ“
  • -o sector_offset β€” sector offset for a volume to recover (recovers only that volume). if not given, will attempt to recover all volumes in the image and save them to different folders πŸ—‚οΈ (so many folders, so organized)
  • -d dir_inum β€” directory inum to recover from (must also specify a specific partition using -o or there must not be a volume system) ⚠️ like, you can't just wander in there without directions, bestie
  • image [images] β€” the disk or partition image to read, whose format is given with -i. multiple image file names can be given if the image is split into multiple segments. if only one image file is given, and its name is the first in a sequence (e.g., as indicated by ending in .001), subsequent image segments will be included automatically 🧩✨ (it just knows)
  • output_dir β€” the directory in which to save recovered files 🎁

🌈 EXAMPLES 🌈

to recover only unallocated files from image.dd to the recovered directory:

# tsk_recover ./image.dd ./recovered

that's it. that's the whole ritual. iconic behavior fr fr πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Brian Carrier <carrier at sleuthkit dot org> πŸ’–

Send documentation updates to <doc-updates at sleuthkit dot org> πŸ“¬


reminder bestie: default = unallocated only. if you want the allocated files too, that's -e (or -a if you're being picky). don't come for me when you only get the deleted ones. πŸ’€

and that's the tea πŸ“ β€” this was TSK_RECOVER(1) from the General Commands Manual, section 1, signed off with all the love in the world. go recover something cute. mwah. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from