LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Run customised HDD driver for external HDD while generic HDD driver for bootable purpose (https://www.linuxquestions.org/questions/linux-newbie-8/run-customised-hdd-driver-for-external-hdd-while-generic-hdd-driver-for-bootable-purpose-4175590294/)

sonia49 09-27-2016 11:37 PM

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

jefro 09-28-2016 08:52 PM

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.