[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#930594: Partitions only usable with the sata-controller it has been created



Package: src:linux
Version: 4.9.144-2
Severity: normal


Hello,

maybe this is an known problem, because i found an extended description of this problem in the internet:
https://linux-blog.anracom.com/2018/12/03/linux-ssd-partition-alignment-problems-with-external-usb-to-sata-controllers-i/

The problem first was that an harddisk did not work any more on an pc.
So i extracted it and analyzed it connected with an USB-Adapter on an other PC.
I found out that the partition-list was deleted and reconstructed it.
After that all data could be rescued and an e2fsck-check of the partitions where successful.

But after reintegrating of the harddisk the partitions are still unreadable!
After searching for the problem i found the article above and i had to connect and restore it with the original controller.

That is unbelievable, because how can the partitions be dependent on the Sata-controller used?
That is really strange!

Where can this be reported to the kernel team or is this problem solved in actual kernel versions?


Here an example of this harddisk:
-------------------------------------------

Correct is this paritioning shown with fdisk and readable with the USB controller:

Disk /dev/sdd: 931,5 GiB, 1000204886016 bytes, 244190646 sectors
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: 0x5537c98f

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sdd1            256  10486015  10485760    40G 83 Linux
/dev/sdd2       10486016  20971775  10485760    40G 83 Linux
/dev/sdd3       20971776  21233919    262144     1G 82 Linux swap / Solaris
/dev/sdd4       21233920 244190645 222956726 850,5G 83 Linux


Connecting the disk direct to the onboard Sata controller shows:

Disk /dev/sdc: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x5537c98f

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sdc1            256  10486015  10485760     5G 83 Linux
/dev/sdc2       10486016  20971775  10485760     5G 83 Linux
/dev/sdc3       20971776  21233919    262144   128M 82 Linux swap / Solaris
/dev/sdc4       21233920 244190645 222956726 106,3G 83 Linux

and the partitions can't be mounted of course:

mount /dev/sdc4 /media/sdc4
mount: wrong fs type, bad option, bad superblock on /dev/sdc4,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.


Cheers
karsten


Reply to: