Run customised HDD driver for external HDD while generic HDD driver for bootable purpose
Hi,
I am new to linux kernel development. I am implementing a customised hdd driver and wants it to run only for my external hard-disk not for my bootable hard-disk. Any idea how this can be achieved in an efficient manner? Any thoughts on this, will be a great help!!! Regards, Sonia |
Hello and welcome to LQ.
There are a number of ways to identify a drive like uuid for exampe.. There are also ways to identify a type of connection for example sata or usb. Modern linux is trying to start to follow BSD type identification of device so maybe that would be the place to start. Some ideas like this maybe? https://access.redhat.com/documentat...nt_naming.html Also if this is a one of a kind versus some deployed scheme may be an issue. |
All times are GMT -5. The time now is 01:01 AM. |