OpenMediaVault-Plugin-Developers / openmediavault-flashmemory

OpenMediaVault plugin for folder2ram
25 stars 6 forks source link

Reboot KByte Reporting FALSE #9

Closed trancen closed 7 years ago

trancen commented 9 years ago

After a reboot, I'm getting the word FALSE instead of total in KBytes, see attachments.

Running 2.1.9 of OMV.

image

image

ryecoaaron commented 9 years ago

Your root drive probably changed drive letters. It only detects the root drive when installing the plugin. I guess I can change it to detect all the time.

trancen commented 9 years ago

Yup that was it. I installed a Ext USB drive to copy some data, and noticed now that it was assigned /dev/sdc1 and not the USB Boot Drive. I manually went into /etc/openmediavault/config.xml edited the correct device and now it's reporting correctly the KBytes.

STPKITT commented 8 years ago

I experienced the following on two different OMV-machines both running OMV 2.1 with installed openmediavault-omvextrasorg 2.2 and flashmemory 1.9

First machine: this machine has exactly the same harddrives connected as was the case during install of the plugin. Despite that it shows Root as /dev/sda1 but the USB-boot-drive is /dev/sdc1, so the GUI shows the amount of Kbytes written to the sda1-HDD instead of the amount written to the USB-boot-drive.

Second machine: I had only the USB-boot-drive connected while installing the flashmemory-plugin. The GUI showed /dev/sda1 for Root, but at that time there was no /dev/sda1 in the whole system. The "Write Kbytes" said false. Since then I connected a single SATA-harddrive, which became /dev/sda1 while the boot-usb-drive stayed at /dev/sdb1. Since then instead of "false" the "Write Kbytes" on this machine shows the amount of data written to the sda1-HDD!

Conclusion: To me it seems the plugin always shows the amount of data written to /dev/sda1 no matter what and it says "false" when the is no /dev/sda1 in the system. Looks like a but to me! Question: does the flashmemory plugin work as intended despite showing the wrong things in the GUI?

ryecoaaron commented 8 years ago

Read my comment two comments above yours. The value is just a display of a file in the /sys directory. It has nothing to do with the function of the plugin. If the boot drive letters change, it won't be updated. I will look at fixing it.

STPKITT commented 8 years ago

Ok, looking forward to the fix then. Great plugin and very important for OMV! Thanks for your work!