Você quer saber como ver informações com detalhes de um disco em seu pc que usa Linux? Veja esse post como obter essas informações usando hdparm.
O hdparm é um utilitário de linha de comando, um programa, que permite ajustar opções de desempenho e gerenciamento de energia dos discos rígidos (HDs) em sistemas Linux. Podemos testar a taxa de leitura, ativar otimizações para o HD, entre outras funcionalidades.
Mas nesse post iremos usar hdparm para exibir informações relevantes do disco, como qual o modelo, número serial…
Para executar hdparm, basta digitarmos no terminal linux “hdparm nome_dispositivo”, veja:
maria@ti:~$ sudo hdparm /dev/sda1 /dev/sda1: multcount = 0 (off) IO_support = 1 (32-bit) readonly = 0 (off) readahead = 256 (on) geometry = 29186/255/63, sectors = 468871042, start = 204
Com o comando acima tenho poucas informações. Se quiser obter com mais verbosidade posso adicionar -I. A opção -I exibe informações de identificação solicitando essas informações diretamente do disco, então, passamos a ter informações consideravelmente mais detalhadas do que com se apenas usássemos -i.
maria@ti:~$ sudo hdparm -I /dev/sda1 /dev/sda1: ATA device, with non-removable media Model Number: SanDisk SSD PLUS 240GB Serial Number: 19153F800447 Firmware Revision: UF5000RL Media Serial Num: Media Manufacturer: 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 0x0110) Supported: 9 8 7 6 5 Likely used: 9 Configuration: Logical max current cylinders 16383 0 heads 16 0 sectors/track 63 0 -- LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 468877312 Logical Sector size: 512 bytes Physical Sector size: 512 bytes Logical Sector-0 offset: 0 bytes device size with M = 1024*1024: 228944 MBytes device size with M = 1000*1000: 240065 MBytes (240 GB) cache/buffer size = unknown Form Factor: 2.5 inch Nominal Media Rotation Rate: Solid State Device 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 = 1 Current = 1 Advanced power management level: 254 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 * Advanced Power Management feature set SET_MAX security extension * 48-bit Address feature set * Device Configuration Overlay feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * 64-bit World wide name * WRITE_UNCORRECTABLE_EXT command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE unknown 119[8] * Gen1 signaling speed (1.5Gb/s) * Gen2 signaling speed (3.0Gb/s) * Gen3 signaling speed (6.0Gb/s) * Native Command Queueing (NCQ) * Phy event counters * READ_LOG_DMA_EXT equivalent to READ_LOG_EXT Device-initiated interface power management * Software settings preservation Device Sleep (DEVSLP) * SANITIZE feature set * BLOCK_ERASE_EXT command * SET MAX SETPASSWORD/UNLOCK DMA commands * WRITE BUFFER DMA command * READ BUFFER DMA command * DEVICE CONFIGURATION SET/IDENTIFY DMA commands * Data Set Management TRIM supported (limit 8 blocks) * Deterministic read data after TRIM Security: Master password revision code = 65534 supported not enabled not locked not frozen not expired: security count not supported: enhanced erase 2min for SECURITY ERASE UNIT. Logical Unit WWN Device Identifier: 5001b448b881a4b3 NAA : 5 IEEE OUI : 001b44 Unique ID : 8b881a4b3 Device Sleep: DEVSLP Exit Timeout (DETO): 50 ms (drive) Minimum DEVSLP Assertion Time (MDAT): 31 ms (drive) Checksum: correct