https://superuser.com/questions/117136/how-can-i-mount-a-partition-from-dd-created-image-of-a-block-device-e-g-hdd-u
losetup --partscan --find --show disk.img
mount /dev/loop0p1 /mnt
to free up loop0, use after umount:
losetup -d /dev/loop0
https://superuser.com/questions/117136/how-can-i-mount-a-partition-from-dd-created-image-of-a-block-device-e-g-hdd-u
losetup --partscan --find --show disk.img
mount /dev/loop0p1 /mnt
to free up loop0, use after umount:
losetup -d /dev/loop0
Vorneweg: Es war wohl das Projekt welches am längsten gedauert hat im Punkt der Gesamtzeit, da das Testen im Sicherungskasten nicht einfach und täglich mal eben machbar ist.
Meine Tipps:
https://gist.github.com/gjrdiesel/4e93d8743b71babb58dcba4ee049247c
https://docs.portainer.io/v/ce-2.9/start/install/server/docker/linux
Just got this from:
https://stackoverflow.com/questions/19335444/how-do-i-assign-a-port-mapping-to-an-existing-docker-container
or:
https://mybrainimage.wordpress.com/2017/02/05/docker-change-port-mapping-for-an-existing-container/
If you run docker run <NAME>
it will spawn a new image, which most likely isn't what you want.
If you want to change a current image do the following:
docker ps -a
Take the id of your target container and go to:
cd /var/lib/docker/containers/<conainerID><and then some:)>
Stop the container:
docker stop <NAME>
Change the files
vi config.v2.json
"Config": {
....
"ExposedPorts": {
"80/tcp": {},
"8888/tcp": {}
},
....
},
"NetworkSettings": {
....
"Ports": {
"80/tcp": [
{
"HostIp": "",
"HostPort": "80"
}
],
And change file
vi hostconfig.json
"PortBindings": {
"80/tcp": [
{
"HostIp": "",
"HostPort": "80"
}
],
"8888/tcp": [
{
"HostIp": "",
"HostPort": "8888"
}
]
}
Restart your docker and it should work.
So far the only suitable guide for moving an existing ubuntu 20.04. installation completely to USB boot:
https://www.instructables.com/Raspberry-Pi-4-USB-Boot-No-SD-Card/
Influx install:
https://www.verdrahtet.info/2020/02/14/installation-von-influxdb-grafana-inkl-verbindung-zu-iobroker/
Influx Backup:
https://forum.iobroker.net/post/429747
Also ich mache mein Backup von der normalen Linux Kommandozeile aus und nicht unter der Influxdb-Konsole...
Das schaut dann so aus bei meiner Datenbank die iobroker heißt:
root@DietPi:~# sudo influxd backup -portable -database iobroker -host 127.0.0.1:8088 /tmp/iobroker_influx_backup
2020/05/10 20:28:39 backing up metastore to /tmp/iobroker_influx_backup/meta.00
2020/05/10 20:28:39 backing up db=iobroker
2020/05/10 20:28:39 backing up db=iobroker rp=autogen shard=49 to /tmp/iobroker_influx_backup/iobroker.autogen.00049.00 since 0001-01-01T00:00:00Z
2020/05/10 20:28:40 backing up db=iobroker rp=autogen shard=50 to /tmp/iobroker_influx_backup/iobroker.autogen.00050.00 since 0001-01-01T00:00:00Z
2020/05/10 20:28:40 backing up db=iobroker rp=autogen shard=51 to /tmp/iobroker_influx_backup/iobroker.autogen.00051.00 since 0001-01-01T00:00:00Z
2020/05/10 20:28:40 backing up db=iobroker rp=autogen shard=52 to /tmp/iobroker_influx_backup/iobroker.autogen.00052.00 since 0001-01-01T00:00:00Z
2020/05/10 20:28:41 backing up db=iobroker rp=autogen shard=53 to /tmp/iobroker_influx_backup/iobroker.autogen.00053.00 since 0001-01-01T00:00:00Z
2020/05/10 20:28:41 backing up db=iobroker rp=autogen shard=54 to /tmp/iobroker_influx_backup/iobroker.autogen.00054.00 since 0001-01-01T00:00:00Z
2020/05/10 20:28:42 backup complete:
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.meta
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.s49.tar.gz
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.s50.tar.gz
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.s51.tar.gz
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.s52.tar.gz
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.s53.tar.gz
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.s54.tar.gz
2020/05/10 20:28:42 /tmp/iobroker_influx_backup/20200510T182839Z.manifest
root@DietPi:~#
Vorher muss aber die Influxdb.config bearbeitet werden...:
Hatte mich damals hiernach gerichtet und entsprechend meinen Anforderungen umgesetzt...:
https://solaranzeige.de/phpBB3/viewtopic.php?t=310
Einen Restore hatte ich auch schon gemacht - ging problemlos.
https://solaranzeige.de/phpBB3/viewtopic.php?t=310
Recently I got an error on influxdb. The log file was not clearly stating an error. But Health target was not reached. Starting the service stated to read the error log, journalctl -xe .
Finally I saw the config pattern:
LimitNOFILE=65536 which basically could limit the number of files the service oder user??? can occupy.
After commenting with # . The service starts succesfully.
This is not due to the case having more than 65k open, but perhaps in contradiction to system limits .
This solved my issues on ubuntu but not on my original raspbian.
Some ESP8266-01 Boards need the Ping CH_PD pulled, high, otherwise it is in rest mode.
Pulled high means putting a 10kOhm resistor between CH_PD and VCC.