User Tools

Site Tools


ubuntu:disk:get_disk_info

This is an old revision of the document!


Ubuntu - 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:

hdparm -i /dev/sda

For SCSI disk, a different command is to be used:

sdparm /dev/sda

To check the hardisk capacity and partitions contained in the hardisk, fdisk can be used:

fdisk -lu /dev/sda

For LVM disks

lvscan

returns

  ACTIVE            '/dev/ubuntu-vg/root' [<1.82 TiB] inherit
  ACTIVE            '/dev/ubuntu-vg/swap_1' [976.00 MiB] inherit
ubuntu/disk/get_disk_info.1574792734.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki