I have mistakenly deleted my movies using root rm -rf /home/username/Videos/movies. How can i recover it, I have already installed extundelete and am using ext4 and its mounted at /dev/sda
Asked
Active
Viewed 272 times
1 Answers
0
Run a liveCD or USB and mount your partition with the filesystem as "readonly", supposing your Ubuntu partition is on sda2, you can execute this command
mkdir ~/recovery/
sudo mount -o ro /dev/sda2 ~/recovery/
And now recovery command for just a file:
sudo extundelete /dev/sda2 --restore-file /home/username/Videos/movies/movie.avi
To recovery a directory:
sudo extundelete /dev/sda2 --restore-directory /home/username/Videos/movies/
Or restore all:
sudo extundelete /dev/sda2 --restore-all
This should work. I
blkpws
- 1,242