Linux Find SCSI Hard Disk Model, Serial Number, Size, and Total Sectors Information
Simply use utility called sdparm to fetch SCSI / SATA device information. Inquiry data including Vital Product Data (VPD) pages can also be displayed. Commands associated with starting and stopping the medium; loading and unloading the medium; and other housekeeping functions may also be performed by this utility.
In short you can get or set SCSI hard disk parameters. If you are using ATA ( IDE ) hard disk use hdparm utility.
Install sdparm utility
Type the following command at shell prompt:
# apt-get install sdparm
Red Hat / CentOS user can grab sdparm rpm package here.
sdparm examples
To list common mode parameters of a disk, enter:
# sdparm /dev/sda
To list the designators within the device identification VPD page of a disk:
# sdparm --inquiry /dev/sdb
To see all parameters for the caching mode page:
# sdparm --page=ca /dev/sdc
To set the "Writeback Cache Enable" bit in the current values page:
# sdparm --set=WCE /dev/sda
Further readings:
- sdparm man page
You may also be interested in other helpful articles:
- HP-UX: Understanding device file naming convention
- Linux udev tip: Assign Static SCSI Device Name
- Restore Debian Linux Grub boot loader
- How to delete a write protected file
- Load Linux kernel module before SCSI module using mkinitrd
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: disk model, disk parameters, hard disk, information inquiry, mode parameters, sdparm command, serial number



Unfortunately sdparm doesn’t work with cciss disks