Ubuntu_20.04,内核 5.4.0-52-generic。
我有一个新的 Seagate 8TB 硬盘,通过 USB3 电缆连接到外部驱动器接口卡(标有“Raptor 3.5 Main Board V3R1 2011/07/19”,包括 12V 电源组)。驱动器在 gnome-disk 实用程序中显示为 1.28 TB,/dev/sdb1 安装在 /media/dk/8TB。驱动器的分区表是 GPT。驱动器格式化为 ext4(或 ext3 或 NTFS)。
hdparm 显示:
$ sudo hdparm -I /dev/sdb1
/dev/sdb1:
ATA device, with non-removable media
Model Number: ST8000DM004-2CX188
Serial Number: ZCT2W041
Firmware Revision: 0001
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
Used: unknown (minor revision code 0x006d)
Supported: 10 9 8 7 6 5
Likely used: 10
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 15628053168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 7630885 MBytes
**device size with M = 1000*1000: 8001563 MBytes (8001 GB)**
cache/buffer size = unknown
Form Factor: 3.5 inch
Nominal Media Rotation Rate: 5425
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Recommended acoustic management value: 208, current value: 208
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* DOWNLOAD_MICROCODE
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
SET_MAX security extension
* 48-bit Address feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
Write-Read-Verify feature set
* WRITE_UNCORRECTABLE_EXT command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
unknown 119[6]
* unknown 119[7]
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Gen3 signaling speed (6.0Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
* READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
DMA Setup Auto-Activate optimization
Device-initiated interface power management
* Software settings preservation
unknown 78[7]
* SMART Command Transport (SCT) feature set
* SCT Write Same (AC2)
* SCT Data Tables (AC5)
unknown 206[7]
unknown 206[12] (vendor specific)
unknown 206[13] (vendor specific)
* DOWNLOAD MICROCODE DMA command
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
supported: enhanced erase
964min for SECURITY ERASE UNIT. 964min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000c500c6805821
NAA : 5
IEEE OUI : 000c50
Unique ID : 0c6805821
Checksum: correct
$
请注意,逻辑扇区大小为 512 字节,物理扇区大小为 4096 字节,
设备大小 = 柱面 x 磁头 x 扇区/磁道 x 字节/扇区 = 8,001,563 MBytes。
但所有其他应用程序(gnome-disk-utility、gparted、fdisk、文件管理器等)仅看到 1.28 TB。
现有的 2TB 硬盘被视为 2 TB 并且工作正常。
在我运行 LXLE(基于 18.04)的笔记本电脑上也是如此。
这似乎指向内核中的错误。
诊断信息太多,无法在此给出。如果需要,我会更新此信息。