Turning an Old Android Phone into a Server (Redmi 4X [santoni])
This is my rough-and-ready notes for turning a Redmi 4X (santoni) into a tiny Linux server. Huge credit to the original work here: https://github.com/dreemurrs-embedded/arch-linux-santoni
Quick heads‑up: this will wipe and rework partitions, so don’t do it on a phone you still need as a phone. Backups first.
What I used
- A Linux host
- USB cable
- Some patience
Create a rootfs image
dd if=/dev/zero of=rootfs.img bs=1M count=2560
Format it as ext4
mkfs.ext4 rootfs.img
Mount it
sudo mount rootfs.img /mnt/rootfs
Grab Arch Linux ARM64 rootfs
![Turning an Old Android Phone into a Server (Redmi 4X [santoni])](/images/post/phone_server.jpg)

