We have moved at community.getvera.com

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

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: VeraPlus Flash drive usage
« Reply #60 on: January 31, 2019, 08:53:12 am »
I hope it is ok.
And that you did not find something wrong.

I think you've done a great job!
If you want be to be picky Macs actually have ssh and scp built into the operating system, and you can access them from the terminal program.
Also, to prevent future confusion I think your quotation marks around commands and key presses have been converted to '?'. That may be the local settings on my system here, though.
As I say, well done! :)

C

Offline svaleb

  • Hero Member
  • *****
  • Posts: 508
  • Karma: +11/-7
Re: VeraPlus Flash drive usage
« Reply #61 on: January 31, 2019, 04:02:45 pm »
About the Mac.
It  a quote. Rafale did not know wether I used Mac or Win.
Have changed ? to ". I dont know why it sometimes change.
Thanks.

Offline rigpapa

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1121
  • Karma: +187/-3
Re: VeraPlus Flash drive usage
« Reply #62 on: January 31, 2019, 04:13:19 pm »
About the Mac.
It  a quote. Rafale did not know wether I used Mac or Win.
Have changed ? to ". I dont know why it sometimes change.
Thanks.

Some text editors will automatically change the straight quote " to a "curly" quote, to make the text more aesthetically pleasing. That may be a good typographic choice but it really screws up code, and often doesn't "paste" well into other facilities, like these forums. These editors often have a setting you can turn off to stop this automatic replacement (sometimes called "smart quotes" or similar).
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3, Lite. Hassio, Slapdash.

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 #63 on: January 31, 2019, 04:38:55 pm »
Sorry guys, rigpapa is correct. Whenever I post from my phone or ipad, it seems to convert all my ' and " into ?... editor compatibility problems.
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 #64 on: January 31, 2019, 04:59:32 pm »
Sorry guys, rigpapa is correct. Whenever I post from my phone or ipad, it seems to convert all my ' and " into ?... editor compatibility problems.

Figures. I can see it, but it might cause headaches for a newbie (as it were)

C

Offline korttoma

  • Hero Member
  • *****
  • Posts: 729
  • Karma: +26/-5
Re: VeraPlus Flash drive usage
« Reply #65 on: February 08, 2019, 02:45:51 am »
Am I supposed to add an external drive to the USB port that the script will make use of or does the script only change how the Vera internal flash drive is used?
Can the script be used on a Veralite? Has anyone tried?

Sorry for the n00b questions...
- Tomas

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: VeraPlus Flash drive usage
« Reply #66 on: February 08, 2019, 04:19:00 am »
Am I supposed to add an external drive to the USB port that the script will make use of or does the script only change how the Vera internal flash drive is used?
Can the script be used on a Veralite? Has anyone tried?

Sorry for the n00b questions...

I can be corrected but this script is to change the way in which the internal flash drive is used.

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 #67 on: February 08, 2019, 06:46:22 am »
Am I supposed to add an external drive to the USB port that the script will make use of or does the script only change how the Vera internal flash drive is used?
Can the script be used on a Veralite? Has anyone tried?

Sorry for the n00b questions...

If the idea is to use an external drive, look at the extroot thread. This thread is about using the existing storage on the vera. I don't have the flash map of the veralite at the moment so for now I would not recommend this.
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 korttoma

  • Hero Member
  • *****
  • Posts: 729
  • Karma: +26/-5
Re: VeraPlus Flash drive usage
« Reply #68 on: February 08, 2019, 02:46:14 pm »
If the idea is to use an external drive, look at the extroot thread. This thread is about using the existing storage on the vera. I don't have the flash map of the veralite at the moment so for now I would not recommend this.

I will check the extroot thread.

About the flash map for Veralite, would this help?

Code: [Select]
df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4608      4608         0 100% /rom
tmpfs                    31240       552     30688   2% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock7           11264      4140      7124  37% /overlay
overlayfs:/overlay       11264      4140      7124  37% /
/dev/mtdblock8            6528      6528         0 100% /mios

Code: [Select]
dmesg
Linux version 2.6.37.1 (builder@builder.micasaverde.com) (gcc version 4.3.3 (GCC) ) #2 Fri Feb 22 04:07:32 PST 2013
prom: fw_arg0=00000001, fw_arg1=83f46fb0, fw_arg2=03f473b0, fw_arg3=00000000
env[0]: memsize=64
env[1]: initrd_start=0x00000000
env[2]: initrd_size=0x0
env[3]: flash_start=0x00000000
env[4]: flash_size=0x2000000
env[0]: memsize=64
env[1]: initrd_start=0x00000000
env[2]: initrd_size=0x0
env[3]: flash_start=0x00000000
env[4]: flash_size=0x2000000
CPU revision is: 0001974c (MIPS 74Kc)
Ralink RT3883   ver:1 eco:5 running at 500.00 MHz
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat 80249270, node_mem_map 81000000
  Normal zone: 128 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 16256 pages, LIFO batch:3
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line:  console=ttyS1,57600 board=VERALITE rootfstype=squashfs,jffs2
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 62324k/65536k available (1890k kernel code, 3212k reserved, 451k data, 156k init, 0k highmem)
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:48
console [ttyS1] enabled
Calibrating delay loop... 249.85 BogoMIPS (lpj=1249280)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is MiCasaVerde VeraLite
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (ZLIB) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
ra_nand_probe: alloc 7f8, at 83841000 , btt(838415f8, 200), mtd:83841000
Creating 10 MTD partitions on "ramips-nand":
0x000000000000-0x000000080000 : "u-boot"
0x000000080000-0x0000000a0000 : "config"
0x0000000a0000-0x0000000b0000 : "factory"
0x0000000b0000-0x0000000d0000 : "config_default"
0x0000000d0000-0x0000000f0000 : "user_storage"
0x0000000f0000-0x0000004f0000 : "kernel"
0x0000004f0000-0x000000cf0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
0x000000cf0000-0x0000017f0000 : "rootfs_data"
ra_nand_block_checkbad: offs:1158000 tag: BAD
0x0000017f0000-0x000001ff0000 : "mios"
0x000001ff0000-0x000002000000 : "pid"
ramips_mdio: probed
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
Freeing unused kernel memory: 156k freed
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.4.4
Registered led device: veralite:red:error
Registered led device: veralite:orange:zwave
Registered led device: veralite:yellow:lan
Registered led device: veralite:blue:power
eth0: link up (100Mbps/Full duplex)
ra_nand_block_checkbad: offs:1158000 tag: BAD
JFFS2 notice: (373) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 7 of xref (0 dead, 0 orphan) found.
diag: Detected 'MiCasaVerde VeraLite'
eth0: link down
eth0: link up (100Mbps/Full duplex)
Compat-wireless backport release: compat-wireless-2011-05-23
Backport based on wireless-testing.git master-2011-05-27
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbcore: registered new interface driver rt2800usb
loop: module loaded
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
rt3883-ehci rt3883-ehci: Ralink RT3883 built-in EHCI controller
rt3883-ehci rt3883-ehci: new USB bus registered, assigned bus number 1
rt3883-ehci rt3883-ehci: irq 26, io mem 0x101c0000
rt3883-ehci rt3883-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
nf_conntrack version 0.5.0 (976 buckets, 3904 max)
xt_time: kernel timezone is -0000
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
rt3883-ohci rt3883-ohci: Ralink RT3883 built-in OHCI controller
rt3883-ohci rt3883-ohci: new USB bus registered, assigned bus number 2
rt3883-ohci rt3883-ohci: irq 26, io mem 0x101c1000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-1: new high speed USB device using rt3883-ehci and address 2
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
Initializing USB Mass Storage driver...
scsi0 : usb-storage 1-1:1.0
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
usbcore: registered new interface driver belkin
belkin_sa: v1.3:USB Belkin Serial converter driver
USB Serial support registered for cp210x
usbcore: registered new interface driver cp210x
cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
USB Serial support registered for Keyspan - (without firmware)
USB Serial support registered for Keyspan 1 port adapter
USB Serial support registered for Keyspan 2 port adapter
USB Serial support registered for Keyspan 4 port adapter
usbcore: registered new interface driver keyspan
keyspan: v1.1.5:Keyspan USB to Serial Converter Driver
USB Serial support registered for MCT U232
usbcore: registered new interface driver mct_u232
mct_u232: z2.1:Magic Control Technology USB-RS232 converter driver
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer           1.01 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
ramips-wdt: timeout value 60 must be 0 < timeout < 25
- Tomas

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 #69 on: February 08, 2019, 05:21:13 pm »
It does! Thank you. I have not gotten to go dust off the vera lite in my storage so this is useful. Unfortunately though you do not have an extra storage partition on the vera lite where you could offload some of the files. If I remember correctly, the veralite only has 64mb of storage and 11mb is available. I don?t know if people see the irony here but the available partition for the vera is going down as we go to newer models: 11mb for the lite, 10mb for the edge, 8.6mb for the plus... while mios has been selling us on larger nand flash, less and less is actually available for use so at each upgrade, we are actually downgrading the storage...sigh
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 korttoma

  • Hero Member
  • *****
  • Posts: 729
  • Karma: +26/-5
Re: VeraPlus Flash drive usage
« Reply #70 on: February 09, 2019, 01:30:39 am »
Ok, seems the extroot is then the only option for Veralite, I will join the discussion in the other thread.
Just thought that I would test it on my Veralite first but, now I need to work up the confidence to apply this savespace script on my main VeraPlus instead  :D
- Tomas

Offline Tarkus

  • Sr. Newbie
  • *
  • Posts: 31
  • Karma: +6/-0
Re: VeraPlus Flash drive usage
« Reply #71 on: February 09, 2019, 11:09:30 am »
Worked for me on my plus. Do you recommend a revert before any firmware upgrades?

Code: [Select]
Filesystem                Size      Used Available Use% Mounted on
rootfs                    8.6M      7.3M      1.3M  84% /
/dev/root                10.0M     10.0M         0 100% /rom
tmpfs                   124.8M    740.0K    124.0M   1% /tmp
/dev/mtdblock7            8.6M      7.3M      1.3M  84% /overlay
overlayfs:/overlay        8.6M      7.3M      1.3M  84% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          50.0M     11.5M     38.5M  23% /storage
/dev/mtdblock10          50.0M     11.5M     38.5M  23% /etc/cmh-firmware
/dev/mtdblock10          50.0M     11.5M     38.5M  23% /etc/cmh-backup
/dev/mtdblock9           10.0M     10.0M         0 100% /mios


Filesystem                Size      Used Available Use% Mounted on
rootfs                    8.6M      2.6M      6.0M  31% /
/dev/root                10.0M     10.0M         0 100% /rom
tmpfs                   124.8M      1.6M    123.2M   1% /tmp
/dev/mtdblock7            8.6M      2.6M      6.0M  31% /overlay
overlayfs:/overlay        8.6M      2.6M      6.0M  31% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock10          50.0M     16.2M     33.8M  32% /storage
/dev/mtdblock10          50.0M     16.2M     33.8M  32% /etc/cmh-firmware
/dev/mtdblock10          50.0M     16.2M     33.8M  32% /etc/cmh-backup
/dev/mtdblock9           10.0M     10.0M         0 100% /mios


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 #72 on: February 09, 2019, 11:32:24 am »
I willl have to see how the next firmware installs but for current firmware, I do not recommend to revert anymore since the firmware I have seen are only a rootfs and mios partition overwrites.
« Last Edit: February 18, 2019, 02:10:46 pm by rafale77 »
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.