UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently formatted my windows hard drive and installed Ubuntu over it. Unfortunately I had some very important files that got removed. I'm looking for a way to recover those files (ntfs) from linux (which got installed over windows). I did a search on the forums and Google/linux and I couldn't find any software that will restore ntfs files from Linux.
I am not sure, but I looked at Distrowatch's search option for recovery tools. There may be some tools there that will help you, I just don't know about whether or not they will work as you installed Ubuntu over it.
I'm not sure, either. But since you change the drive type, I would not place much hope in it. Hope you can, though. I know how it is to lose important files.
You probably should create a backup image of the harddrive. You will need to find a utility that can scan the entire image for the file even though the disk is now formatted differently. And this will only work if the files were written to areas of the drive that haven't been overwritten.
You could maybe search the drive of the image of the drive for the 'magic bytes' that indicate the beginning of the file, and then try to use dd to copy that portion out and save it on another partition.
The file command uses these magic numbers to analyse what a file is based on the content of the file and not the extension. There is a text database of these magic patterns in /usr/share/file/magic
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.