LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-22-2005, 01:37 AM   #1
SgtMuffles
LQ Newbie
 
Registered: Feb 2005
Location: Maryland
Distribution: SuSE 9.2, but have tried a few
Posts: 7

Rep: Reputation: 0
list devices


Hi, I'm pretty much incompetent (not exactly a newb, been poking around with it on and for a while) and I was wondering is there any one command that can list devices such as hard drives, scsi/usb drives, etc? I know that they're automatically given names like /dev/hda but I want to be able to know exactly what the system recognizes. Thanks beforehand.
 
Old 06-22-2005, 02:37 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Well, to see what's avail to be mounted, see file
/etc/fstab
To see what's actually currently mounted, see file
/etc/mtab
Do not try to edit /etc/mtab(!) ...
 
Old 06-22-2005, 11:10 AM   #3
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Simpler way:
type in
Code:
mount
It will show all mounted devices.

Code:
lspci
This will show all devices on the PCI Bus.

Code:
lsdev
This will list all devices (includes the ones from "mount")

Hope that helps.

--Abid Kazmi
 
Old 06-22-2005, 04:36 PM   #4
SgtMuffles
LQ Newbie
 
Registered: Feb 2005
Location: Maryland
Distribution: SuSE 9.2, but have tried a few
Posts: 7

Original Poster
Rep: Reputation: 0
Awesome, thanks a bunch guys!
 
Old 06-22-2005, 06:21 PM   #5
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
No problem man. =) Anytime.

--Abid Kazmi
 
  


Reply


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
List Devices, aka LSPCI GodSendDeath Solaris / OpenSolaris 2 09-05-2005 02:24 PM
list devices on the usb bus TroelsSmit Linux - Newbie 2 02-24-2004 11:32 AM
devices list Pedroski Linux - Hardware 0 12-07-2003 04:28 AM
[/dev] the Linux Devices List wuck Linux - Software 1 10-09-2003 01:43 PM
How to list devices installed J_Szucs Linux - Newbie 4 05-29-2002 08:45 AM


All times are GMT -5. The time now is 12:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration