Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Linux by (5k 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 (10.2k 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
0 votes
1 answer

Browse Categories

...