After update from 6.9.6-1 to -2: SMART stopped working w error

  • So I have got this working but only by adding the USB details to the main smartmontools database (drivedb.h in var/lib)


    If I try to create the local file and entry with the exact same details, I am getting a syntax error with the file etc/smart_drivedb.h


    So I think my solution will not survive when the smartmontools database is updated...


    I am trying to work out why I am getting the following error when I copy/paste the exact same entry from drivedb.h to smart_drivedb.h


    the error message is


    Code
    omv-engined[1852]: /etc/smart_drivedb.h(3): Syntax error, invalid char '\x0d'

    OMV 8 (latest) on N100 minipc (16GB) and rpi5 (8GB). OS on SSD/SD. System ext4 on SSD. Data BTRFS on HDDs

  • thanks macom. I did use an editor in windows. I will re-edit using nano and see if I can resolve the issue.

    OMV 8 (latest) on N100 minipc (16GB) and rpi5 (8GB). OS on SSD/SD. System ext4 on SSD. Data BTRFS on HDDs

  • well tried to tidy up the formatting using nano rather than the usual text editor that I use but I still have the same issue.


    If I add the device to the main smartmontools database (drivedb.h in var/lib) - then boom works fine


    If i I copy/paste the exact same entry from drivedb.h to smart_drivedb.h and then check the formatting using nano - i keep getting the syntax error.


    I think i'm doing something stupid but not sure what.

    OMV 8 (latest) on N100 minipc (16GB) and rpi5 (8GB). OS on SSD/SD. System ext4 on SSD. Data BTRFS on HDDs

  • strange. It must have something to do with c&p and may the character set you're using I suppose.

    I would make a test and enter with nano via ssh the entry in smart_drivedb.h completely by hand - line by line..

    I'm working on a Mac with macOS and having no issues with c&p in shell.

    Raspi 4B, 4GB RAM, SSD-Boot, 2TB & 1TB SSD as data-disks in Sata/USB enclosure, IcyBox USB3-Hub

  • Thanks. I will give this a try and report back. I'm not using an unusual character set and I often do stuff like this and it works.


    I will try looking at this using my mac and/or directly in nano without copy/paste.

    OMV 8 (latest) on N100 minipc (16GB) and rpi5 (8GB). OS on SSD/SD. System ext4 on SSD. Data BTRFS on HDDs

  • Looks like this is some weird windows copy/paste and/or the text editor (notepad++) i was using in windows.


    1. using ssh and cli tools only to write the file - worked fine

    2. using mac copy/paste from working file - worked fine

    3. using win copy/paste from working fine - DID NOT work


    So the morale of this story is... just another reason to use mac (or not windows)

    OMV 8 (latest) on N100 minipc (16GB) and rpi5 (8GB). OS on SSD/SD. System ext4 on SSD. Data BTRFS on HDDs

  • Hello, I'm also dealing with this issue doe to the recent updates of OMV and I would really appreciate if some one can help me go to the post where the was solved using the commands as described because there are several posts with coding and I just don't know what to do. My USB device uses PINAS controller and I have another one using JMICRON, Surprisingly the JMICRON does work just fine with SMART, but I have lost all the drives in the PINAS controller. I really appreciate the help on this matter because I do need SMART monitoring and I already saved a data of a 8TB of storage thanks to an early warning from SMART

  • on windows you can use Notepad++ and save in Unix format t avoid /cr problems

    • Official Post

    Hello, I'm also dealing with this issue doe to the recent updates of OMV and I would really appreciate if some one can help me go to the post where the was solved using the commands as described because there are several posts with coding and I just don't know what to do. My USB device uses PINAS controller and I have another one using JMICRON, Surprisingly the JMICRON does work just fine with SMART, but I have lost all the drives in the PINAS controller. I really appreciate the help on this matter because I do need SMART monitoring and I already saved a data of a 8TB of storage thanks to an early warning from SMART


    on windows you can use Notepad++ and save in Unix format t avoid /cr problems

    As always, Windows thinks it has to cook its own soup and uses a different format for line breaks, which leads to the aforementioned error under Linux.


    Linux requires a \n as line feed, wheras Windows is using \r\n. Make sure your editor takes not about that. Most modern editors can switch between those types if told.

  • As always, Windows thinks it has to cook its own soup and uses a different format for line breaks, which leads to the aforementioned error under Linux.


    Linux requires a \n as line feed, wheras Windows is using \r\n. Make sure your editor takes not about that. Most modern editors can switch between those types if told.

    Thanks for your reply, I use Mac so for such coding I use text edit app that is more transparent, but my con=cern is that I don't know which one of the codes shared here in several posts, should I use to fix the SMART issue specially for the PINAS controller because here all have focused themselves to fix the JMICON controller issue but my controller is PINAS USB

  • my controller is PINAS USB

    Post the output inside a CODE box (symbol </> of the Blue Ribbon) of:

    sudo lsusb -tv

  • Post the output inside a CODE box (symbol </> of the Blue Ribbon) of:

    sudo lsusb -tv

  • should I use to fix the SMART issue specially for the PINAS controller because here all have focused themselves to fix the JMICON controller issue but my controller is PINAS USB

    Your answer is on the output you posted.

  • Your answer is on the output you posted.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!