4 ms·
Love the one up manship! I read the “How to shrink a file system without a live cd. So here’s my one. How to shrink a file system without a live CD as part of
by hcfman 2y ago
Love the one up manship!
I read the “How to shrink a file system without a live cd. So here’s my one. How to shrink a file system without a live CD as part of a single command install script of a program.
My sbts-aru sound localizing recorder program does that on the pi.
I’m willing to bet that no other project on the Internet does this, but I’d love to be surprised. Let me know.
It installs the majority of the code, then reboots, shrinks the file system. Creates additional partitions and labels them installing file systems. Then finishes the install and comes up running.
So the procedure goes as follows.
sudo apt install -y git
git clone https://github.com/hcfman/sbts- aru.git
cd sbts-aru
sudo -H ./sbts_install_aru.sh
That’s it. It comes up running a recorder on a system with multiple partitions running an overlayFS on memory on the first one.
It will even work on a Raspberry Pi zero (Works on all Pi versions) and it doesn't matter if it's Raspbian or Bookworm.