LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command to identify drives (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-identify-drives-670891/)

yusufs 09-18-2008 04:01 PM

command to identify drives
 
Dear all,

Is there any command to identify the local drives in the machine,san drives and tape drives ...


Thanks
Yusuf

David1357 09-18-2008 05:07 PM

Quote:

Originally Posted by yusufs (Post 3284918)
Is there any command to identify the local drives in the machine,san drives and tape drives

Most people use "fdisk -l". From the man page for fdisk
Code:

      -l    List the partition tables for the specified
              devices and then exit.  If no devices are given,
              those mentioned in proc/partitions  (if that exists)
              are used.


neilcpp 09-18-2008 05:07 PM

well you could type: dmesg - this shows the devices - and other things - that the operating system has detected.

you could also see what filesystems / devices are actually mounted by using the mount command with the right option (see man mount).

i dont know of a single command line statement, other than mount with the appropriate option, that will do this.


All times are GMT -5. The time now is 01:35 AM.