Consider how to retrieve information about storage devices on dedicated servers.
We can get the information we need from lsblk, which is the default built-in utility for most Linux distributions.
Standard input of lsblk
command will provide us with basic information about the drives on the dedicated server.
But her standard output won’t let us know the serial numbers of the drives. To do this, we need to add arguments that will allow us to see the serial numbers for each of the drives. We will use the following command:
And we’ll get something like this:
That’s exactly what we need. For each physical drive, there’s a serial number. Speaking of physical drives, do not try to get a serial number on virtual servers (VDS), we will not get it because of the virtual drives, not their physical presence. The conclusion would be that:
Last updated