Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-18-2008, 04:01 PM   #1
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
command to identify drives

Dear all,

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

Old 09-18-2008, 05:07 PM   #2
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Originally Posted by yusufs View Post
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
       -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.
Old 09-18-2008, 05:07 PM   #3
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify hard disk drives during Linux installation thelink123 Linux - Newbie 2 08-27-2008 05:05 AM
Identify program memory usage from command line MikeyCarter Linux - Software 1 03-04-2008 11:16 AM
What command can identify processes running on ports? hello321_1999 Linux - Newbie 2 11-23-2004 05:01 AM
NEWBIE/ What is the command for my cd and dvd drives? ssbullpit Linux - Hardware 3 03-19-2004 06:50 PM
UNIX command to identify a system's IP address blackreality Linux - Software 6 06-18-2003 02:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration