Forensic: ntfsundelete

From OnnoWiki
Revision as of 05:06, 3 November 2023 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Sumber: https://recoverit.wondershare.com/file-recovery/undelete-ntfs-linux.html


sudo apt install ntfs-3g


sudo ntfsundelete /dev/sdb1 --scan
sudo ntfsundelete /dev/sdb1 --undelete --inodes 39
sudo ntfsundelete /dev/sdb1 --undelete --inodes 39-42
sudo ntfsundelete /dev/sdb1 --undelete --truncate --match '*.jpg'
mkdir recovery
cd recovery
sudo ntfsundelete /dev/sdb1 --undelete --truncate --match '*.jpg'
sudo chmod -Rfv a+rw recovery/


Look for deleted files on /dev/hda1.

ntfsundelete /dev/hda1

Look for deleted documents on /dev/hda1.

ntfsundelete /dev/hda1 -s -m '*.doc'

Look for deleted files between 5000 and 6000000 bytes, with at least 90% of the data recoverable, on /dev/hda1.

ntfsundelete /dev/hda1 -S 5k-6m -p 90

Look for deleted files altered in the last two days

ntfsundelete /dev/hda1 -t 2d

Undelete inodes 2, 5 and 100 to 131 of device /dev/sda1

ntfsundelete /dev/sda1 -u -i 2,5,100-131

Undelete inode number 3689, call the file 'work.doc' and put it in the user's home directory.

ntfsundelete /dev/hda1 -u -i 3689 -o work.doc -d ~

Save MFT Records 3689 to 3690 to a file 'debug'

ntfsundelete /dev/hda1 -c 3689-3690 -o debug