sdtool
Ansible | sdtool | |
---|---|---|
7 | 6 | |
8 | 204 | |
- | - | |
6.0 | 0.0 | |
about 2 months ago | over 2 years ago | |
C | ||
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Ansible
-
Considerations for a long-running Raspberry Pi
I use some Pis for various things in my house including Zeroes through CM4s and 4Bs.
The Zeroes run Raspbian configured with the read-only filesystem option. I have found it necessary to uninstall `unattended-upgrades` because the overlayfs employed for read-only root caches disk writes in RAM and the update/upgrade process exhausts RAM. For the same reason I disable swap. It makes no sense to swap to RAM on a 512GB system.
Upgrades are tedious since they require disabling overlayfs, rebooting, upgrading, rebooting, and enabling overlayfs. I wrote Ansible playbooks to perform these tasks. (https://github.com/HankB/Ansible/tree/main/Pi)
I have a Pi 4B performing as a file server and running Debian (not Raspbian) It boots from an SD card so that the entire HDDs can be used for a ZFS pool. To reduce wear and tear on the SD card I have mounted `/var` to a ZFS filesystem. I should probably use `tmpfs` for `/tmp`.
I use a Pi CM4 to run HomeAssistant and that boots and runs from an NVME SSD where durability is less an issue.
-
Setup your RPi with only one command using Ansible
Nice. I've written some playbooks for my herd of Pis as well. (https://github.com/HankB/Ansible/tree/main/Pi) I dropped by mainly to say "well done!"
-
"Bootstrapping" a Debian install/config from a Raspberry Pi?
I use Ansible for a lot of repetitive tasks on R-Pi OS - mostly for a bunch of zeroes. https://github.com/HankB/Ansible/tree/main/Pi I haven't bothered automating stuff on Debian but it could be done.
-
Unable to boot the headless Pi
I've been using Ansible to configure Pis instead of the imager just because I've done it manually in the past and just automated that process. https://github.com/HankB/Ansible/blob/main/Pi/provision-local.yml
-
How many SD cards have you destroyed over the years while running Pis? This is going to be my 4th. Not sure what am I doing wrong, I know they are generally sensible for power outages, but come on, or is it just me?
I've started employing the readonly configuration available in raspi-config for systems that don't require writable storage. I've written some Ansible playbooks to make that a little more convenient. https://github.com/HankB/Ansible/tree/main/Pi On Pi 3/4 I usually use an SSD but I have a few zeroes that are more or less IoT devices and run from SD cards.
-
ERROR! Unexpected Exception, this is probably a bug: Unknown OpenSSL error ...
Yes, thanks - I meant to. https://github.com/HankB/Ansible/blob/0c4a1bce42f84acc4176624fed671ee460c683a6/Pi/provision-local.yml
-
Was Ansible Hard For You To Learn?
At one point (well before I finished the series) I decided to start doing rather than continue learning. My results have been very satisfying. (https://github.com/HankB/Ansible *) When I want to perform some task that I'm not familiar with, I check the online manual and/or search for examples. In that way my learning is more self directed. I do plan to get back to watching the series at some point but in the mean time my learning is more goal/self directed. I'm over the hump and at the point where Ansible is a useful tool. (I did not have any experience with other automation tools such as Chef or Puppet and my prior experience is as a S/W developer and not an administrator.)
sdtool
-
Considerations for a long-running Raspberry Pi
This covers the readonly filesystem, but doesn't cover the write protect flag that you can set on the microSD card itself[1]. The flag will configure the card's controller to drop any writes.
Also, creating a readonly root out of an existing disto is a bit of a pain, my preference is to use a distro (like TinyCore) that's already a readonly root.
https://github.com/BertoldVdb/sdtool
- How do I access my rom files on Linux Mint?
-
How to format SD Card that won't format or allow adding new data
If you have a memory card reader (not a USB based reader), you can inspect and unlock the SD card using SDtools - https://github.com/BertoldVdb/sdtool. Then try partitioning/reformatting the drive as you desire.
-
Write protected sd card problems
Bertold Sdtool can be used to change and query the write status, but as stated, it doesnt work for some reason
-
SD card "Write protected" after removing it from Raspberry Pi 4.
There's https://github.com/BertoldVdb/sdtool. Although unlikely, maybe you can unlock the card with it.
-
A resource for experimenting with the SD card CMD42 password lock/unlock command using Fedora 23 running a patched "Linux 4.1-rc4" kernel patched with Al Cooper's eight "V3" "mmc" patches.
"GitHub - BertoldVdb/sdtool: A small tool for managing the write protection flag of SD cards.": https://github.com/BertoldVdb/sdtool
What are some alternatives?
pi-gen - Tool used to create the official Raspberry Pi OS images
mmc-password-utils - User layer support for kernel MMC Password Lock/Unlock feature
comitup - Bootstrap Wifi support over Wifi
rpi-clone - A shell script to clone a booted disk.
sbts-install - Installs StalkedByTheState over the sbts-base system to build a home and business security appliance on NVIDIA Jetson series computers.