This might be a silly question, but ... I'm on older hardware and my hard drives are no different. I recently replaced 2 500GB drives that appeared to be failing as disk access slowed tremendously. Upon further inspection, the raw error rate skyrocketed.
The drive in question did NOT appear to have a significantly higher raw error rate as I did just check that yesterday because disk operations did seems to have slowed. It seemed pretty close to what it was when I installed FreeBSD on the disk (I modified my install / restore scripts to also take a snapshot of smartctl data so I could identify problems earlier and hopefully recover before I am in the spot I am now). Anyways, I rebooted this morning to apply package updates (I create new Boot Environments for any type of update) and am not able to boot up. I swapped out for a 2 week old backup and tried to pull my files off of that disk, but there is no partition table or GPT is complaining it is invalid or corrupt. I did not make a backup of the partition table.
1. Would it be wise to make a backup of the partition table?
2. Is it possible to recover the GPT partition table? While I have backups (from yesterday), not all of my work was committed to git, I have some uncommitted changes that I'd like to recover if possible.
3. Would it be useful to check the partition table prior to rebooting to verify it is still intact? I suppose that since I can't even see the partition table and am seeing CAM errors, the drive is dead. I wonder if these errors were in the logs the night before and I failed to notice.
I looked at https://forums.freebsd.org/threads/solved-gpt-table-corrupt.46162/
I tried gpt recover da0, but I get
I suspect the drive has bigger issues and am out of luck.
The drive in question did NOT appear to have a significantly higher raw error rate as I did just check that yesterday because disk operations did seems to have slowed. It seemed pretty close to what it was when I installed FreeBSD on the disk (I modified my install / restore scripts to also take a snapshot of smartctl data so I could identify problems earlier and hopefully recover before I am in the spot I am now). Anyways, I rebooted this morning to apply package updates (I create new Boot Environments for any type of update) and am not able to boot up. I swapped out for a 2 week old backup and tried to pull my files off of that disk, but there is no partition table or GPT is complaining it is invalid or corrupt. I did not make a backup of the partition table.
1. Would it be wise to make a backup of the partition table?
2. Is it possible to recover the GPT partition table? While I have backups (from yesterday), not all of my work was committed to git, I have some uncommitted changes that I'd like to recover if possible.
3. Would it be useful to check the partition table prior to rebooting to verify it is still intact? I suppose that since I can't even see the partition table and am seeing CAM errors, the drive is dead. I wonder if these errors were in the logs the night before and I failed to notice.
usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device Seagate FA GoFlex Desk (0x0bc2:0x5070)
usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage device Seagate FA GoFlex Desk (0x0bc2:0x5070)
ugen0.2: <Seagate FA GoFlex Desk> at usbus0
umass0 on uhub1
umass0: <Seagate FA GoFlex Desk, class 0/0, rev 2.00/1.55, addr 2> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x8100
umass0:3:0: Attached to scbus3
da0 at umass-sim0 bus 0 scbus3 target 0 lun 0
da0: <Seagate FA GoFlex Desk 0155> Fixed Direct Access SPC-2 SCSI device
da0: Serial Number 2HC015KJ
da0: 40.000MB/s transfers
da0: 476940MB (976773167 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
GEOM: da0: corrupt or invalid GPT detected.
GEOM: da0: GPT rejected -- may not be recoverable.
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 80 00 00 10 00
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: ABORTED COMMAND asc:47,3 (Information unit iuCRC error detected)
(da0:umass-sim0:0:0:0): Retrying command (per sense data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 00 80 00 00 01 00
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: ABORTED COMMAND asc:47,3 (Information unit iuCRC error detected)
(da0:umass-sim0:0:0:0): Retrying command (per sense data)
I looked at https://forums.freebsd.org/threads/solved-gpt-table-corrupt.46162/
I tried gpt recover da0, but I get
gpart: arg0 'da0': Invalid argument
I suspect the drive has bigger issues and am out of luck.