Get to a root shell through Grub boot > Advanced options > Install ext4magic: sudo apt-get install ext4magic Open a terminal and make a copy of the filesystem journal: sudo debugfs -R "dump /opt/sda6.journal" /dev/sda6 Recovering deleted files in Ubuntu with ext4 filesystemĭescribes how one user recovered his deleted files: The disk shows now >300 GB of free memory, so I assume there is not an extra solution as simple as change the directory permissions back to "drwxr-xr-x", because those files and subdirectories - that memory space to be precise - has been freed, but still, Is there any alternative or possible solution to try to recover/restore most of the files and their structure? Indeed, I've found among them some important PDF files which I've searched, but since files names, structure and attributes are lost, I believe it's impossible to find and restore the 95% of sub-directories and files in a reliable way. A couple of new files were added afterwards before I finished the process when realised something wrong was happening.įirst thing I did was to make an image of the disk, which I've processed with TestDisk (deep search) with no success since it doesn't recognize the directory as such, I guess it just see it as a file, not a directory, because I simply can't open it as I can with any other directory.Īfterwards, I've used Photorec, and I've got near 500 directories with about 500 files each one, where I guess are all the lost files. While running a script which uses youtube-dl to download a complete channel, disk become full and base directory ("/Downloads"), was emptied and its file/directory permissions were set from "drwxr-xr-x" to "-rw-rw-r-" - which I don't really understand why.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |