![Forrest logo](/images/logo.png)
extundelete:tldr:3878e
extundelete: Restore all deleted files inside partition N on device X.
$ sudo extundelete ${-dev-sdXN} --restore-all
try on your machine
This command is used to restore all deleted files on a specific partition (denoted by /dev/sdXN
) using the extundelete
tool. Here's a breakdown of each component:
sudo
: It is a command used in Linux to run subsequent commands with administrative/root privileges. You need administrative privileges to access and recover files on the system.extundelete
: It is a utility designed to recover files from an ext3 or ext4 file system. It can restore deleted files if the file system blocks containing the file data have not been overwritten by other files.${-dev-sdXN}
: You need to replaceX
with the appropriate disk identifier andN
with the desired partition number. This specifies the device and partition from which the files should be recovered. For example,/dev/sda1
refers to the first partition on the first SCSI/SATA/USB drive.--restore-all
: This option instructsextundelete
to attempt to restore all recovered files rather than prompting for each file individually. It automates the process and can save time if you want to recover all deleted files.
Overall, this command with the appropriate device and partition information will initiate the recovery of all deleted files on a specific partition. Note that it is crucial not to write any new data to the target device or partition before attempting recovery, as it may overwrite the deleted files and hamper the chances of successful retrieval.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.