PiHole System v2.0

So I’ve noticed the PiHole being a little bogged down as of late. I’m only running it on a Raspberry Pi 3b+ at the moment so I know I am a little limited as to the performance…but as I have a couple of background projects I want to tackle this year, I thought I would take the oppotunity to replace the SD card with an NVME SSD drive (only about 5000 times faster).

Overall it was a pretty painless process…the big part was realizing that it takes 5-10 seconds for the USB to recognize the booth drive…but then it’s *BOOM* and we are back up and running almost instantly (pretty impressive actually).

The drive went together without a hitch, and was recognized and everything…but then…ROADBLOCK.

I boot off of an SD card…how do I image that to the NVME drive?

Thankfully someone else ran into this same issue and wrote a script/small app to resolve this very issue…and DAMN is it easy and impressive. With a small installation and a simple command of…

$ rpi-clone sda

I was up and running with no issues!

================================================================

Mad props to https://github.com/billw2/rpi-clone

On a Raspberry Pi:

	$ git clone https://github.com/billw2/rpi-clone.git 
	$ cd rpi-clone
	$ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin

Make sure /usr/local/sbin is in your $PATH and then run rpi-clone or rpi-clone-setup with no args to print usage.

rpi-clone-setup is for setting the hostname in /etc/hostname and /etc/hosts files. It is run automatically by rpi-clone if -s args are given, but before your first clone using a -s option, test run rpi-clone-setup with:

      $ sudo rpi-clone-setup -t testhostname

And check the files under /tmp/clone-test to be sure the files have been edited correctly. If you need additional customizations to a clone, add them to the rpi-clone-setup script.