Re: How to find driver usage.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 14, 2009 at 4:26 PM, Bryn M. Reeves <bmr@xxxxxxxxxx> wrote:
> On Wed, 2009-10-14 at 15:52 +0100, Dan Track wrote:
>> I've got two disks /dev/sda and /dev/sdb. I'd like to reload the
>> driver that they are using. How can I find out what driver is being
>> used by them?
>
> The sysfs file system (normally mounted at /sys) is your friend, e.g:
>
> $ ls -l /sys/block/sda/device/driver
> lrwxrwxrwx 1 root root 0 2009-10-14 16:16 /sys/block/sda/device/driver
> -> ../../../../../../bus/scsi/drivers/sd
>
> But this just tells us that it's being driven by the SCSI disk driver
> (sd) which is kinda obvious.
>
> A lot more information is hidden away here however - you can use tools
> like udevinfo or systool to trawl the file system and output the
> information in a more readable format.
>
> To get all attributes for sda:
>
> $ udevinfo -ap /block/sda
>
> http://pastebin.com/m1fb2047d
>
> To get device attributes for all scsi disks on the system:
>
> $ systool -c scsi_disk -v
>
> http://pastebin.com/m263ebacc
>
> Regards,
> Bryn.
>

Hi Bryn,

Many thanks for this. Lot's to learn.

Thanks
Dan

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux