Re: How to determine the disk driver you used?

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

 



On Thu, Jun 17, 2010 at 11:29 PM, Alexandre Courbot <gnurou@xxxxxxxxx> wrote:
>>        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
>

or one-liner
ls -l /sys/block/$(mount | grep ' / ' | cut -d' ' -f1 | xargs basename
| sed 's/[0-9]//')/device/driver

--
John

--
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