Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Misc > [SOLVED] Recover a NTFS partition

Forgot Password?
 Misc   Any questions or Linux discussion that does not fit in any of the other technical areas.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 11-17-2008   #1 (permalink)
Just Joined!
 
Join Date: Nov 2008
Posts: 4
[SOLVED] Recover a NTFS partition

Hi, everybody

I've got a little problem here.

I have a 250gb hard drive which had 2 ntfs partitions on it. One 80gb for Windows and programs and other 170gb partition for all my documents and other data.

So I wanted to install Debian as 2nd OS on my computer. I resized my 170gb partition to 148gb and created 2gb swap and 20gb ext3 partition for linux and installed Debian on it and grub boot loader on the master boot record. Everything is working ok.

Then I started to mess with my ATI drivers, got black screens, searched stuff on google, reinstalled linux, etc... 3-4 times or so. Each time I deleted and recreated linux partitions in the partition manager while installing Debian. Maybe touched something else there too. I used latest Debian netinstall, but I did one install using my older Debian4 DVD from 2007.

Then at one point I had 5 entries on the grub boot loader(win, 2 pairs of linux boot options[normal and single user modes with different Z version numbers]). So I started messing around with grub and its command options - tried to delete 2 extra boot options. I think, I messed something up here.

Now I reinstalled Debian and grub for the last time and the installer didn't add my Windows entry for grub anymore. So I added Windows entry manually, but I was still unable boot to Windows. Then I tried to mount that NTFS partition under linux and see what's on there.
I got this error:
Code:
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
I was only able to mount my other 148gb NTFS partition.
ntfsfix gave me this error:
Code:
Mounting volume... Failed to startup volume : Invalid argument
FAILED
Attempting to correct errors... FAILED
Failed to startup volume : Invalid argument
Volume is corrupt. You should run chkdsk.
And when I tried chkdsk on Windows, I got instantly:
Code:
Volume appears to have one or more unrecoverable problems
What can I do? Is it possible to fix it somehow? I had some really valueable stuff on my Windows desktop that really need to be recovered.
bugrush is offline  


Old 11-17-2008   #2 (permalink)
Linux Guru
 
rokytnji's Avatar
 
Join Date: Jul 2008
Location: Pecos, Texas
Posts: 1,503
This tutorial I have found is the easiest to use by recovering data from Windows Boxes. Uses Knoppix live cd to do it though.

Geek to Live: Rescue files with a boot CD
__________________
Free Linux Books
Linux Registered User # 475019
And I’ll keep using Linux until they pry it from my cold dead fingers.
rokytnji is offline  
Old 11-17-2008   #3 (permalink)
Just Joined!
 
Join Date: Nov 2008
Posts: 4
Thanks for the reply, but I don\t have problems with booting. I have debian installed just one of my NTFS partitions is corrupt. I can\t mount it on any linux.

This is the error that I get when trying to mount my corrupt partition from desktop:
Code:
Could not mount device.
The reported error was:
Bootsector checksum failed.
Failed to startup volume: Invalid argument
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around
bugrush is offline  
Old 11-17-2008   #4 (permalink)
Linux Guru
 
rokytnji's Avatar
 
Join Date: Jul 2008
Location: Pecos, Texas
Posts: 1,503
Quote:
I had some really valueable stuff on my Windows desktop that really need to be recovered.
This is what I was going by when I made my suggestion. As far as fixing a corrupted NTFS partition, that is beyond me.

Quote:
Bootsector checksum failed.
Failed to startup volume: Invalid argument
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't have a valid NTFS.
In my link you will be using Knoppix to just recover Windows files you wish to keep to usb. You are going to have to delete that corrupt partition anyway, I was just giving you a way to save anything you wish to keep. I know you can boot into Debian, but Most recovery of Windows files are done with either Knoppix, Kantoix, or Ubuntu Live Cds and USB sticks. I am not familiar enough in Debian to know why you can't access your data using Debian. Sorry.
__________________
Free Linux Books
Linux Registered User # 475019
And I’ll keep using Linux until they pry it from my cold dead fingers.
rokytnji is offline  
Old 11-17-2008   #5 (permalink)
Just Joined!
 
Join Date: Nov 2008
Posts: 4
Solved

------
rokytnji: I tried Knoppix and Slax Live-CD's and I still wasn't able to mount my corrupt partition.
------

OK, I fixed the NTFS bootsector using FIXBOOT in Windows Recovery Console. Everything is good now.

Thank you!
bugrush is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:47 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2