The issue I am facing:
I built a Raspberry Pi 4 with the latest Pi-hole 3 or 4 weeks back (I updated one of 2 on my network). I am using the Argon M.2 case, and a M.2 drive. I had some trouble initially so I tried different OS choices and finally got it running and working. But I do not recall which was my last choice for the OS option.
Now I want to rebuild the second (identical) Raspberry -- same model Raspberry, same case, etc. But because I cannot remember the choice for the OS installation when using the Raspberry Pi Imager, I am not sure what to choose! I know I can probably go with anything, but I would prefer to keep them the same OS option.
Before I reimage the second machine (and note my choices) and then go back and reimage the first machine again...
Is there any way to identify which OS choice I made for the first Pi I built so I can use the same exact choice on my second Pi?
You can usually tell from the first Pi itself. Raspberry Pi OS images keep a small text file on the boot partition that records which image was flashed:
cat /boot/firmware/issue.txt
(on older releases it is /boot/issue.txt). It shows the image date and the pi-gen stage. stage2 means Lite, stage4 means the regular Desktop image and stage5 means Desktop with recommended software.
To confirm the release and whether it is 32 or 64 bit:
cat /etc/os-release
dpkg --print-architecture
arm64 means you used the 64-bit image and armhf means 32-bit. Put those three together and you know exactly which entry to pick in the Imager for the second Pi.
This is your answer.
A Raspberry Pi 4B will be able to run any available Raspberry Pi OS.
Instead of using the previous choice, try to use the most recent one: Raspberry Pi OS 64-bit (Debian 13 - trixie). You don't need the 32-bit version or the "Legacy" one.
There are 3 available options:
- Raspberry Pi OS: with Desktop environment
- Raspberry Pi OS Full: with Desktop environment and a few other applications
- Raspberry Pi Lite: without a Desktop environment.
If you don't want to use a desktop environment in your Raspberry Pi, choose the Lite version (which is usually the most common option to run Pi-hole).
My apologies for being a bit unclear! My OS build is the latest updates of the raspberry Pi OS (based on Trixie) -- it was just the type of build I could not remember (e.g. full with desktop, lite without desktop, etc.).
I will look at the drive for the /boot/firmware/issue.txt file and see if that answers my question!
Thanks you both for the fast response!
P.S. I ran the cat command and got back the following response:
Raspberry Pi reference 2026-09-15
Generated using pi-gen, GitHub - RPi-Distro/pi-gen: Tool used to create the official Raspberry Pi OS images · GitHub , 2c235fa703cacb65e0fe0b2ab2fcb23d44dfd268, stage2
It seems I used the lite build. I really appreciate that tidbit!
I realize one more thing. I inadvertently named the first built Pi (hostname) as "Pihole-1" when the name should have been "Pihole-2". Not a huge issue of course, but each case is labeled and I want to keep them accurate rather than swapping hardware around.
Can I simply change the hostname by editing the hostname file or must I do something more?
pi@Pihole-1:~ $ cat /etc/hostname
Pihole-1
@NetworkGuy, this is a forum for Pi-hole related questions, issues and information.
Your issues are Raspberry Pi OS issues. I strongly suggest you visit the Raspberry Pi forums at:
https://forums.raspberrypi.com/index.php
Gotcha, thank you for the link. I will post that question on their site. Appreciate the information shared!
I wanted to let you both know that I was able to get both Pi's setup and working as expected. I really appreciate that information which got me on my way.
Again, I want to thank you both!