LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-25-2011, 04:57 AM   #1
sandeep002gupta
Member
 
Registered: Apr 2011
Posts: 96
Blog Entries: 1

Rep: Reputation: 0
how check if new hardware installed in linux system


Hi,

If my shift engg is installed new hardware part of linux system.
so how can i check without restarting system whats part is added and which port.

sandeep
 
Old 04-25-2011, 06:16 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Hi,

Try issue this command from terminal (be root first):

Quote:
--# scanpci -v
or this,

Quote:
--# lsmod
Hope it helps.
 
Old 04-25-2011, 06:24 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
By the way, to walk through what device are found in the usb ports you may also use this:

Quote:
--# lsusb -v | less
to see what is preoccupying currently the memory top may be enough:

Quote:
--# top
or
Quote:
--# ps axu
to check if any new disk is attached you'd find:

Quote:
--# fdisk -l
Good luck.
 
Old 04-26-2011, 03:58 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Code:
dmidecode
as root will show what's installed in your system. Assuming you know what was there before, you should be able to tell any changes.

Play Bonny!
 
Old 04-28-2011, 03:39 AM   #5
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
lshw will also show you what is installed in the system.
 
Old 04-28-2011, 08:45 AM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by cascade9 View Post
lshw will also show you what is installed in the system.
Seems to be a buggy program in version 02.14-1build1 packaged in Ubuntu 10.10. Some binary garbage in the output in some strings that obviously should have no binary.
 
Old 04-28-2011, 08:56 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Opps, I forgot, there is also hardinfo.

Quote:
Originally Posted by Skaperen View Post
Seems to be a buggy program in version 02.14-1build1 packaged in Ubuntu 10.10. Some binary garbage in the output in some strings that obviously should have no binary.
Odd. Maybe its a ubuntu bug, I dont recall ever having that sort of output with debian/sidux/aptosid. I'd doubt it would help, but it would be intersting to see if lshw-gtk spewed out the same garbage.
 
Old 04-29-2011, 07:56 AM   #8
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
lshw-gtk seems to be worse. While I don't see the binary garbage output, I actually see not much output. And what it does show for the disk drives is missing the important SATA drives at sda, sdf, and sdg. It does show the drives sdb, sdc, sdd, and sde that are used for the USB memory card reader. It shows sde with specific media, but it doesn't have any. This thing is far less useful.
 
Old 04-29-2011, 12:51 PM   #9
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Even odder.

BTW, lshw should be run in root/'su' mode. I always get the warnings about lshw if I use it as a normal user-

Quote:
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
I doubt it would do anything as far as the garbage output goes, but as root you should see the SATA drives etc.. I cant say I've played with lshw-gtk that much, I dont really need the output in a GUI. But Id suspect that the output will be the same from lshw and lshw-gtk in normal user and as root. In most cases anyway, if there is a buggy version of lshw with whatever distro you are using then that could change.
 
  


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
check system hardware for faults noir911 Linux - Hardware 1 09-25-2006 04:42 AM
How to check if hardware installed tzpow2k2 Linux - Newbie 11 07-21-2006 02:15 AM
How to check the Hardware in linux rr_rr_29 Linux - Hardware 3 02-22-2006 02:57 AM
How do I check to see what Perl libraries are already installed on my system? beetle_boy66 Programming 3 01-22-2006 03:00 PM
How to check installed program in system? gmitra Programming 2 01-30-2005 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:27 PM.

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