RAID

How to use TestDisk to recover lost partition
Post Reply
Message
Author
bartech
Posts: 2
Joined: 25 Jul 2017, 09:55

RAID

#1 Post by bartech » 25 Jul 2017, 11:31

Hello everyone :)

Quick specs.:
Motherboard: ASUS P9X79 WS
Windows 7 Ultimate x64, Sp1
1x SSD Samsung 840 PRO series - with OS on it;
2x Seagate Barracuda 7200 ST2000DM001-ER164 2000,3 GB connected as RAID0

Last night I had a serious problem with my RAID0 partition.
I've turned computer right after cleaning it (compressed air, gently etc:) . When system started to work there was my RAID drive visible but I couldn't access it at all :?
I've jumped to BIOS to check what is going on. There was AHCI turned on instead of RAID like it was previous, so I've switched it to RAID. When it comes to reboot - just before windows suppose to start - I saw just a blue screen in a second and whole computer was restarting repeatedly. :cry:
So I get back to AHCI mode. During restart, I've opened CTRL+I menu and saw that RAID Volume had Status Failed - One Physical Device was at Non-RAID Disk status and second one was as Member Disk(0).
I was digging through the internet with my friend and we've found this thread:
http://www.overclock.net/t/478557/howto ... disk-error

So I did exactly like it was mentioned there by reseting both HDs to non-member.

After that I was trying to switch RAID mode in BIOS but still no luck. At AHCI mode i went back to windows, turn on TestDisk and somehow I'm able to copy files from one of the Barracudas.

I've also tried to do this:
http://www.tomshardware.co.uk/forum/320 ... -raid-mode

(after which I couldn't even work at AHCI or IDE)

...and this (#12)
https://www.techpowerup.com/forums/thre ... ry.180621/

Below you can find log file from TestDisk which I did after making steps from upper thread (#12) :

Code: Select all


Tue Jul 25 01:40:06 2017
Command line: TestDisk

TestDisk 7.1-WIP, Data Recovery Utility, July 2017
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 5.4, Cygwin 2005.2
ext2fs lib: 1.43.1, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.0
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=256060514304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=3800720998400
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=256060514304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=3800720998400
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=255953207296
filewin32_getfilesize(\\.\D:) GetFileSize err Niepoprawna funkcja.

filewin32_setfilepointer(\\.\D:) SetFilePointer err Niepoprawna funkcja.

Warning: can't get size for \\.\D:
Hard disk list
Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - Samsung SSD 840 PRO Seri, S/N:S1ATNSAF520545Y, FW:DXM0
Disk /dev/sdb - 3800 GB / 3539 GiB - CHS 462078 255 63, sector size=512 - Intel Raid 0 Volume, S/N:MAIN RAID, FW:1.0.

Partition table type (auto): EFI GPT
Disk /dev/sdb - 3800 GB / 3539 GiB - Intel Raid 0 Volume
Partition table type: EFI GPT

Analyse Disk /dev/sdb - 3800 GB / 3539 GiB - CHS 462078 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=3907029167 (expected 7423283199)
hdr_lba_start=34
hdr_lba_end=3907029134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
check_part_gpt failed for partition
 1 P MS Reserved                   34     262177     262144 [Microsoft reserved partition]
Current partition structure:
No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
 1 P MS Reserved                   34     262177     262144 [Microsoft reserved partition]
 1 P MS Reserved                   34     262177     262144 [Microsoft reserved partition]
 2 P MS Data                   264192 7813986303 7813722112 [Basic data partition] [MAIN RAID]

search_part()
Disk /dev/sdb - 3800 GB / 3539 GiB - CHS 462078 255 63
NTFS at 16/113/34
filesystem size           7813722112
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS part_offset=135266304, part_size=4000625721344, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 16/113/34
filesystem size           7813722112
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     MS Data                   264192 7813986303 7813722112 [MAIN RAID]
     NTFS, blocksize=4096, 4000 GB / 3725 GiB
This partition ends after the disk limits. (start=264192, size=7813722112, end=7813986303, disk end=7423283200)
file_pread(5,2,buffer,7423283199(462078/2/4)) ReadFile Nie można odnaleźć na dysku żądanego sektora.

file_pread(5,1,buffer,7423283200(462078/2/5)) ReadFile Nie można odnaleźć na dysku żądanego sektora.

Search for partition aborted
Disk /dev/sdb - 3800 GB / 3539 GiB - CHS 462078 255 63
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (3800 GB / 3539 GiB) seems too small! (< 4000 GB / 3725 GiB)
The following partition can't be recovered:
     MS Data                   264192 7813986303 7813722112 [MAIN RAID]
     NTFS, blocksize=4096, 4000 GB / 3725 GiB

Results

interface_write()

No partition found or selected for recovery

search_part()
Disk /dev/sdb - 3800 GB / 3539 GiB - CHS 462078 255 63
NTFS at 16/113/34
filesystem size           7813722112
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS part_offset=135266304, part_size=4000625721344, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 16/113/34
filesystem size           7813722112
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     MS Data                   264192 7813986303 7813722112 [MAIN RAID]
     NTFS, blocksize=4096, 4000 GB / 3725 GiB
This partition ends after the disk limits. (start=264192, size=7813722112, end=7813986303, disk end=7423283200)
file_pread(5,2,buffer,7423283199(462078/2/4)) ReadFile Nie można odnaleźć na dysku żądanego sektora.

file_pread(5,1,buffer,7423283200(462078/2/5)) ReadFile Nie można odnaleźć na dysku żądanego sektora.

Search for partition aborted
Disk /dev/sdb - 3800 GB / 3539 GiB - CHS 462078 255 63
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (3800 GB / 3539 GiB) seems too small! (< 4000 GB / 3725 GiB)
The following partition can't be recovered:
     MS Data                   264192 7813986303 7813722112 [MAIN RAID]
     NTFS, blocksize=4096, 4000 GB / 3725 GiB

Results

interface_write()

No partition found or selected for recovery

Quick translation (correct I hope:):
"Niepoprawna funkcja" - Incorrect function
"Nie można odnaleźć na dysku żądanego sektora" - unable to find requested sector

Overall, things that makes me very sad is that after changing mode in BIOS from AHCI to RAID, it cause blue screen error and I can't get rid of it.
Second one.. I have no idea what was the reason of this crash :cry:

If you have any idea how to go forward with this issue, how to fix it without loosing and recover it like it was, I'll be very grateful!

Have a great day!

Sponsored links

User avatar
cgrenier
Site Admin
Posts: 3615
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: RAID

#2 Post by cgrenier » 25 Jul 2017, 20:11

- The partition "MAIN RAID" ends at sector 7813986303. (7813986303+1)*512=4000760987648 bytes
- The Raid0 device is 3800720998400 bytes long.
It means the partition ends after the end of the Raid0.

The recommended way to deal with this problem is to copy all your data, delete the existing partition, create and format a new partition, restore your files.

bartech
Posts: 2
Joined: 25 Jul 2017, 09:55

Re: RAID

#3 Post by bartech » 27 Jul 2017, 14:45

Thank you so much for your response.
Thank god I was able to recover all the data.
Still I have problems when switching to RAID mode in BIOS (blue screen appears).
Now I'm trying to do some "magic" by Seagate SeaTools - maybe this will solve the problem :?:

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests