2

Is it hard to write a kernel module to expose information to usee space ? I need smartctls abilitytl to specify sata being transported over. USB cable to a sata drive to pull Information like make model serial but it requires root and lsblk doesn't have the functionality to grab info on the device on the other end of the usb to sata cable
There is another way though right ?

Comments
  • 0
    Sounds like a case for udisk / polkit.

    http://storaged.org/doc/...
  • 0
  • 0
    @AvatarOfKaine that is weird...

    Udisk should have all the information necessary and should be usable by non root user in any desktop distribution.

    What exactly is missing / unclear?
  • 0
    @IntrusionCM transport type is usb, i need to manually specify the polling to that device to pull back serial/make/model information

    the device connected to usb port is a usb to sata adapter

    it masks the connected hard drive

    in smartctl you specify

    sudo smartctl -a -d sat /dev/sdb

    or for like a seagate drive -d scsi

    lsblk doesn't have this option that i noticed. neither does udisks
Add Comment