Re: How to determine the disk driver you used?

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

 



>        I wonder how to determine the device driver
> you used with your root filesystem? Or rather the
> driver used by disk hosting root filesystem?
>        Do any commands can work?

Here is a first attempt:
1) use mount to determine your root device (e.g. /dev/sda)
2) do a "ls -l /sys/block/{dev}/device/driver" where {dev} is your device

On my machine the output is
$ ls -l /sys/block/sda/device/driver
lrwxrwxrwx 1 root root 0 Jun 18 09:41 /sys/block/sda/device/driver ->
../../../../../../bus/scsi/drivers/sd

Which seems to mean the device is on the scsi bus, using the sd driver.

Alex.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux