How Do I Find a New Drive in Linux?
Contents

How do I find drives in Linux?

In order to list disk information on Linux, you have to use the “lshw” with the “class” option specifying “disk”. Combining “lshw” with the “grep” command, you can retrieve specific information about a disk on your system.

How do I see a newly installed disk in Linux?

fdisk is a command line utility to view and manage hard disks and partitions on Linux systems. This will list the current partitions and configurations. After attaching the hard disk of 20GB capacity, the fdisk -l will give the below output. New disk added is shown as /dev/xvdc .

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest