# Raspberry pi 4 btrfs

**URL:** <https://forum.endeavouros.com/t/raspberry-pi-4-btrfs/63841>\
**Category:** Installation\
**Created:** [December 2, 2024, 9:54pm UTC](https://forum.endeavouros.com/t/raspberry-pi-4-btrfs/63841 "2024-12-02T21:54:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Solid\_Rhino](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/s/7c8e57/32.png) [@Solid\_Rhino](https://forum.endeavouros.com/u/Solid_Rhino)\
**Post date:** [December 2, 2024, 9:54pm UTC](https://forum.endeavouros.com/t/raspberry-pi-4-btrfs/63841/1 "2024-12-02T21:54:31Z")

</div>

Is it still possible to use the old script to create an image for the Raspberry Pi 4 with BTRFS file system?

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [December 3, 2024, 3:45am UTC](https://forum.endeavouros.com/t/raspberry-pi-4-btrfs/63841/2 "2024-12-03T03:45:09Z")

</div>

That would involve extensive hours to bring the script back up to snuff.  
here is how to start down the path for btrfs on RPi 4

First step would be to create a RPi 4b rootfs with btrfs. To do so, go to  
[https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4](https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4)  
Then switch to the Installation Tab.  
Install a uSD card or USB 3 SSD to a USB connector.  
These commands will need root permissions. To keep from typing sudo many times,  
I just use su to switch to root permissions.

Now follow the instructions to create a RPi 4b rootfs on the Target storage device. Use  
lsblk -f  
to list the devices and find the device name of your target storage device. Should probably be something like /dev/sda or /dev/sdb

```auto
Step 4 change mkfs.ext4 /dev/sdX2 
       TO
       mkfs.btrfs -f /dev/sdX2
Step 5 - As per the notes under AArch64 Installation, change
       wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz
       TO
       wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz
       The only thing you are changing is armv7 to aarch64 now change
       bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root
       To
       bsdtar -xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root
       again the only thing you are changing is armv7 to aarch64 
       Then do the sync command

```

Step 6.1 As per the notes under AArch64 Installation,  
` sed -i 's/mmcblk0/mmcblk1/g' root/etc/fstab`

Step 10 add  
pacman-key --lsign-key [builder@archlinuxarm.org](mailto:builder@archlinuxarm.org)

Now you should have a working rootfs with btrfs on partition 2

as root use vi or nano to edit /etc/pacman.d/mirrorlist  
line 7 comment out  
Server = [http://mirror.archlinuxarm.org/$arch/repo](http://mirror.archlinuxarm.org/$arch/repo)

now uncomment two mirrors closest to you.  
close file

pacman -Syu

I had 147 packages updated.

Now you can build your system the Arch Way. If you get this far, I can probably give some help.

Pudge

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [December 3, 2024, 4:28am UTC](https://forum.endeavouros.com/t/raspberry-pi-4-btrfs/63841/3 "2024-12-03T04:28:02Z")

</div>

I took a close look at the current script I use for making the images offered on github.

I think I can offer a way to use btrfs as an option without a lot of work.  
But you would have to create the btrfs image on your own, which is not difficult.  
Building the image only takes 7 to 8 minutes on my Radxa ROCK 5B, so probably 10 to 15 minutes on a RPi 4b.

Pudge

Let me look at this some more tomorrow.

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [December 9, 2024, 2:18am UTC](https://forum.endeavouros.com/t/raspberry-pi-4-btrfs/63841/4 "2024-12-09T02:18:55Z")

</div>

@Solid_Rhino  
btrfs is now available for all EnOS supported ARM devices.

[https://forum.endeavouros.com/t/btrfs-available-for-enos-supported-arm-devices/64095](https://forum.endeavouros.com/t/btrfs-available-for-enos-supported-arm-devices/64095)

Pudge
