How To - Log data to an external CIFS share (e.g. NAS) - No more USB

Just create a share. Connect via my manual in this thread. Copy all usb content and change mount point in datamine. If it won’t work you can change mount point back easily. But… all at own risk.

that’s a good idea… Did you just copy the directory with the files to keep the data from the attached USB drive? I would not want to lose all my data…[/quote]
I just unplugged the USB from Vera and plugged it into the TimeCapsule.

SanderL
Followed your instructions as per pdf, worked perfectly. many thanks.
David

[quote=“dsroberts1945, post:43, topic:176822”]SanderL
Followed your instructions as per pdf, worked perfectly. many thanks.
David[/quote]

Hey! I sure would like a link to that pdf file.

Thanks

It’s a few posts back.
http://forum.micasaverde.com/index.php/topic,16452.msg151507.html#msg151507

I too am having a little difficulty with this…

I have successfully mounted my USB stick:

mkdir /nas
mount -t cifs -o user=“”,pass=“”,nounix,noserverino //192.168.0.1/readyshare/USB_Storage /nas

note: my Netgear router gives access to the USB without username/password

Big thank you to everyone for earlier posts. I never would have worked that out myself!

df gives:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 4608 4608 0 100% /rom
tmpfs 31240 2320 28920 7% /tmp
tmpfs 512 0 512 0% /dev
/dev/mtdblock7 11264 2876 8388 26% /overlay
overlayfs:/overlay 11264 2876 8388 26% /
/dev/mtdblock8 4480 4480 0 100% /mios
//192.168.0.1/readyshare/USB_Storage
15131808 264 15131544 0% /nas

I am using the following in my plugin settings:

SetDataDirectory = /nas/
SetMountPoint //192.168.0.1/readyshare/USB_Storage
SetMountOptions -t cifs -o nounix,noserverino
mountLocation = //192.168.0.1/readyshare/USB_Storage
mountType = cifs

Again, big thank you for this too!

however, dataMine is still not logging or functioning properly … Could the problem be lack of username / password? The logs would suggest dataMine tries with username root. Is there a way to pass null username / password to dataMine?

Through SSH, I can see that my /nas folder is persistant, but it’s not filling up with files.

however, dataMine is still not logging or functioning properly

I thought I’d follow up with my dataMineDebugLog and pic of current status

Managed to get a dataMine/database CIFS setup on my WHS using all the bits contained in this forum. One thing left I’m puzzled about is how to copy the contents of the USB VFAT content to the WHS CIFS drive. Any guidance available?
Rgds
Dick

So got this working as far as mountig manualy. I will not use DataMine, but DataYous2. And DataYours2 don’t have any built in mapping to drives.
That said I will need to auto mount the NAS at startup. I’m far from expert on Linux, but I figure there has to be some startupscript. And I need some help to figure out where to write the line

mount -t cifs -o user=User,pass=PassWord,nounix,noserverino //192.168.0.10/VERA /nas &

Or should I use some other line?

Regards Peter!

I posted some code that can be used to mount a drive - just put it in Lua Startup…

[url=http://forum.micasaverde.com/index.php/topic,25134.0.html]http://forum.micasaverde.com/index.php/topic,25134.0.html[/url]

Hi all,

i have the mount working, only DataMine asks for a USB UUID, what do I need to put in there, or how can I change the DM config files.

Thanks for this info.

Works like a charm so hopefully consistent data collection now. I lost my dataMine data five or six times.

Cheers Rene

i had this working on the old version of UI7 but the latest firmware installed today has stopped it working :-\

This is perhaps the same problem as trying to install CIFS on UI7 / VeraEdge: [url=http://forum.micasaverde.com/index.php/topic,25800.msg216212.html#msg216212]http://forum.micasaverde.com/index.php/topic,25800.msg216212.html#msg216212[/url]?

this worked for me, i now have my Nas mounted again.

opkg update opkg install --force-depends kmod-nls-utf8 kmod-nls-base kmod-crypto-hmac kmod-crypto-md5 kmod-crypto-misc kmod-fs-cifs

i got it from this post
[url=http://forum.micasaverde.com/index.php?topic=30227.0]http://forum.micasaverde.com/index.php?topic=30227.0[/url]

Hi,

Found that after a factory reset you have to load the packages again using the two command lines. After that it mounts again.

Cheers Rene

I’ve had DM working fine for several months until it suddenly went from 35 Channels to 0. I did not install anything in vera. My USB CIFS stick shows all data entact and on the DM debug page I show…

50 03/23/15 6:42:12.105 luup_log:342: dataMine: Startup complete <0x2bcc7680>
50 03/23/15 6:42:27.338 luup_log:342: dataMine: Deleting config backup - /RT-AC66R/dataMineConfig.json.Wed Mar 18 06-20-43 2015.backup <0x2e4c7680>
50 03/23/15 6:42:27.370 luup_log:342: dataMine: Deleting config backup - /RT-AC66R/dataMineConfig.json.Wed Mar 18 06-19-08 2015.backup <0x2e4c7680>
50 03/23/15 6:42:27.371 luup_log:342: dataMine: Delete backups complete - deleted 2 of 50 files <0x2e4c7680>
06 03/23/15 6:42:53.311 Device_Variable::m_szValue_set device: 342 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 v:0xffa4e0/NONE duplicate:1 <0x2e4c7680>

Then…

/dev/sda1: LABEL=“MiOS” UUID=“0949ea46-6a92-4c50-bd3f-08dbb3df03ff”
-3-===========================================================================
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda1 on /tmp/log/cmh type ext3 (rw,noatime,nodiratime,errors=continue,barrier=0,data=ordered)
/dev/mtdblock8 on /mios type squashfs (ro,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
//192.168.122.1/DataMine on /RT-AC66R type cifs (rw,mand,relatime,unc=\192.168.122.1\xxxxxxxx,username=DataMine,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.122.1,file_mode=0755,dir_mode=0755,rsize=16384,wsize=57344,actimeo=1)
-4-===========================================================================

Disk /dev/mtdblock0: 0 MB, 524288 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn’t contain a valid partition table

Disk /dev/sda: 7962 MB, 7962886144 bytes
245 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 15190 * 512 = 7777280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 70 531649+ 83 Linux
/dev/sda2 71 1023 7238035 83 Linux
-5-===========================================================================
SetDataDirectory-/RT-AC66R/
SetMountUUID -00F4-0687
SetMountPoint -//192.168.122.1/DataMine
SetManualMount -0
-6-===========================================================================
{“Version”:“0.980”,“dbVersion”:2,“Events”:{“count”:123395,“last”:1427065008},“guiConfig”:[],“Variables”:[],“Graphs”:[],“LastWrite”:1427065043,“nextId”:1}

Any idea what has happened? Should I use one of the config backups in the DM folder? If so, how do I use it?
-7-===========================================================================

Hi! I’m trying to mount a USB share to my Vera Edge.

I don’t know if this is an issue with my Vera Edge or router (where the USB stick I want to use for logging is attached), but no matter what I do I get a

failed: Permission denied

or

mount: can't read '/etc/fstab': No such file or directory

The router (Asus RT-AC66U) is set to allow guest login for the USB share so “any user in local network can access the network place (Samba) without authentication”.

I have installed and updated the CIFS packages using the instructions in this thread.

My routers IP address is 192.168.1.1. The name of the attached USB drive is “16gbusb”. On this drive I have a folder called “datamine”.

I have created a “datamine” folder on the Vera using WinSCP.

I have tried a lot of different commands but shouldn’t these be right?

mount \\192.168.1.1\16gbusb\datamine\ \datamine -o user="",pass=""

or

mount -t cifs -o user="",pass="",nounix,noserverino \\192.168.1.1\16gbusb\datamine\ \datamine

What am I doing wrong? Linux is like endodontic therapy for me, so I’m feeling quit aggravated now. >:S

not sure if it’s the “slash” you are using, i see you use \ip\share try //ip/share (forward slash)

Sorry, I was unclear. It is when I use

root@MiOS_45002821:~# mount -t cifs -o user="",pass="",nounix,noserverino //192.168.1.1/16gbusb/datamine/ /datamine mount: mounting //192.168.1.1/16gbusb/datamine/ on /datamine failed: Permission denied root@MiOS_45002821:~# mount //192.168.1.1/16gbusb/datamine/ /datamine -o user="",pass="" mount: mounting //192.168.1.1/16gbusb/datamine/ on /datamine failed: Permission denied

I get the “Permission denied” message.

If I use

root@MiOS_45002821:~# mount -t cifs -o user="",pass="",nounix,noserverino \\192.168.1.1\16gbusb\datamine\ \datamine mount: can't read '/etc/fstab': No such file or directory root@MiOS_45002821:~# mount \\192.168.1.1\16gbusb\datamine\ \datamine -o user="",pass="" mount: can't read '/etc/fstab': No such file or directory

I get the “No such file or directory” message.

I take it as the corrct way of entering paths is using “/”, not ""?

In Windows the path is “\192.168.1.1\16gbusb\datamine”, that’s why I thought it was correct.

I’m really just monkeying around here…