Device identification in case of same SN

    • Offizieller Beitrag

    The problem is that both devices attached to the JMicron based controller have the devicefile /dev/disk/by-id/usb-JMicron_Generic_0123456789ABCDEF-0:0 which is falsy, because a devicefile MUST be unique. Because OMV uses the /dev/disk/by-id devicefiles by default (because this is the only predictable one, /dev/sdX can change depending on timing issues during bootup, ...) the disks page only shows one.


    OMV has already included UDEV rules to workaround this, but it seems not to work. Sadly i do not have such a crappy USB controller, so i can not test it. Because of that someone in the community must get it working and create a pull request on Github including the fixes or open an issue describing exactly what to fix.


    You can find the UDEV rules here at /etc/udev/rules.d/99-openmediavault-dev-disk-by-id.rules or https://github.com/openmediava…ault-dev-disk-by-id.rules


    If the rules did not work it might be because of a missing full path to the serial_id command. It is located in /usr/lib/udev/serial_id.

  • Here's my best try in trying to get familiar with UDEV and my HornetTek HT-RAB237. I just copied pasted a previous one from https://github.com/openmediava…ault-dev-disk-by-id.rules and replaced the {ID_VENDOR_ID & ID_MODEL_ID} and it looks like it took out the random from my previous post. Please let me know if this helps and if there is something else I should test or add.

    • Offizieller Beitrag

    Here's my best try in trying to get familiar with UDEV and my HornetTek HT-RAB237. I just copied pasted a previous one from https://github.com/openmediava…ault-dev-disk-by-id.rules and replaced the {ID_VENDOR_ID & ID_MODEL_ID} and it looks like it took out the random from my previous post. Please let me know if this helps and if there is something else I should test or add.

    Thanks for contributing your findings. I've added them in openmediavault 5.5.17, see https://github.com/openmediava…b981958e875bd7d1f8a8ac421

  • Thanks for contributing your findings. I've added them in openmediavault 5.5.17, see https://github.com/openmediava…b981958e875bd7d1f8a8ac421

    Just tested on the latest OMV update and it looks like it works. Thank you for updating.

    Also, I don't think I would be using the S.M.A.R.T. feature as often, but do these enclosures only work with one temp/status showing?


    I've tried with couple disks on sda, and it looks like it's only working for sdb.


  • I am having the same issue with Sabrent USB-SATA adapters giving the same Serial Numbers. Noting the UDEV database work a few years ago, is there a "fix for Dummies" I can apply?


    My common SNs are WY22VE1Y & WD-WXK1A10X4320.


    I do use /dev/disk/by-UUID, however, it would make life easier to be able to trust the SNs.

    OMV 4.1.8.2-1
    Rock64, 1Gb
    Logitech Media Server 7.9.2

    • Offizieller Beitrag

    I am having the same issue with Sabrent USB-SATA adapters giving the same Serial Numbers. Noting the UDEV database work a few years ago, is there a "fix for Dummies" I can apply?


    My common SNs are WY22VE1Y & WD-WXK1A10X4320.


    I do use /dev/disk/by-UUID, however, it would make life easier to be able to trust the SNs.

    Please check these links and open a feature request with all the required info. Please read the links carefully to find out what data is required to create an UDEV rule that is fixing your issue.


Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!