Re: Change device block count from userspace?

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

 



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



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux