On Thu, Jun 17, 2010 at 11:29 PM, Alexandre Courbot <[email protected]> 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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to