Now running minimal vanilla on my 4B for . Unfortunately I tried but failed to boot with root mounted to . After the third attempt's kernel panic due to "no working init found", I gave up. I now at least have swap disabled on and Pi-hole logs disabled. Any other tips for SD longevity?

@syntax
Can you describe exactly the steps you've taken?

It should be as simple as creating a(n ext4) partition on your HDD and LABEL it RASPIROOT and then copy/rsync the contents of RASPIROOT on your SDcard over to your HDD and then delete the RASPIROOT partition on your SDcard.
This should be done outside your RPi, so f.e. on your 'normal' computer.

@syntax
I just did the above with a RPi3B+ and a PiDrive, but instead of deleting RASPIROOT on the SDcard, I just gave it a new label:
tune2fs -L OLD_ROOT /dev/sdd2

mounted 'old' RASPIROOT on /media/rasp1/ and new on /media/rasp2/ and then ran this:
rsync -avHAX --progress /media/rasp1/ /media/rasp2/

Unmounted and disconnected everything from PC and connected things up with the RPi.

I think it took me ~10 minutes, where majority of time was making sure I got the right devices in my commands.

@FreePietje
And now I've discovered tune2fs - thanks. I always wondered if I could change labels without repartitioning.

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!