LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-29-2003, 08:18 AM   #1
Korff
Member
 
Registered: May 2003
Location: Central Florida
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
Using Linux to recover data on a damaged Windows partition?


Ok, my dad was on this machine, which I have set up as a dual boot with RH9/Windows, and he said it froze.

After rebooting, we couldn't boot into windows, it just hung after the chainloader (grub) told it to.

Checked my Win disks and fdisk/diskpart couldn't recognize the windows partition as a fat32.

Went into Linux and mounted it as I have done dozens of times, and I couldn't open it. Message said I had the wrong fs type, bad superblock, or too many mounted file systems.

Used win setup disk recovery console, took grub out of the picture by doing a fixmbr. Hung on startup again, this time with ascii symbols all over the screen.

Booted back into linux via boot disk. A simple Windows freeze won't delete a hard drive. I think it just killed the partition info. While the data isn't crucial, I'd rather access it through Linux and burn it on to a CD-R than reformat the partition and start again from scratch.
 
Old 12-29-2003, 10:24 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Here's something I have noticed with partitions,
somtimes I hate it and sometimes it's quite usefull... YMMV...

If I delete a partition under Linux, eg a FAT32 partition, I expect all the warnings to be correct...
All the data should be lost... but...
if, under Linux, I add a FAT32 partition where the old one was, my data is still there...
I actually have to force a different format to destroy it...

Try it to see if you can restore the partition boundaries.
I can only guess something chewed the tables, and knowing what Win machines love to be attacked by, you may have to clean it before using it again.
 
Old 12-29-2003, 10:48 AM   #3
Korff
Member
 
Registered: May 2003
Location: Central Florida
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
How would I do this through Linux?

The only partitioning I have done has either been through Windows tools such as fdisk and diskpart or through graphical setup tools such as disk druid or disk drake.

Fortunately, the damaged fat32 partition in question was at the beginning of the drive (/dev/hda1). Size, according to diskpart, is 25604MB

Last edited by Korff; 12-29-2003 at 10:57 AM.
 
Old 12-29-2003, 11:10 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Testing..
 
Old 12-29-2003, 11:18 AM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
From a command line do fdisk /dev/hda
then p to print the table. Make sure partition 1 is FAT32
d to delete a partition, 1 for partition 1 then confirm,
w to write the table and exit
fdisk /dev/hda
p to print the table
n for a new partition, primary, number 1
accept the default start and end sectors..
t to select a type, partition 1
c for FAT32 LBA
a to make it active, bootable
w to write and exit

Also run the bootloader again to make sure it is working ok,
I personally use lilo on the MBR

and reboot, legs crossed etc...

Last edited by peter_robb; 12-29-2003 at 11:19 AM.
 
Old 12-29-2003, 11:35 AM   #6
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
You can also use knoppix or any live evaluation cd and mount windows to your /home/knoppix directory. I find knoppix to be amazing for disc and data recovery.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Software to help me recover 'Deleted' FAT32 Partition Data? flamesrock Linux - Software 8 07-26-2005 10:39 PM
Data Recover Help -> Incorrect Partition Table PhuckFonix Linux - General 8 05-30-2004 10:12 PM
recover data from physically damaged drive kc8tbe Linux - General 11 05-29-2004 01:58 PM
trying to recover a notebook with a damaged keyboard clau_bolson Linux - General 4 04-10-2004 12:39 AM
RH 7.3 Install damaged 2nd drive,, can I recover??? dmkelly Linux - General 3 08-02-2002 02:04 PM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
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