LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 01-06-2013, 09:26 PM   #1
jp2code
LQ Newbie
 
Registered: Jan 2013
Location: Longview, TX [USA]
Posts: 2

Rep: Reputation: Disabled
How to get Windows data from hard drive tinkered with by Linux?


I was trying to get OpenELEC installed on a Compact Flash Card to try out Linux' XBMC on our Media PC.

I downloaded a version of OpenELEC specific to the architecture on the Media PC, and followed the directions.

Step 1 was to install the program to a USB drive. Done.

Step 2 was to boot to the USB drive, starting a small version of Linux that would allow me to format the Compact Flash Card to be a bootable OpenELEC OS with XBMC installed.

Unfortunately, our Media PC will not boot from a USB drive, so I took it to my desktop.

I put the USB drive in and the Compact Flash Card into my development PC, and booted up.

The Linux thing went to work, but appears to have tried to install something onto my primary Hard Drive instead of giving me the option to select the Compact Flash Card.

Note: The Linux thing never did format my primary Hard Drive like it was supposed to. I'm guessing because something was wrong with the architecture on my development PC.

Right now, I have the Hard Drive from my development PC pulled out and Windows 7 has loaded the drivers successfully, I just can't get it to open.

This is a 500 GB drive, no longer shows up in Windows Explorer, and I know NOTHING about Linux.

Is there some way to say, "Take the Linux note off and put me an NTFS note back in there?"

The Linux program never formatted the drive. It did all of its damage in about 15 seconds.

How can I salvage my data on this drive?

Screenshot of Device Manager in Windows 7: http://i.stack.imgur.com/nzmeR.png
 
Old 01-07-2013, 05:38 AM   #2
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
I you don't want to use Linux anyway.. you can use recover programs on windows to recover your data..
http://sourceforge.net/projects/kick...urce=directory
you may also try http://www.download.com
the keywords you need are "recover" and "deleted"
 
Old 01-07-2013, 05:39 AM   #3
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
I am a windows/Linux user so I can help u in both..just be patient..
 
Old 01-07-2013, 08:11 AM   #4
goumba
Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Wheezy (7.0), Jessie (future 8) and Sid (unstable)
Posts: 572
Blog Entries: 3

Rep: Reputation: 78
First off, if you can make a backup, or at least an image of that drive, do so.

It's hard to say from that screen shot if the partition flag was changed, or if the FS itself was damaged. Can you give what Linux' fdisk says for that drive? You want that partition's ID set to 7 (NTFS). It will look something like this (your start and end will be different):

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    12578894     6289416    7  HPFS/NTFS/exFAT
If that's good, NTFS stores a back up superblock - hopefully that was not damaged as well; and you may have to run CHKDSK on the partition. This is why I say have a backup of the drive: I have had CHKDSK fix a drive successfully in such cases, and in other similar cases have had CHKDSK remove everything.

Last edited by goumba; 01-07-2013 at 08:12 AM.
 
1 members found this post helpful.
Old 01-07-2013, 09:01 AM   #5
jp2code
LQ Newbie
 
Registered: Jan 2013
Location: Longview, TX [USA]
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kareempharmacist View Post
I am a windows/Linux user so I can help u in both..just be patient..
I'm sorry guys. I was NOT patient.

I got to thinking about what all was on that hard drive in the first place, and it was nothing that could not be replaced.

It is a 500GB drive. Not the biggest, but certainly a lot of stuff to dig through using the command prompt in Linux to save data.

Add to that: This version of Windows has been on there for a little over 2 years, so the Registry has lots of dead spots in it.

I said, "What they hey! 2013 is a new year, let's format the drive!"

No more worries, and no crying over spilled milk.
 
Old 01-07-2013, 09:10 AM   #6
goumba
Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Wheezy (7.0), Jessie (future 8) and Sid (unstable)
Posts: 572
Blog Entries: 3

Rep: Reputation: 78
Hey, if you're gonna format it anyway, why not spend a little time trying to learn recovery techniques, because it will happen.
 
Old 01-07-2013, 09:11 AM   #7
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Sorry things didn't work out well. You might have been able to fix that either in windows or linux.

Anyway, it never seems to hurt to do a clean install of windows. It speeds it up and as you say, gets the holes out of the registry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we backup linux data to ext hard drive? kiranonlinuxque Linux - Hardware 5 11-01-2012 08:30 PM
How can I mount my external hard drive to save data on my windows based pc? Discman Linux - Newbie 2 08-26-2012 12:09 AM
[SOLVED] transfer data from a SATA external hard drive to a IDE internal hard drive Cabtech Linux - Newbie 7 04-22-2012 03:55 PM
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 10:19 AM
Linux/Hard Drive Data. rvijay Linux - Hardware 3 02-09-2005 09:38 AM


All times are GMT -5. The time now is 10:58 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration