Remote Headless Install while currently booted.

January 28, 2024, 01:29

maillouski

Nevermind, I read a bit on how it could be doable, but that's going to take wayyyy more time than actually go and grab the pi for a reinstall haha πŸ˜›

jannik44

wdym headless install while booted? just install ssh and you are good to go

maillouski

I mean dd the img while booted

jannik44

as a kind of backup solution? in that case you should better use rsync

maillouski

Nah, in a kind of recovery. The dd is not for reading the running pi but for writing to it, boot fresh new install.

oops.se

If the filesystem supports snapshot you could do a snapshot and a dd of the snapshot

maillouski

I wanted to download raspbian image, and make a remote full reinstall of the pi

oops.se

Advanced server hardware has this type of capabilities, not cheap SBCs.

maillouski

Yeah, I know, I wondered if it could be somehow hacked, by, for example, having a second mass storage device, copying the current running linux to it, chroot to the new storage, dd the image to the now unused storage, reboot and hope for the best πŸ˜›

oops.se

Of course you can add a second "bootable" USB stick and do dd if you have a Raspberry Pi 3 or a never model. And you can also add a boot selector, ex berryboot that you can change default OS to boot (SD or USB).

maillouski

that's not what I meant, but anyhow, we can close this topic as it seems I'm unable to make myself clear enough to be understood πŸ˜›

maillouski

and I don't really need to do it anymore.