Vera extroot

I would test the firmware without extroot first. The new firmware implements a solution very similar to what I proposed with savespace but in many ways better because it is native rather than a patch and is combined with some more space saving ideas. It should be enough to keep your system going for some time. Once it is fully released I will look at extroot again but this time will work with the ezlo team with it. I have had discussions with @edward to integrate it to the firmware at some point.

1 Like

@rafale77 once the new firmware is released, would you mind posting some step by step instructions for updateing extrooted systems?

In other words how to safely remove extroot an update the firmware without ending up with a brick :wink:

This should be fairly easy to do:

  1. From the extrooted vera, run a manual backup. (optional, run a backuptovera script to move your user data to the vera)
  2. Unplug the external drive and reboot
  3. Now that you booted from the onboard drive, run the upgrade (start from fresh, do not retain user data)
  4. Restore your backup on the new firmware. (make sure to tick the restore zwave network checkbox)
  5. Enjoy your config on the new vera! Apply the configuration changes I suggested on my “Zwave network explained” thread if you feel your network is crippled.
2 Likes

has anybody updgraded 7.30 on an extrooted vera

I did 5 hours ago. Followed the steps above (no 271), written by @rafale77. So far, so good!

1 Like

So you have to exroot again after upgrading?

I don’t think it is needed any more.

My fear is that with my vera edge the onboard drive was lucky to last 12 months before it died and now i have OS on enterprise SSD

Huh you are right… the edge is a completely different story. It would indeed be very beneficial. I will look into it when I can.

Just to confirm, so with the next firmware for Vera Plus, there is no need for extrooting anymore? But aren’t there still the same underlying reasons using external SSD as compared to onboard NAND (lack of wear leveling, garbage collection and poorer quality in general)?

The new firmware reorganizes the on-board NAND FLASH to make better use of available space, as well as reducing the wear on the NAND by making changes to how the FLASH is updated. These changes should eliminate the self-bricking during upgrades and NAND-wear failures.

That said, I plan to stay with my extrooted SSD. I was an early adopter of @rafele77’s extroot scripts (September 18, 2018) and have had no issues in over a year. As you point out, the SSDs are a much higher quality storage medium.

1 Like

@HSD99 is completely correct. As I said the new firmware has significant improvements making changes similar to my savespace script permanent and going a little further. I am testing the beta of 7.30 at the moment and will look at extrooting it. It failed for some obscure reasons the first time I tried and I did not spend too much time on it. It never worked on the edge as is because of DRAM limitations on the edge but there could be a workaround once I get it to work on the plus.

1 Like

I should have clarified that extrooting on 7.30 seems to have issues. I will wait for @rafele77’s updated scripts, should he decide to create them. I also understand that he has asked the Vera developers to add extroot as a built-in option (which would be an excellent idea) so I expect this to be possible one way or another. For me, since I already have the SSD, using a larger drive with all the attendant benefits is a no-brainer.

1 Like

Well, as I also have SSD, I’d like to continue to use it if there’s even a small benefit

Alright you win… :wink:
I spent some time fiddling around and managed to get extroot working again. The kernel downgrade on this firmware has made things a little tricky. Stay tuned. I will have a script ready after more testing in the next few days. I will pivot only the overlay partition this time which should make the script work also on the vera edge.

Filesystem Size Used Available Use% Mounted on
rootfs 10.6M 1.3M 9.4M 12% /
/dev/root 8.0M 8.0M 0 100% /rom
tmpfs 124.3M 196.0K 124.2M 0% /tmp
/dev/mtdblock7 58.1G 2.2G 52.9G 4% /overlay
overlayfs:/overlay 10.6M 1.3M 9.4M 12% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 487.8M 16.7M 441.6M 4% /tmp/log/cmh
/dev/sda2 58.1G 2.2G 52.9G 4% /overlay
/dev/mtdblock10 50.0M 20.0M 30.0M 40% /storage
/dev/mtdblock10 50.0M 20.0M 30.0M 40% /etc/cmh-firmware
/dev/mtdblock10 50.0M 20.0M 30.0M 40% /etc/cmh-backup
/dev/mtdblock9 9.8M 9.8M 0 100% /mios
/dev/mtdblock10 50.0M 20.0M 30.0M 40% /etc/cmh-ludl
/dev/mtdblock11 19.3M 1.0M 18.2M 5% /ezmi
/dev/mtdblock11 19.3M 1.0M 18.2M 5% /etc/cmh

4 Likes

Even if I’m not in The mood of investing other money on Vera hardware, I do understand they need to sell, and I think they should package a usb-2-m2 adapter with an SSD and sell it with extroot giving rafele77 the right credits

I think that they should package it all into a RasPi…

1 Like

This would not work. The vera is not arm based.
Heads up. The beta 7.30 firmware is indeed blocking extroot. The main reason behind it appears to me that the numerous workarounds to better utilize the onboard flash is neutralizing the ability for the kernel to pivot the root file system. As a workaround, I am actually going to create a firmware upgrade script which will upgrade you to the beta firmware while still extrooted. So the best way to go around this is to downgrade to 7.29, extroot with the previous extroot script and then run this new script I am working on to upgrade to 7.30 beta. This will take a little longer than I thought as it is a bit more complicated but in a way will make your vera upgrade process much more similar to what I am doing with my emulator. You will therefore not use the UI firmware upgrade feature which runs a different script.

Wonderful work.

What about those on Exroot, that have not updated at all yet? I assume we can still use the script you are creating?

Cheers!

C

Yes it should work. Unfortunately I am struggling with the downgrade at the moment so people who want to keep extroot, please do not upgrade to the beta quite yet. Once upgraded, the new storage partitioning can’t be reverted at the moment.

I think I found a solution… It will not be a full extroot but will serve to move all of the frequently written and overwritten user files to be run and loaded from the ssd.
See the attached script below. This assumes that you upgraded your vera to 7.30 beta, plugged in your SSD and already set up USB logging. Upload the .sh file, make it executable (chmod +x ssd730.sh) and execute the script ./ssd730.sh
ssd730.sh.zip (1.0 KB)

© 2019 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy