Use of USB Thumb on MB Pro

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: Use of USB Thumb on MB Pro

Post by Gyvate »

Bart wrote: Mon Feb 21, 2022 4:17 pm ....
And also where you can buy the sd cards (and/or the USB sticks) in the EU. They are very limited available in the Netherlands.
Outside of that you are stuck with import taxes.
Try www.mouser.de or www.arrows.de and look for the Western Digital/SanDisk SDSDQED-008G-XI, SDSDQED-016G-XI, SDSDQED-032G-XI, SDSDQED-064G-XI (microSD Card, 8-64 GB, SLC Flash)
They deliver from the U.S.
But be prepared for delivery delays due to (not only COVID caused) production shortages.
You will pay the "import tax"/VAT for NL already in their web shop.
And in NL you also have to pay the VAT (BTW) on all goods from inside the EU.
The U.S. merchant sells the items before the local taxes (net price) and what you call "import tax" is nothing else but the VAT of your country.
So, in reality, there is no extra tax.

And, no idea where Boris stands with his tests, but my test (and meanwhile production) installation (8 GB SLC micro SD with a USB adapter inserted into the inside USB port) works perfectly well. The only limiting factor is the USB2 port speed.
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
User avatar
Bart
Expert Boarder
Expert Boarder
Posts: 128
Joined: Fri Nov 20, 2020 12:08 am
Contact:

Re: Use of USB Thumb on MB Pro

Post by Bart »

Gyvate wrote: Mon Feb 21, 2022 5:17 pm And, no idea where Boris stands with his tests, but my test (and meanwhile production) installation (8 GB SLC micro SD with a USB adapter inserted into the inside USB port) works perfectly well. The only limiting factor is the USB2 port speed.
I ordered a micro SD (a SanDisk SDSDQED-008G-XI). Before it arrives, I have a few questions.

- are there any specifications for the adapter? Those things don't cost anything but...there are some that are already falling apart just looking at them. That we don't want... I do have a few, but if the SD card for the MB has other, high requirements, what about the adapter?

- The pro has an internal USB flash drive. Is there a difference in read/write speed with the external USB connection on the front? It is not my preference to use the internal port but if the speed/reliability is much less...

I can export data but I don't see how to import it back to the new SD card. In the import menu I see Meteotemplate, etc but no Meteobridge option.

Thanks in advance,

Bart
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: Use of USB Thumb on MB Pro

Post by Gyvate »

I'm using this item:
https://www.amazon.nl/-/en/dp/B07DC7HWS ... 170&sr=8-1
It may look as if falling apart but it's pretty solid. To fit into the internal port it needs to be rather flat - this one fits. And technically they don't have to do much. And it's USB2 speed. Running now for 6 months flawlessly.

You could of course use the front USB port. Theoretically it should work. Practically I observed stability issues in the microSD/USB adapter combination with the SLC microSD in the front port. No idea why. They were all gone after using the internal port. Backups were never an issue in the front port, but running the database there was somehow, even when using an external HDD. Maybe it was just my device.

I started working on the internal port only because of these stability issues with the front port.

The other thing is, if you were using the front port for running the database, the internal 1 GB SLC would be bare, unused ...
You could remove it and use it for backups in the backside USB port. If you replace the internal USB stick, you can also use it for backups in the front port.

Why would you want to re-import exported data ? (there could be reasons though).
You can restore a database backup you have made earlier (best just before shutting down the system and replacing the internal USB stick) - once the internal USB is replaced by the microSD card and the system restarted, you can just restore the database. It will automatically end up on the SD card. But don't forget to save your system configuration before (System/Administration) - you will need to restore this too !

You will also have to save the content of the \\METEOBRIDGE\data directory tree (otherwise all non-default data will get lost: templates, scripts, exports, ....) - and copy it back once you have the SD card installed.
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
Xanti19
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Wed Feb 10, 2021 8:06 pm

Re: Use of USB Thumb on MB Pro

Post by Xanti19 »

I have connected a 16GB USB stick (Fat32) to my MB Raspberry. The log shows "no target media found" when backing up the database. Rebooting the MB Raspberry didn't help. Do I have to mount the USB stick somewhere?
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: Use of USB Thumb on MB Pro

Post by Gyvate »

what Raspberry Pi are you using ? RPi3 or RPi4B.
On a RPi4B by preference use one of the USB3 ports. The USB2 ports are pretty weak regarding power supply.

You can connect to your RPi via SSH with puTTY port 22 (IP of your RPi, user and password as in your WebUI) and check if it is connected and a valid partition found.

Code: Select all

ls /dev/sd* -l 
"-l" is a lower case L
should provide
/dev/sda
/dev/sda1
instead of "a" you may find a "b"
sd stands for "special device" and names external drives connected vi USB
the backup script expects a device named sdx1 where x = a, b, c ....
the script mounts the device for and during the backup, so nothing you need to do

If you find only sda or sdb without a "1", you may need to reformat the USB stick again.
If it remains sda, sdb, you would have to change the backup script (and save it somewhere as it will be overwritten with each update)
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
Xanti19
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Wed Feb 10, 2021 8:06 pm

Re: Use of USB Thumb on MB Pro

Post by Xanti19 »

Thank you for your quick reply.
It's an RPI4. Reconnecting to USB3 and reformatting was unsuccessful. A very old USB stick with 1GB was then displayed with SDA1. The backup is now displayed in the log: backup completed: dbase-202203101322 (1.6M). In the network under Meteobridge > Data I don't see the USB stick or the backup. But I think this is normal.
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: Use of USB Thumb on MB Pro

Post by Gyvate »

if you want to see the stick, you will have to mount it into the published (exported) file system.
connect to the RPi via SSH

Code: Select all

mkdir /tmp/mnt/data/USB
mount /dev/sda1 /tmp/mnt/data/USB
Then you will find a folder "USB" under \\METEOBRIDGE\data

you will have to repeat the mount after a backup as the backup script dismounts the device again
exception: if you have the folder opened in Windows File Explorer, the script cannot dismount it.
The mkdir command you only need to execute once 8)
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
Andyk1
Expert Boarder
Expert Boarder
Posts: 87
Joined: Fri Jan 05, 2018 1:14 am
Location: Oklahoma, USA
Contact:

Re: Use of USB Thumb on MB Pro

Post by Andyk1 »

Where can I find the list of authorized SLC SD Cards or any cards. 2 gig sd is almost full.
Image
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: Use of USB Thumb on MB Pro

Post by Mattk »

Andyk1
Expert Boarder
Expert Boarder
Posts: 87
Joined: Fri Jan 05, 2018 1:14 am
Location: Oklahoma, USA
Contact:

Re: Use of USB Thumb on MB Pro

Post by Andyk1 »

Thank you Mattk. Ordered 16 gig SDSDQED-016G-XI. Will a simple Copy over work or a procedure. It's been many years since I've had to do this and don't remember. Not sure why searching here is not coming up with anything. Thank you again.

Andy.
Image
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: Use of USB Thumb on MB Pro

Post by Gyvate »

you will have to do a few things:
- a backup of your configuration onto an external USB device (System --> Administration)
- a backup of your database onto an external USB device (System --> Administration)
and if you have MB on RPi create a new MB image on the new SD card
- also save your own scripts, exports, templates (.exp, .metachart) from the SMB share (\\METEOBRIDGE\data)
(also, in case of a RPi, copy your license information from the license page - you may need to enter it again with the new SD card)

then shut down the MB Pro or RPi, exchange the SD card, restart it
1. restore your configuration from the external USB device (System --> Administration)
2. make a restore of the database from your external USB device (System --> Administration)
3. copy your personal script, exports, templates etc. back to the SMB share

(you could also do this by connecting the old SD card via a USB/SD adapter to your MB and copy all you need via SSH,
but then you have to know the locations of each file and will have to mount the external USB device into the file system -
the approach via the browser interface is easier)
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
Post Reply