Originally Posted by
ratchetman
I was trying to identify physical drives and not logical ones.
To get a list of drives,
example,
Code:
[reon@obelix ~]$ sudo fdisk -l
[sudo] password for reon:
Disk /dev/sda: 232.9 GiB, 250058268160 bytes, 488395055 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0002c76e
Device Boot Start End Blocks Id System
/dev/sda1 63 310394879 155197408+ 7 HPFS/NTFS/exFAT
/dev/sda2 * 310394880 349456383 19530752 83 Linux
/dev/sda3 349456384 475285503 62914560 83 Linux
/dev/sda4 475285504 488394751 6554624 82 Linux swap / Solaris
/dev/sda would be the physical drive whereas the partitions are /dev/sda1-4.
Want more detailed information about the drive,
Code:
sudo hdparm -I /dev/sda
example,
Code:
[reon@obelix ~]$ sudo hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: ST3250310AS
Serial Number: 6RY5GMSV
Firmware Revision: 3.AAC
Standards:
Supported: 7 6 5 4
Likely used: 8
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: 488395055
Logical Sector size: 512 bytes
Physical Sector size: 512 bytes
device size with M = 1024*1024: 238474 MBytes
device size with M = 1000*1000: 250058 MBytes (250 GB)
cache/buffer size = 8192 KBytes
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: 0
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
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
Write-Read-Verify feature set
* WRITE_UNCORRECTABLE_EXT command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Native Command Queueing (NCQ)
* Phy event counters
Device-initiated interface power management
* Software settings preservation
* SMART Command Transport (SCT) feature set
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
Checksum: correct
Don't like the cli? install gnome-disk-utility, gsmartcontrol, gparted and they will also give you useful device information.
Bookmarks