![]() ![]() The files for all user accounts are in the “Home” directory. We’re looking for files that were owned by dave. Press the right arrow or Enter to enter a directory, and the left arrow or Esc to exit a directory. Use the up and down arrows or the PgUp and PgDn keys to navigate the list of files and directories. Select the partition your files were on, use the left and right arrow keys to select “List,” and then press Enter. We only have one Linux partition on our hard drive, but you might have more. The files we’re looking for are in the Linux filesystem partition. The partition selection menu will appear. In the function menu that appears, highlight “Advanced,” and then press Enter. Unless you have a good reason not to, highlight the type of partition that’s autodetected, and then press Enter. It presents a menu of options, along with the type of partition it’s autodetected at the bottom. Testdisk also needs to know the partition type. We then used the right arrow to select “Proceed,” and then pressed Enter. There’s only one physical hard drive in this test computer, so we used the down arrow to highlight the “/dev/sda” option. They’re read-only, so you shouldn’t have managed to delete anything from these file systems. There’ll be one of these for each application you’ve installed from a snap. It lists the hard drives it can find, as well as the squashfs “/dev/loop” files. When you make your selection, testdisk asks which hard drive holds the file system on which you want to work. ![]() It will be created in the directory from which you started testdisk. You can just press Enter to accept the highlighted option and create a new log file. It doesn’t matter which option you choose it won’t affect the way testdisk operates. It can create a new log file, use an existing one, or not log anything at all. The first question testdisk asks is about logging. We have to use sudo with testdisk, so we type the following: We type the following to switch to the new directory and start testdisk from there: We type the following to create a directory called “restored” for our restored files: To keep things neat, it’s best to create a directory for restored files. You use the arrow keys to navigate and Enter to make a selection. To install testdisk on Ubuntu, use this command:Īlthough it runs in a terminal window, testdisk does have a rudimentary interface. RELATED: Everything You Ever Wanted to Know About inodes on Linux Installing testdisk It’s easy to use and doesn’t require detailed, low-level knowledge of the filesystem. Plus, if it’s a file you just created, it likely hasn’t yet been backed up, so those won’t help you, either. You don’t have time to get down and dirty with sector editors and other utilities. It’s always when you need that file, and you need it now. Usually, when you delete a file by mistake, it’s at the worst possible moment. ![]()
0 Comments
Leave a Reply. |