Using Linux to recover data on a damaged Windows partition?
Linux - GeneralThis 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
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.
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.
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.
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
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.
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.