NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
garyd9
Sep 04, 2014Virtuoso
"OS6" - a question or three
First, a direct question: I'm currently running my Pro BE's with 5 or 6 disks using "x-raid2" and "dual redundancy." (RAID6 with the xraid2 expansion scheme.) I downloaded the manual for one of...
garyd9
Sep 14, 2014Virtuoso
udev calls /frontview/bin/setup_usb_storage (a perl script) whenever a partition is added...
That script scans /etc/default/services and aborts if DISP_HIDE_USB_STORAGE exists in there. (This isn't useful, as the usb partition must be mounted for the backup to work.)
It then does quite a bit of work to basically just mount the usb device. (There's a configuration file that doesn't seem to serve any purpose other than trying to keep the mounted directory (and share) name consistent: storage.conf.) One line from this script I find interesting is:
system("ACTION=add rnutil hotplug_event UsbStorage");
rnutil appears to be a sort of shell type utility, but beyond a list of basic commands, I'm not sure how to use it (or how to alter what it might do.) I suspect that if I were to remove the above system() call from the perl script, that it wouldn't share the USB mounted devices. That might be a nice temp work-around that would probably shred any warranty, but isn't feasible as a sustainable fix. (It'd probably be overwritten on every firmware update, and might have all kinds of unpleasant side effects.)
@Mdgm, any chance you could get more information about this? (I understand if you answer "no" -- I'm probably messing with stuff that netgear would rather I stay away from.)
Edit: Thankfully, "strings" was left in busybox (even if there's no link, I can still run "busybox strings".) It saved me the trouble of looking for a .deb package. I can't know for sure, of course, but it appears that the default shares are created via /usr/lib/librndb.so.0. For usb hotplug devices, the config files are created in /etc/frontview/usb/._share/devicename (replace "devicename" with something like "USB_HDD_1") and have contents that seem to be hard coded in the above mentioned shared lib.
Take care
Gary
That script scans /etc/default/services and aborts if DISP_HIDE_USB_STORAGE exists in there. (This isn't useful, as the usb partition must be mounted for the backup to work.)
It then does quite a bit of work to basically just mount the usb device. (There's a configuration file that doesn't seem to serve any purpose other than trying to keep the mounted directory (and share) name consistent: storage.conf.) One line from this script I find interesting is:
system("ACTION=add rnutil hotplug_event UsbStorage");
rnutil appears to be a sort of shell type utility, but beyond a list of basic commands, I'm not sure how to use it (or how to alter what it might do.) I suspect that if I were to remove the above system() call from the perl script, that it wouldn't share the USB mounted devices. That might be a nice temp work-around that would probably shred any warranty, but isn't feasible as a sustainable fix. (It'd probably be overwritten on every firmware update, and might have all kinds of unpleasant side effects.)
@Mdgm, any chance you could get more information about this? (I understand if you answer "no" -- I'm probably messing with stuff that netgear would rather I stay away from.)
Edit: Thankfully, "strings" was left in busybox (even if there's no link, I can still run "busybox strings".) It saved me the trouble of looking for a .deb package. I can't know for sure, of course, but it appears that the default shares are created via /usr/lib/librndb.so.0. For usb hotplug devices, the config files are created in /etc/frontview/usb/._share/devicename (replace "devicename" with something like "USB_HDD_1") and have contents that seem to be hard coded in the above mentioned shared lib.
Take care
Gary
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!