Determine linux driver that owns a disk
05:59 26 Jul 2013

I am trying to debug a situation where the SSD on my hardware is not being detected by the right device driver. The device driver that should own the SSD's is a software RAID driver (megasr) that will automically configure 2 SSD's in mirroring mode. I am pretty sure that the megasr driver is not detecting/owning the SSD's, but I am unsure which driver actually detects them.

Is there a way in Linux that I can determine which device driver owns a particular disk inside the /dev directory.

So I would like to determine which driver owns the device /dev/sda, for example.

The OS is RHEL 6.x.

Many thanks.

linux linux-device-driver disk solid-state-drive scsi