LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-18-2008, 04:01 PM   #1
yusufs
Member
 
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 ...


Thanks
Yusuf
 
Old 09-18-2008, 05:07 PM   #2
David1357
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
Quote:
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
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.
 
Old 09-18-2008, 05:07 PM   #3
neilcpp
Member
 
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:57 AM.

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