Translate

Archives

Find Hard Disks on System

Assuming you have a Linux 2.6 kernel, there are a number of places where you can find information about the hard disks on your computer without using any utilities such as fdisk, gdisk or lshw, or by checking log files. All disks and partitions are listed in /proc/partitions. Each disk also has an entry under /sys/block. Under /dev, you can find disks and partitions by serial number (/dev/disk/by-id/), by UUID (/dev/disk/by-uuid), by filesystem label (/dev/disk/by-label/) or by hardware bus (/dev/disk/by-path/.)