Hi,
Finally installed my 2TB SATA SSD on the motherboard to replace the suspect HDD - all good. I wanted to check a few files on the HDD so I connected it to the PC via a USB dock. The HDD has a single ext4 partition.
When connected via USB the HDD’s partition won;t read.
chris@asus-roc:~> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 8M 0 part
├─sda2 8:2 0 40G 0 part /var
├─sda3 8:3 0 69.8G 0 part /home
└─sda4 8:4 0 2G 0 part [SWAP]
sdb 8:16 0 1.8T 0 disk
└─sdb1 8:17 0 1.8T 0 part /data
**sdg 8:96 0 1.8T 0 disk**
sr0 11:0 1 1024M 0 rom
So I had a look in fdisk and saw the partition exists.
chris@asus-roc:~> sudo fdisk -l /dev/sdg
Disk /dev/sdg: 1.8 TiB, 2000398934016 bytes, 488378646 sectors
Disk model: EZRX-00D8PB0
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: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdg1 1 488378645 488378645 1.8T ee GPT
chris@asus-roc:~>
I have not yet tried the ‘losetup’ mentioned in the thread as I’m not sure if this is the right approach. Basically I just want to do a quick direct read of the old HDD via USB. Can ‘fdisk’ fix things?
NB. I have NOT lost any data as I backed up my old HDD prior to removal to a separate media and restored that to the new SSD - an 11 hour job
I have an external disk container that does what you are showing. A 2TB disk mounted there would show sector size as 4096 logical and 4096 physical. But when the disk is mounted to the using internal SATA port, it shows as 512 logical and 4096 physical.
Yes, that makes the disk unusable due to the sector size mismatch. You will need a usb container that supports the 512 logical sector size.
I had thought so to. So I partitioned and prepared a disk using that, and found that it didn’t work when actually installed in the computer. Not a big deal, I just had to repartition.
I also have a couple of SATA docking stations. And those work fine and correctly recognize the 512 logical sector size.