

If the current folder has other files in it, you may not want to change their owner to ubuntu. To do this, enter the following in the terminal window: We want these three files to be owned by ubuntu, not root. We can verify this by typing the following in our terminal window: That’s because the ntfsundelete program saves the files as the “root” user, not the “ubuntu” user. However, Ubuntu lets us know visually that we can’t use these files yet. All three of our recoverable files are now recovered. This recovers the file, along with an identifier that we don’t really care about. To undelete a file by its Inode, enter the following in the terminal: Think of this as the file’s unique identifier. We have one more file to undelete – our MPG. Of course, you can also put them on your flash drive or open Firefox and email them to yourself – the sky’s the limit! If you want to take those files and put them back in the NTFS hard drive, you will have to move them there after they are undeleted with ntfsundelete. Note that the ntfsundelete program does not make any changes to the original NTFS hard drive. By default, this is the home directory of the current user, though we are working in the Desktop folder. The two files are recovered from the NTFS hard drive and saved in the current working directory of the terminal. To quickly recover the two JPGs, we will use the * wildcard to recover all of the files that end with.
Ntfs undelete license key information install#
If you are in a different version of Ubuntu, or for some other reason get an error when trying to use ntfsundelete, you can install it by entering “sudo apt-get install ntfsprogs” in a terminal window. Note: ntfsundelete is immediately available in the Ubuntu 9.10 Live CD. Nevertheless, we have three files that we can recover – two JPGs and an MPG. Three of the four files that we originally deleted are showing up in this list, even though we shut down the computer right after deleting the four files – so even in ideal cases, your files may not be recoverable. The percentage in the third column tells us how much of that file can be recovered. The names of files that can recovered show up in the far right column. Now that you know the name Ubuntu has assigned to your hard drive, we’ll scan it to see what files we can uncover.Īnd hit enter. Alternatively, you can just try them all, though this can be time consuming for large hard drives. If your hard drives are of different size, then this information can help you track down the right device name to use. If you look at the second line of text in the screenshot above, it reads “Disk /dev/sda: 136.4 GB, …” This means that the hard drive that Ubuntu has named /dev/sda is 136.4 GB large. If you have more than one hard drive partition formatted as NTFS, then you may be able to identify the correct partition by the size.
