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 11-25-2002, 04:36 PM   #1
mackie_lin
LQ Newbie
 
Registered: Nov 2002
Location: Ohio
Distribution: Mandrake 8.2/PPC
Posts: 19

Rep: Reputation: 0
Hardware Device List


Is there any way to get a list of all the hardware devices (USB, etc.) attached to the system and which device name (wrong word, but i can't think of the correct term right now) that they reside on? For example, /dev/sda or /dev/sdc3 etc. I need to know because for some reason, my floppy drive keeps changing names (at one point it was sda, then sdc, and now I have no idea) every time I boot into Linux.
 
Old 11-25-2002, 11:34 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Devices that start with 's' are scsi devices, your floppy should be /dev/fd*. For various device lists you can do "cat /proc/*"
"cat /proc/pci" for pci
"cat /proc/scsi" for scsi and so on.
 
Old 11-26-2002, 12:39 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Another option is to recompile your kernel to support devfs, which is a
dynamic device filesystem, rather than the node locked /dev that has been
so popular for so long. If you go this route, READ, READ, READ. You
can cause some major problems if you screw up, but once you've got it,
it's great.
For example:
Code:
bash-2.05a$ ls /dev/ide/
cd  hd  host0
bash-2.05a$ ls /dev/ide/host0/
bus0  bus1
bash-2.05a$ ls /dev/ide/host0/bus1/
target0  target1
bash-2.05a$ ls /dev/ide/host0/bus1/target0/
lun0
bash-2.05a$ ls /dev/ide/host0/bus1/target0/lun0/
disc  part1  part10  part2  part5  part6  part7  part8  part9
bash-2.05a$
This shows my partitions on my first hard drive on my second
IDE bus of the first IDE host controller. . .
 
Old 11-26-2002, 05:46 AM   #4
mackie_lin
LQ Newbie
 
Registered: Nov 2002
Location: Ohio
Distribution: Mandrake 8.2/PPC
Posts: 19

Original Poster
Rep: Reputation: 0
I really don't think I am ready to recompile my kernel. The standard Mandrake kernel was too old for my computer, so my friend (over the phone) had me download and install a new one. This wasn't recompiling, but I still had no idea what he was having me do.

So basically, I have to use the method that Aussie suggested and then just guess through all of them until the floppy drive mounts? I'd think that a sophisticated OS like Linux would be able to automatically detect media devices instead of making the user guess and check. Strange.

Thanks for both of your help though. Maybe someone else has a suggestion/program that makes this a little more bareable?
 
Old 11-26-2002, 11:46 AM   #5
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Linux does automatically detect devices (for the most part), it just isn't
always clear what the user wants those devices to be. Is your floppy
drive anything other than the (outdated) standard 1.44 MB floppy that
has its own controller on the MB?
You can also find the floppy drive name in the boot messages:
dmesg | less
look for something like:
Code:
    ide0: BM-DMA at 0xc400-0xc407, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xc408-0xc40f, BIOS settings: hdc:DMA, hdd:DMA
hda: IBM-DTLA-305030, ATA DISK drive
hdb: MATSHITADVD-ROM SR-8587, ATAPI CD/DVD-ROM drive
hdc: IBM-DTTA-350840, ATA DISK drive
hdd: CD-ROM Drive/F5A, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 60036480 sectors (30739 MB) w/380KiB Cache, CHS=3737/255/63
hdc: 16514064 sectors (8455 MB) w/467KiB Cache, CHS=16383/16/63, UDMA(33)
hdb: ATAPI 48X DVD-ROM drive, 256kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 < p5 p6 p7 p8 >
 /dev/ide/host0/bus1/target0/lun0: [PTBL] [1027/255/63] p1 p2 < p5 p6 p7 p8 p9 p10 >
Floppy drive(s): fd0 is 1.44M
This tells me that my floppy drive is /dev/fd0, I have the following hard
drive partitions:
/dev/hda1, /dev/hda2, /dev/hda3, /dev/hda5, hda6, hda7, hda8
/dev/hdc1, /dev/hdc2, hdc5, hdc6, hdc7, hdc8, hdc9, hdc10
That /dev/hdb is a DVD drive, that /dev/hdd is a CD drive.

Last edited by moses; 11-26-2002 at 11:55 AM.
 
Old 11-26-2002, 04:10 PM   #6
mackie_lin
LQ Newbie
 
Registered: Nov 2002
Location: Ohio
Distribution: Mandrake 8.2/PPC
Posts: 19

Original Poster
Rep: Reputation: 0
I checked that command you suggested, but it doesn't actually give me the name of the floppy drive.
 
Old 11-26-2002, 04:25 PM   #7
mackie_lin
LQ Newbie
 
Registered: Nov 2002
Location: Ohio
Distribution: Mandrake 8.2/PPC
Posts: 19

Original Poster
Rep: Reputation: 0
Oh, I found it! It really did stay /dev/sdc, I just forgot to run 'su; modprobe usb-storage' lol

thanks for all the help though!!
 
  


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
Hardware list lrts Linux - Newbie 3 10-05-2005 10:41 AM
List of all hardware installed? amer_58 Linux - Newbie 16 03-11-2005 10:45 PM
Linux Hardware List? subnet_rx Linux - Hardware 2 12-26-2004 07:17 PM
How can I get a list of my system hardware ? jlassiter Linux - Newbie 1 09-22-2004 09:58 AM
Where Can I get Hardware List? DavidTempler Fedora 3 01-08-2004 06:46 AM

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

All times are GMT -5. The time now is 08:20 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