Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
April 21st, 2014, 19:20
I have a RAID 0 (2 x 3TB). It looks like the Protected MBR was overwritten with a standard MBR. I have not worked much with GPT and have a few questions. The client says there was a single 3TB Partition. When I build the array I only see a 2TB partition. I can see from hex that there is indeed a lot more data beyond the 2TB partition end. I have done some work changing the MBR and GPT, but the protective MBR only seems to allow for a maximum partition sector size of 2TB with hex reference FFFFFFFF at 1CAh. I have set the GPT to the last available sector, but I still only get a 2TB partition showing. Any ideas?
April 21st, 2014, 19:35
ddrecovery wrote:I have a RAID 0 (2 x 3TB). ... The client says there was a single 3TB Partition.
Do you mean RAID 1, or do you mean a single 6TB partition?
ddrecovery wrote:When I build the array I only see a 2TB partition. I can see from hex that there is indeed a lot more data beyond the 2TB partition end. I have done some work changing the MBR and GPT, but the protective MBR only seems to allow for a maximum partition sector size of 2TB with hex reference FFFFFFFF at 1CAh. I have set the GPT to the last available sector, but I still only get a 2TB partition showing. Any ideas?
GPT partitions are defined in sectors 1 and 2. These two sectors are also backed up at the very end of the drive.
Could we see these four sectors (in hex)?
April 21st, 2014, 19:48
Thanks for the quick response:
It is Raid 0. The initial MBR and EFI are on one drive and the Copy EFI is on the other. Attached are the original hex before I made some changes. I have checked locations of both EFI's and they do match. CRC is also good.
- Attachments
-
Disk1 EFI Copy.txt
- (1000 Bytes) Downloaded 718 times
-
Disk0 Sectors 0-2.txt
- (11.6 KiB) Downloaded 728 times
April 21st, 2014, 20:14
Sector 0 contains a 2TB MBR partition of type 06. A protective MBR should have a type EE and should look like this:
http://thestarman.pcministry.com/asm/mbr/GPThpt.gifThe structure of the "EFI PART" GPT header is explained here:
http://thestarman.pcministry.com/asm/mbr/GPT.htmThe "last usable LBA" is 0x0x2BAA1473E. This corresponds to a capacity of 6TB.
http://www.google.com/search?q=0x2BAA14 ... in+decimalSector 2 is showing a single Microsoft reserved partition. The entry for the data partition has been zeroed.
You need to search the drives for boot sectors. These will be near the beginning and shouldn't take long to find ... if they still exist.
April 21st, 2014, 23:01
Once again, thanks for the response. The Hex I uploaded was from the original drive, I have since changed to a protective MBR and GPT Partition structure. I will change the last usable LBA after your advice and see if we get a better scan.
When searching for boot sectors in GPT you mean 55 AA? I think the main partition we are looking for could be is Ext4. I had previously search for 55 AA but could not find any.
April 21st, 2014, 23:33
I assumed that the OS was Windows (because of the "Microsoft reserved partition") in which case you would be looking for an NTFS boot sector. These are easily recognisable by their "NTFS" signature. In the case of Windows systems, you could search for boot sectors with DMDE (freeware disc editor), but I have no real experience with Linux file systems.
Here are two professional tools for Linux:
http://www.r-tt.com/data_recovery_linux/Download.shtmlhttp://www.ufsexplorer.com/download.phpIf assembling a software RAID in a Linux environment, you could use mdadm (freeware):
http://www.linuxmanpages.com/man8/mdadm.8.php
April 22nd, 2014, 0:36
And if I do find NTFS boot sectors can I add them to the partition table? Sorry if my questions are dumb now and again.
April 22nd, 2014, 0:54
Yes, tools such as DMDE can use the information in the boot sector(s) to rebuild the partition structure.
April 22nd, 2014, 11:25
There seems to be a conflict between the protective MBR and the GPT Header. The MBR has a maximum partition size of FF FF FF FF which is 2TB. Yet in the GPT Header you can specify a LastUsableLBA which can be almost anything you want. Does the OS ignore the MBR when its GPT?
Also how does the OS system find partitions? A GPT formatted disk can have up to 128 partitions, so how are they notated?
April 22nd, 2014, 16:55
Sectors 2 through 33 are reserved for 128 partition entries, each entry occupying 128 bytes.
See
http://en.wikipedia.org/wiki/GUID_Parti ... on_entriesThat said, ISTM that you need to decide whether you have a RAID 0 or a RAID 1, whether the capacity is 6TB or 3TB, and whether the file system is Linux or Microsoft.
BTW, in DMDE you would search for boot sectors by selecting Tools -> Search for Special Sector.
April 22nd, 2014, 17:12
Thanks Fzabkar. I will keep studying and keep learning.
Powered by phpBB © phpBB Group.