I have two hard disks, both of them were installed with FreeBSD 9.
Put one of them into laptop, it can boot up,
but just can't recognize the other one connected via USB HDD enclosure.
I have checked it with "dd if=/dev/da0 of=./data bs=10m count=1",
the pmbr are same, at least the first gpt table is correct.
And I found that the error message occurs only if both gpt tables are corrupt
which is not possible, because if I put one of the disks into laptop
it boots up without error.
Any ideas?
Put one of them into laptop, it can boot up,
but just can't recognize the other one connected via USB HDD enclosure.
Code:
mass0: <IT-CEO IT-CEO USB Device, class 0/0, rev 2.00/1.14, addr 2> on usbus7
umass0: SCSI over Bulk-Only; quirks = 0x0100
umass0:3:0:-1: Attached to scbus3
da0 at umass-sim0 bus 0 scbus3 target 0 lun 0
da0: <IT-CEO USB2.0SATADevice 1.14> Fixed Direct Access SCSI-4 device
da0: 40.000MB/s transfers
da0: 238475MB (488397167 512 byte sectors: 255H 63S/T 30401C)
GEOM: da0: corrupt or invalid GPT detected.
GEOM: da0: GPT rejected -- may not be recoverable.
I have checked it with "dd if=/dev/da0 of=./data bs=10m count=1",
the pmbr are same, at least the first gpt table is correct.
And I found that the error message occurs only if both gpt tables are corrupt
which is not possible, because if I put one of the disks into laptop
it boots up without error.
Code:
839 /* Fail if we haven't got any good tables at all. */
840 if (table->state[GPT_ELT_PRITBL] != GPT_STATE_OK &&
841 table->state[GPT_ELT_SECTBL] != GPT_STATE_OK) {
842 printf("GEOM: %s: corrupt or invalid GPT detected.\n",
843 pp->name);
844 printf("GEOM: %s: GPT rejected -- may not be recoverable.\n",
845 pp->name);
846 return (EINVAL);
847 }
Any ideas?