Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (6.1k points)
edited by

I was trying to obtain a list of "\\\\.\PhysicalDrive0" available. But I could not get the right command to do it. Kindly tell me how can I get this list?

1 Answer

0 votes
by (11.7k points)

It is pretty simple to list out physical disks in Linux:

1) $ sudo fdisk -l

It displays the partitions and details like file system type. But it doesn’t report the size of each partition.

2) $ sudo sfdisk -l -uM

Sfdisk is another command where it can also display the size of each partition in MB.

3) $ sudo parted -l

4) $ df -h

Related questions

0 votes
1 answer
0 votes
0 answers
0 votes
1 answer
asked Feb 15, 2021 in Linux by rahulnayar01123 (6.1k points)
0 votes
1 answer

Browse Categories

...