Recovering Raid1 drive to mountable state.

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
Natey24
Posts: 3
Joined: 24 Sep 2016, 05:10

Recovering Raid1 drive to mountable state.

#1 Post by Natey24 »

I had a previous RAID1 setup but something caused that to get corrupted. Both drives seem to be fine, and I can see all my data on both drives using Testdisk. What I'm trying to do is get it setup to mount the drive. It seems like even though I've recovered the partition on the drive it is still not recognized as being an actual NTFS type drive. Here's what I see in testdisk when analysing the drive:

Code: Select all

Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
     Partition                  Start        End    Size in sectors
 1 P HPFS - NTFS              2  10  9 243193  70 13 3906867200 [Storage]

Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.

If I try to mount the drive using mount without specifying a type:

Code: Select all

mount: unknown filesystem type 'ddf_raid_member'
try to mount with a type:

Code: Select all

sudo mount -t ntfs /dev/sdb /media/storage
NTFS signature is missing.
Failed to mount '/dev/sdb': Invalid argument
The device '/dev/sdb' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Not quite sure where to go next. Is it even possible to recover the NTFS boot signature so that it will be mountable? If that won't work I have a fallback plan. testdisk can find the files so I can copy them off the drive. But there is almost 1.8TB of data taken up on that drive and I didn't want to wait for it to copy if there is a quicker way to get it back.

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

Re: Recovering Raid1 drive to mountable state.

#2 Post by cgrenier »

Looks like you are confusing the disk and the partition. Try instead

Code: Select all

sudo mount -t ntfs /dev/sdb1 /media/storage

Natey24
Posts: 3
Joined: 24 Sep 2016, 05:10

Re: Recovering Raid1 drive to mountable state.

#3 Post by Natey24 »

cgrenier wrote:Looks like you are confusing the disk and the partition. Try instead

Code: Select all

sudo mount -t ntfs /dev/sdb1 /media/storage

Still no luck. Trying this I get the following response:

Code: Select all

sudo mount -t ntfs /dev/sdb1 /media/storage
ntfs-3g: Failed to access volume '/dev/sdb1': No such file or directory
Here is what I see with an fdisk -l

Code: Select all

sudo fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00007b1e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   217870335   108934144   83  Linux
/dev/sda2       217872382   234440703     8284161    5  Extended
/dev/sda5       217872384   234440703     8284160   82  Linux swap / Solaris

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1           32768  3906899967  1953433600    7  HPFS/NTFS/exFAT

Natey24
Posts: 3
Joined: 24 Sep 2016, 05:10

Re: Recovering Raid1 drive to mountable state.

#4 Post by Natey24 »

Here is also a dump of the boot sectors:

Code: Select all

Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
 1 P HPFS - NTFS              2  10  9 243193  70 13 3906867200 [Storage]
Boot sector                        Backup boot sector
0000 eb52904e 54465320   .R.NTFS   eb52904e 54465320   .R.NTFS
0008 20202000 02080000      .....  20202000 02080000      .....
0010 00000000 00f80000   ........  00000000 00f80000   ........
0018 3f00ff00 00800000   ?.......  3f00ff00 00800000   ?.......
0020 00000000 80008000   ........  00000000 80008000   ........
0028 ff0fdee8 00000000   ........  ff0fdee8 00000000   ........
0030 04000000 00000000   ........  04000000 00000000   ........
0038 87e08d0e 00000000   ........  87e08d0e 00000000   ........
0040 f6000000 01000000   ........  f6000000 01000000   ........
0048 52e86c4f eafcbe31   R.lO...1  52e86c4f eafcbe31   R.lO...1
0050 00000000 fa33c08e   .....3..  00000000 fa33c08e   .....3..
0058 d0bc007c fb68c007   ...|.h..  d0bc007c fb68c007   ...|.h..
0060 1f1e6866 00cb8816   ..hf....  1f1e6866 00cb8816   ..hf....
0068 0e006681 3e03004e   ..f.>..N  0e006681 3e03004e   ..f.>..N
0070 54465375 15b441bb   TFSu..A.  54465375 15b441bb   TFSu..A.
0078 aa55cd13 720c81fb   .U..r...  aa55cd13 720c81fb   .U..r...
0080 55aa7506 f7c10100   U.u.....  55aa7506 f7c10100   U.u.....
0088 7503e9d2 001e83ec   u.......  7503e9d2 001e83ec   u.......
0090 18681a00 b4488a16   .h...H..  18681a00 b4488a16   .h...H..
0098 0e008bf4 161fcd13   ........  0e008bf4 161fcd13   ........
00A0 9f83c418 9e581f72   .....X.r  9f83c418 9e581f72   .....X.r
00A8 e13b060b 0075dba3   .;...u..  e13b060b 0075dba3   .;...u..
00B0 0f00c12e 0f00041e   ........  0f00c12e 0f00041e   ........
00B8 5a33dbb9 00202bc8   Z3... +.  5a33dbb9 00202bc8   Z3... +.
00C0 66ff0611 0003160f   f.......  66ff0611 0003160f   f.......
00C8 008ec2ff 061600e8   ........  008ec2ff 061600e8   ........
00D0 40002bc8 77efb800   @.+.w...  40002bc8 77efb800   @.+.w...
00D8 bbcd1a66 23c0752d   ...f#.u-  bbcd1a66 23c0752d   ...f#.u-
00E0 6681fb54 43504175   f..TCPAu  6681fb54 43504175   f..TCPAu
00E8 2481f902 01721e16   $....r..  2481f902 01721e16   $....r..
00F0 6807bb16 68700e16   h...hp..  6807bb16 68700e16   h...hp..
00F8 68090066 53665366   h..fSfSf  68090066 53665366   h..fSfSf
0100 55161616 68b80166   U...h..f  55161616 68b80166   U...h..f
0108 610e07cd 1ae96a01   a.....j.  610e07cd 1ae96a01   a.....j.
0110 90906660 1e0666a1   ..f`..f.  90906660 1e0666a1   ..f`..f.
0118 11006603 061c001e   ..f.....  11006603 061c001e   ..f.....
0120 66680000 00006650   fh....fP  66680000 00006650   fh....fP
0128 06536801 00681000   .Sh..h..  06536801 00681000   .Sh..h..
0130 b4428a16 0e00161f   .B......  b4428a16 0e00161f   .B......
0138 8bf4cd13 66595b5a   ....fY[Z  8bf4cd13 66595b5a   ....fY[Z
0140 66596659 1f0f8216   fYfY....  66596659 1f0f8216   fYfY....
0148 0066ff06 11000316   .f......  0066ff06 11000316   .f......
0150 0f008ec2 ff0e1600   ........  0f008ec2 ff0e1600   ........
0158 75bc071f 6661c3a0   u...fa..  75bc071f 6661c3a0   u...fa..
0160 f801e808 00a0fb01   ........  f801e808 00a0fb01   ........
0168 e80200eb feb4018b   ........  e80200eb feb4018b   ........
0170 f0ac3c00 7409b40e   ..<.t...  f0ac3c00 7409b40e   ..<.t...
0178 bb0700cd 10ebf2c3   ........  bb0700cd 10ebf2c3   ........
0180 0d0a4120 6469736b   ..A disk  0d0a4120 6469736b   ..A disk
0188 20726561 64206572    read er  20726561 64206572    read er
0190 726f7220 6f636375   ror occu  726f7220 6f636375   ror occu
0198 72726564 000d0a42   rred...B  72726564 000d0a42   rred...B
01A0 4f4f544d 47522069   OOTMGR i  4f4f544d 47522069   OOTMGR i
01A8 73206d69 7373696e   s missin  73206d69 7373696e   s missin
01B0 67000d0a 424f4f54   g...BOOT  67000d0a 424f4f54   g...BOOT
01B8 4d475220 6973808e   MGR is..  4d475220 6973808e   MGR is..
01C0 699970fe ffff7365   i.p...se  699970fe ffff7365   i.p...se
01C8 64000d0a 507200fe   d...Pr..  64000d0a 507200fe   d...Pr..
01D0 ffff72fe ffff6172   ..r...ar  ffff72fe ffff6172   ..r...ar
01D8 740d0a00 000000fe   t.......  740d0a00 000000fe   t.......
01E0 ffff43fe ffff2b41   ..C...+A  ffff43fe ffff2b41   ..C...+A
01E8 6c742b44 656c0000   lt+Del..  6c742b44 656c0000   lt+Del..
01F0 00000000 00000000   ........  00000000 00000000   ........
01F8 00000000 000055aa   ......U.  00000000 000055aa   ......U.

Locked