Page 1 of 1

Recovered reformatted partition but cannot mount it

Posted: 25 Feb 2015, 19:52
by clemmy
Dear all,

first of all let me thank you for this awesome software, which I think is going to save my a$$. I have formatted by mistake my 1T external usb hdd, and I'm trying to recover my partition. I think I almost got it back, but cannot mount it in the OS,

The original partition was NTFS and I formatted it in FAT32. I've followed these steps to recover (from the wiki):
Recovery of reformatted partition

If the partition has been reformatted to another file system (FAT32 formatted as NTFS or vice-versa),
run TestDisk,
select the hard disk and the partition type
choose Advanced
select the partition
choose Type,
enter the value corresponding to the previous filesystem
choose Boot
choose RebuildBS
List
If you can see your files, choose Write and confirm
In Analyse, choose to rewrite the partition with the correct partition type.
After following these steps I can see my files in TestDisk, and everything seems correct both in the Advanced and Analyze menu. I see the partition, its type is HPFS - NTFS, and I can list the files in it (log attached). So I guess the recovery is almost OK.

Nevertheless, when I plug the HD and try to mount it I receive an error:

Code: Select all

Error mounting /dev/sdb1 at /media/anna/FreeClem: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/anna/FreeClem"' exited with non-zero exit status 13: Corrupted file $UpCase
Failed to mount '/dev/sdb1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
In the testdisk.log I see following error:

Code: Select all

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
Info: size boot_sector 1953396462, partition 1953396736
 1 * HPFS - NTFS              0  32 33 121593 114 57 1953396736 [FreeClem]
     NTFS, blocksize=4096, 1000 GB / 931 GiB
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
NTFS filesystem need to be repaired.
But I'm a bit lost about how to proceed... :?:


Thanks in advance for any help!

Re: Recovered reformatted partition but cannot mount it

Posted: 26 Feb 2015, 09:08
by cgrenier
If you can copy the files using TestDisk (TestDisk, Advanced, Boot, List) but it's slow, or better run "chkdsk /f c:" under Windows to repair the filesystem (Run "cmd" right-click run as administrator, and next the chkdsk command).

Re: Recovered reformatted partition but cannot mount it

Posted: 26 Feb 2015, 09:52
by clemmy
Thanks a lot cgrenier, you're genius!!!

First of all, I copied the most important files from testdisk just to be safe (forgot to mention that I was doing everything under linux).

Then I rebooted into windows, run the chkdsk /f command, and everything went good. Errors where recovered and my old NTFS partition is back! It seems that no file was lost :mrgreen: :mrgreen:

(donation on it's way)