Yeah, I am just too scared to do it.
After update from 6.9.6-1 to -2: SMART stopped working w error
-
- OMV 6.x
- Teschbert
-
-
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
-
Yeah, I am just too scared to do it.
Nothing to be scared about. All we are doing is adding an entry to the smartmontools database...
-
-
Well, updated both my OMV boxes, and SMART seems to still be working fine, so.
-
so... i think you have nothing to worry about.

-
Roger that... I mean as you said, I would have had to deal with it using whatever code/mod but it still makes ya nervous to lose stuff.
-
-
Syntax error, invalid char '\x0d'
Did you edit the file from windows?
Seems to be an issue with "carriage return".
-
-
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.
-
-
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.
-
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.
-
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)
-
-
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
-
Display More
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)
on windows you can use Notepad++ and save in Unix format t avoid /cr problems
-
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
Code
Display More/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M ID 1d6b:0003 Linux Foundation 3.0 root hub |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M ID 05e3:0626 Genesys Logic, Inc. |__ Port 4: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 5000M ID 152d:0567 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M ID 2109:0817 VIA Labs, Inc. |__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=uas, 5000M ID 1741:1156 |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=uas, 5000M ID 174e:1155 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M ID 1d6b:0002 Linux Foundation 2.0 root hub |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M ID 2109:3431 VIA Labs, Inc. Hub |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M ID 05e3:0610 Genesys Logic, Inc. Hub |__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M ID 2109:2817 VIA Labs, Inc. -
-
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.
Code
Display More/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M ID 1d6b:0003 Linux Foundation 3.0 root hub |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M ID 05e3:0626 Genesys Logic, Inc. |__ Port 4: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 5000M ID 152d:0567 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M ID 2109:0817 VIA Labs, Inc. |__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=uas, 5000M ID 1741:1156 |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=uas, 5000M ID 174e:1155 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M ID 1d6b:0002 Linux Foundation 2.0 root hub |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M ID 2109:3431 VIA Labs, Inc. Hub |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M ID 05e3:0610 Genesys Logic, Inc. Hub |__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M ID 2109:2817 VIA Labs, Inc.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!