LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 08-03-2015, 11:06 AM   #1
CamTan
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Rep: Reputation: Disabled
want to recover window files


I have just loaded Mageia 5 and unfortunately it has removed the
windows partition.

Is there any way of recovering my windows files?

Any help will be appreciated.

I am a Newbie.
 
Old 08-03-2015, 11:08 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Yes, you can look for the tool named testdisk, if those files are still on the disk (you did not overwrite them)
 
Old 08-03-2015, 11:09 AM   #3
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You can recover the partitons with http://www.cgsecurity.org/wiki/TestDisk
 
Old 08-03-2015, 11:46 AM   #4
CamTan
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
The hard drive was not partitioned - someone kindly installed Mageia not knowing I had windows with ten years worth of files on it. So I need to retrieve those files. Surely they must be a solution to this...
Tried the wiki/TestDisk but that did not want to word - No permission to create..

Last edited by CamTan; 08-03-2015 at 11:53 AM. Reason: more info
 
Old 08-03-2015, 12:25 PM   #5
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Pretty much every hard drive is partitioned, and if Linux was installed, the layout certainly changed.

The good news is you can use something like photorec from the testdisk suite.

First, stop using the drive. Anything else you do from here on will be from a USB drive or other drive than that which was overwritten, or you risk making the situation worse.

If you can make a bitwise copy of the drive to an image file or another drive do so. Keep the original safe work off of the backup.

Boot up Linux on Windows on another drive, and install testdisk from the URL above if not already installed. Included in the package is a program, photorec.

If, if, if you're lucky, you can scan partitions with testdisk. Search for the appropriate file system, FAT or NTFS. If the partition(s) look right, allow testdisk to write the partition table. Under Linux, testdisk must be run as root to make changes.

If, if, if you're lucky, one of the backup MFTs (NTFS) will be intact. For FAT, I can't remember if there's a full backup. There's a backup MFT near the end of the drive and it quite possibly survived, depending on how much data was written to the drive. If it did, you're lucky. Try mounting the partition, see what's there.

Unless you got real lucky, you've still incurred some data loss however, and the actual files themselves may have been partially or fully overwritten. At simplest, it depends on how much data was written in the install and how big the drive is.

If the above didn't work, read on...

Now, if doing this in Linux you must run photorec as root.

I would elect to scan the entire disk as you don't know what partitioning changed.

Be warned, it's going to check file headers, and based on them more than likely restore sequential clusters. Some of your files are borked, and going to contain bits of information you don't want mixed in. Sorry, this is just how filesystems work.

More than likely your file names will be lost. You're going to have to sort through every file and rename.

Last edited by goumba; 08-03-2015 at 12:26 PM.
 
Old 08-11-2015, 05:19 AM   #6
Asddtyl
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
Windows files recovey ,you can get data back from "recycle bin".If not ,you need recovery app to help.

Last edited by Asddtyl; 08-12-2015 at 08:59 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to recover files if accidentally deleted files in mysql Majed17 Linux - Software 3 03-02-2013 09:34 AM
Recover files ceantuco Linux - Newbie 6 06-15-2011 01:42 PM
[SOLVED] Slackware 13.1 recover lilo after window$ installation? michaelinux Slackware 4 12-20-2010 03:27 PM
recover files after rm -rf ufmale Linux - Software 2 05-08-2009 03:37 PM
My external backup disk is corrupted by window registry how do I recover the data? cbn302 Linux - General 2 07-09-2006 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration