badblocks error on 4TB+ disks #99

Closed
opened 2019-03-11 20:08:20 -06:00 by 2Shirt · 1 comment
2Shirt commented 2019-03-11 20:08:20 -06:00 (Migrated from gitea.2shirt.work)

Saw this error on a 5.5T (SATA) WDC_WD6003FZBX-00K5WB0:

badblocks: Value too large for defined data type invalid end block (5860522584): must be 32-bit value

According to https://unix.stackexchange.com/q/152171, https://unix.stackexchange.com/a/152183, & https://www.spinics.net/lists/linux-ext4/msg40063.html badblocks is limited to 2^32-1 read blocks and the default read block size is 1024bytes. This https://askubuntu.com/a/552343 recommends increasing the block size to avoid the error.

Going to enable 4K block size for all 3TB+ devices. Also if getting the physical block size isn't too hard I'll also enable it for those devices.

Saw this error on a 5.5T (SATA) WDC_WD6003FZBX-00K5WB0: >badblocks: Value too large for defined data type invalid end block (5860522584): must be 32-bit value According to https://unix.stackexchange.com/q/152171, https://unix.stackexchange.com/a/152183, & https://www.spinics.net/lists/linux-ext4/msg40063.html badblocks is limited to 2^32-1 read blocks and the default read block size is 1024bytes. This https://askubuntu.com/a/552343 recommends increasing the block size to avoid the error. Going to enable 4K block size for all 3TB+ devices. Also if getting the physical block size isn't too hard I'll also enable it for those devices.
2Shirt commented 2019-03-11 20:13:16 -06:00 (Migrated from gitea.2shirt.work)

lsblk field "phy-sec"

lsblk field "phy-sec"
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 2Shirt/WizardKit#99
No description provided.