This drive was used as a primary drive for a Manjaro KDE. Hardware problems wiped the partition table.
I recreated the partition table with gdisk. I have:
sudo gdisk -l /dev/sdb
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Disk /dev/sdb: 732566646 sectors, 2.7 TiB
Logical sector size: 4096 bytes
Disk identifier (GUID): 92588189-62EA-4CF2-8597-DD1810E5C2C2
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 732566640
Partitions will be aligned on 256-sector boundaries
Total free space is 6696890 sectors (25.5 GiB)
Number Start (sector) End (sector) Size Code Name
1 256 2303 8.0 MiB EF02 BIOS boot partition
2 2304 264447 1024.0 MiB 8300 Linux filesystem
3 264448 708053247 2.6 TiB 8300 Linux filesystem
4 708053248 725870000 68.0 GiB 8200 Linux swap
part 2 is /grub
part 3 is /
I can access partition 2 but not partition 3. I get the following error:
[ 7741.127021] EXT4-fs (sdb3): bad geometry: block count 729088000 exceeds size of device (725876736 blocks)
I don’t understand why it reports the wrong block count when gdisk displays the same as fdisk -l
sudo fdisk -l /dev/sdb
Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 732566646 sectors
Disk model: 2105
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 92588189-62EA-4CF2-8597-DD1810E5C2C2
Device Start End Sectors Size Type
/dev/sdb1 256 2303 2048 8M BIOS boot
/dev/sdb2 2304 264447 262144 1G Linux filesystem
/dev/sdb3 264448 708053247 707788800 2.7T Linux filesystem
/dev/sdb4 708053248 725870000 17816753 68G Linux swap
Thanks