On Wed, Apr 18, 2018 at 12:43 AM, Martin K. Petersen <martin.petersen@xxxxxxxxxx> wrote: > > Manuel, > >> I have a SATA SSD which suddenly reports its size as 2.2TB, 0xFFFFFFFF >> block count: > > "Suddenly" as in out of the blue? Or after a drive firmware update? Or a > kernel ditto? Out of the blue, yes. I think it's actually userspace (udev/udisks?) which tries to read a few block from the very end of the device, which confuses the drive firmware. Sometimes it recovers and then it can be mounted read-only without issues. It's not a kernel fault, the drive is broken. Still, is there a userspace option (sysfs attribute perhaps) to limit disk capacity to a certain block count? Thank you! Manuel