We have moved at community.getvera.com

Author Topic: VeraPlus Flash drive usage  (Read 4545 times)

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: VeraPlus Flash drive usage
« Reply #15 on: January 22, 2019, 09:24:16 am »
Of course that was the exroot file! Doh!
The save space stops the engine
Makes a new folder out of cmh
Moves some files from cmh to the new folder
Symlinks the new location to the old
Restarts the engine
It uses absolute paths so could be run (as far as I can tell) from anywhere.

Revert does pretty much the exact reverse

C

Offline svaleb

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +11/-7
Re: VeraPlus Flash drive usage
« Reply #16 on: January 22, 2019, 09:44:35 am »
Thanks Catman
I know little of scp and ssh.
That is why I asked about installing from a usb especially.
In pracis.

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1749
  • Karma: +101/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: VeraPlus Flash drive usage
« Reply #17 on: January 22, 2019, 12:33:01 pm »
Thank you for the enthusiastic responses Catman!

Yes his responses are correct. The script is pretty simple and just moves files and links around and the revert does the opposite.

The vera mounts the USB log partition on its own. It doesn't erases it unless you do it from the UI by unchecking and rechecking the USB log function.
openLuup (79 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: VeraPlus Flash drive usage
« Reply #18 on: January 22, 2019, 12:37:24 pm »
No problem.  Firm believer that it's not really reasonable to complain if I'm not going to engage with potential solutions :)

C

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1749
  • Karma: +101/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: VeraPlus Flash drive usage
« Reply #19 on: January 22, 2019, 04:38:43 pm »
Was just reading this thread:

http://forum.micasaverde.com/index.php?topic=62422.0

and I am a bit flabbergasted that the vera plus and the vera edge both have a second firmware partition and yet it appears that it is either completely unused and wasted space or that we have no way to switch to it as even support seems to say that when the first partition is corrupted, the vera is toast. Maybe Sorin or someone from support could give us some insight as to why we have so many backup firmware partitions (seems like 2 for the vera plus) and how can we switch to booting from it. I actually think that it is a great feature to have a failsafe firmware partition from which you can copy everything over or you can switch to when there is a problem. It is pretty common in embedded devices to prevent bricking but not sure how the MTK based veras are handling it.
openLuup (79 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline svaleb

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +11/-7
Re: VeraPlus Flash drive usage
« Reply #20 on: January 23, 2019, 04:30:49 am »
Rafale, catman
You are both most helpful !

I DO understand what the files are doing.
I an just TOO STUPID to DO it.

1. I put in the usb.
2. I write "./savespace.sh" in "test luop"
3. How do I check it is done ?

Sorry !

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: VeraPlus Flash drive usage
« Reply #21 on: January 23, 2019, 04:45:24 am »
Rafale, catman
You are both most helpful !

I DO understand what the files are doing.
I an just TOO STUPID to DO it.

1. I put in the usb.
2. I write "./savespace.sh" in "test luop"
3. How do I check it is done ?

Sorry !

Not stupid, I suspect, probably more 'un-skilled' or 'in-experienced' :)

I don't think that it will work from the Test Lua (see I'm hardly an expert) Rafael can surely explain if I'm wrong or how he expects this to be done.
Do you know how to SSH into your Vera? That is how *I* would do it, but that's because it's what I'm used to.  I can give you step by step instructions but would need to ask a load of questions and probably get some pre work sorted for you.

*Probably* best to wait for Rafael to respond and we can go from there.

C

Offline svaleb

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +11/-7
Re: VeraPlus Flash drive usage
« Reply #22 on: January 23, 2019, 05:00:11 am »
No. I dont know how to use ssh or scp as erlyer mentioned.
(Apart from vera support help some years ago.)
And with vera3 I ruined 2 or 3 usb sticks using "datamine".
So I would very much like some step by step "how to".
Thanks for understanding.

I am on a vera plus now,
« Last Edit: January 23, 2019, 05:10:53 am by svaleb »

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: VeraPlus Flash drive usage
« Reply #23 on: January 23, 2019, 05:52:31 am »
No. I dont know how to use ssh or scp as erlyer mentioned.
(Apart from vera support help some years ago.)
And with vera3 I ruined 2 or 3 usb sticks using "datamine".
So I would very much like some step by step "how to".
Thanks for understanding.

I am on a vera plus now,

I'm going to see if Rafael can explain a simpler way that I will, but if not will help.

C

Offline svaleb

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +11/-7
Re: VeraPlus Flash drive usage
« Reply #24 on: January 23, 2019, 06:15:08 am »
Thanks a lot.

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1749
  • Karma: +101/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: VeraPlus Flash drive usage
« Reply #25 on: January 23, 2019, 10:48:42 am »
Hi svaleb,

see this for ssh
http://wiki.micasaverde.com/index.php/Logon_Vera_SSH
likewise for scp you can use wincp for windows
https://winscp.net/eng/index.php
or Rbrowser for mac
http://www.rbrowser.com

This is how you get access to the vera to run commands. Alternatively you can always dump the file through the app/develop app/luup files page and then an Os command in lua code but you won't see what is happening and whether it succeeds of fail so I would not recommend doing it that way;
openLuup (79 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1302
  • Karma: +33/-13
Re: VeraPlus Flash drive usage
« Reply #26 on: January 23, 2019, 10:51:44 am »
Here is the script. It will work on the vera edge/plus/secure.
Load it on your vera and run ./savespace.sh
There is no need to reboot the vera.

Also added the script to revert the changes

I am very interested.  I will copy the scripts to my VeraSecure - but I think I want want to hear some success stories before I execute.
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: VeraPlus Flash drive usage
« Reply #27 on: January 23, 2019, 12:46:34 pm »
Hi svaleb,

see this for ssh
http://wiki.micasaverde.com/index.php/Logon_Vera_SSH
likewise for scp you can use wincp for windows
https://winscp.net/eng/index.php
or Rbrowser for mac
http://www.rbrowser.com

This is how you get access to the vera to run commands. Alternatively you can always dump the file through the app/develop app/luup files page and then an Os command in lua code but you won't see what is happening and whether it succeeds of fail so I would not recommend doing it that way;

Pretty much what I thought.  If you need more help I can tag team :)

C

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1749
  • Karma: +101/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: VeraPlus Flash drive usage
« Reply #28 on: January 23, 2019, 07:48:54 pm »
Hi svaleb,

see this for ssh
http://wiki.micasaverde.com/index.php/Logon_Vera_SSH
likewise for scp you can use wincp for windows
https://winscp.net/eng/index.php
or Rbrowser for mac
http://www.rbrowser.com

This is how you get access to the vera to run commands. Alternatively you can always dump the file through the app/develop app/luup files page and then an Os command in lua code but you won't see what is happening and whether it succeeds of fail so I would not recommend doing it that way;

Pretty much what I thought.  If you need more help I can tag team :)

C

Your help is very much appreciated. Love the enthusiasm!  :D
openLuup (79 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline svaleb

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +11/-7
Re: VeraPlus Flash drive usage
« Reply #29 on: January 24, 2019, 07:03:45 am »
I have os-command in ALTUI.
So maybe I just need the right commands after setting the usb into vera ! (?)
This is what I have now:

Filesystem                Size      Used Available Use% Mounted on
rootfs                    8.6M      7.8M    824.0K  91% /
/dev/root                10.0M     10.0M         0 100% /rom
tmpfs                   124.8M      6.0M    118.8M   5% /tmp
/dev/mtdblock7            8.6M      7.8M    824.0K  91% /overlay
overlayfs:/overlay        8.6M      7.8M    824.0K  91% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /storage
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /etc/cmh-firmware
/dev/mtdblock10          50.0M      1.4M     48.6M   3% /etc/cmh-backup
/dev/mtdblock9           10.0M     10.0M         0 100% /mios
« Last Edit: January 24, 2019, 07:29:17 am by svaleb »