disk:get_disk_info
Differences
This shows you the differences between two versions of the page.
disk:get_disk_info [2017/04/04 08:23] – created peter | disk:get_disk_info [2019/11/26 18:23] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Disk - Get disk info ====== | ||
- | |||
- | To check hardisk information such as model and serial number, there are a few useful commands like hdparm, sdparm and fdisk. | ||
- | |||
- | To check the information about first hardisk for PATA and SATA hardisk: | ||
- | |||
- | <code bash> | ||
- | hdparm -i /dev/sda | ||
- | </ | ||
- | |||
- | |||
- | For SCSI disk, a different command is to be used: | ||
- | |||
- | <code bash> | ||
- | sdparm /dev/sda | ||
- | </ | ||
- | |||
- | |||
- | To check the hardisk capacity and partitions contained in the hardisk, fdisk can be used: | ||
- | |||
- | <code bash> | ||
- | fdisk -lu /dev/sda | ||
- | </ | ||
- | |||
- | |||
disk/get_disk_info.1491294196.txt.gz · Last modified: 2020/07/15 09:30 (external edit)