How can I know what device the file in /dev is mapped to

2

0

I have installed a new device in linux. If I enter lspci, i can see the information of this device. But, I do not know which file in dev is mapped to this device.

Ben

Posted 2011-07-18T08:00:52.943

Reputation: 21

lspci does not show you drivers. – Ignacio Vazquez-Abrams – 2011-07-18T08:04:02.957

What kind of device is it? The general class of device is a good place to start looking. – Keith – 2011-07-18T08:18:49.597

It is a scsi card and it connect to a tape driver – Ben – 2011-07-18T08:49:55.607

Answers

0

Then use lsscsi instead - that should show you all the SCSI devices and what device file corresponds to each one.

TomH

Posted 2011-07-18T08:00:52.943

Reputation: 2 558

0

The general answer for any device is to run dmesg or check /var/log/kern.log.

Teddy

Posted 2011-07-18T08:00:52.943

Reputation: 5 504