Still getting this from gdisk (and the similar warning from Gparted) every time I boot to my external SSD /dev/sdc that I've installed 20.04 on:
Code:
GPT fdisk (gdisk) version 1.0.5
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: OK
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Command (? for help): p
Disk /dev/sdc: 1875385008 sectors, 894.3 GiB
Model: Ultra II 960GB--
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): F4DEFA58-650D-4D70-98CF-06C88C5FCBBF
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1875384974
Partitions will be aligned on 2048-sector boundaries
Total free space is 88132 sectors (43.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 16384 1143336 550.3 MiB EF00 EFI System (ESP)
2 1146880 1875316735 893.7 GiB 8300 UbuntuMATE-20.0
From here in gdisk I can fix this with "v", "w" and "y" , run gdisk again and all is well, but then I will get the same error when I run gdisk after every reboot.
I bought the drive in early May 2020 and it sat for 3 months before I began to use it. udisksctl status shows the firmware revision number to be X41320RL:
Code:
--> udisksctl status
MODEL REVISION SERIAL DEVICE
--------------------------------------------------------------------------
WDC WDS100T2B0A X61190WD 192762802683 sda
SanDisk Ultra II 960GB X41320RL 170901B001B2 sdb
SanDisk Ultra II 960GB X41320RL 172104A00B54 sdc
(The first SanDisk Ultra II listed above is my internal storage disk. I bought 2 of the same disk at roughly the same time.) I couldn't find anywhere on the SanDisk forums exactly what the current revision of the Ultra II is, but I also couldn't find any revision numbers discussed that were higher than X41320RL, so there's a good chance that I have the latest version, given that the drive is only 6 months old.
A screenshot is attached showing the results of an extended SMART self-test.Screenshot at 2020-10-11 20-24-15.jpg Although I'm not an expert on what to look for here, the only potentially worrisome item would seem to be the fourth one up from the bottom, an "Uncorrectable ECC Count" of 304 sectors.
Is that bad and/or meaningful?
Here is a filesystem check:
Code:
--> sudo e2fsck -f -v /dev/sdc2
[sudo] password for rj:
e2fsck 1.44.1 (24-Mar-2018)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
311028 inodes used (0.53%, out of 58572800)
593 non-contiguous files (0.2%)
329 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 268909/65
7322653 blocks used (3.13%, out of 234271232)
0 bad blocks
2 large files
221945 regular files
36228 directories
9 character device files
0 block device files
0 fifos
113 links
52837 symbolic links (42037 fast symbolic links)
0 sockets
------------
311132 files
sudo e2fsck -f -v /dev/sdc2 3.00s user 0.33s system 22% cpu 14.849 total
I partitioned the drive using Gparted. I first created the ESP, then the root partition.
gdisk, a week ago, threw a further warning that the root partition was not aligned to 8 sectors, so I fixed that by expanding the size of that partition a small bit. Now gdisk and Gparted do not give me that error.
The first sector of sdc1 (the ESP) is 1146880, last sector of the ESP is 1875316735. The first sector of sdc2 (the root partition) is 1146880. Last sector is 1875316735. I'm open to wiping this whole setup and re-partitioning (and re-installing the 20.04 OS) if there is a saner way to do it.
Screenshot at 2020-10-11 23-03-31.jpg
About the drive not completely shutting down, it's also the case that the installer flash drives I've use also do not completely shut down. With those, the message comes up saying "remove the installation media and press ENTER." After I do that, I wait 30 seconds or so, and still no shutdown, so I then have to shut my machine down by holding in the power button for about 6 seconds. So the fact that the external SSD doesn't completely shut down may not be unique to it, may not be a problem with the drive itself.
I tried connecting the SSD with a different (admittedly thinner) cable (USB-C to USB-A) and with that cable the drive booted so unbelievably painfully slow that I threw the thinner cable away and went back to the cable I've been using all along.
About Rod Smith's suggestion of the possibility of "Host Protected Area" being set, it appears not to be:
Code:
--> sudo hdparm -N /dev/sdc
/dev/sdc:
max sectors = 1875385008/1875385008, HPA is disabled
Any further suggestions are of course welcome, but I may be at the point of returning this disk for a replacement.
Bookmarks