You are not logged in.
I'm testing out the bcachefs filesystem. Everything seems to be working fine (I'm using it to type this), but I kinda just got lucky with this setup through trial and error and would like to know if it could be improved upon.
The program 'parted' was chosen due it its ability to easily be used in scripts.
# These disk wipe commands together are probably overkill. Not sure the best tool to use here:
wipefs -af /dev/sda
pacman -S gptfdisk
sgdisk -Zo /dev/sda
# Note that partition #4 is formatted to 'ext4': parted doesn't seem to recognize bcachefs
# I'm not sure the correct way to deal with this so decided to just fill it in with ext4
parted -s /dev/sda \
mklabel gpt \
mkpart ESP fat32 1Mib 512Mib \
mkpart BOOT ext2 512Mib 1024Mib \
mkpart SWAP linux-swap 1024Mib 8512Mib \
mkpart ROOT ext4 8512Mib 100% \
set 1 esp on \
set 3 swap on
mkfs.ext2 -F -L BOOT /dev/sda2
# Won't work without a small delay
sleep 1
mkfs.fat -F 32 -n EFI /dev/sda1
mkswap -L SWAP /dev/sda3
pacman -S bcachefs-tools
bcachefs format -f -L ROOT /dev/sda4
# Print progress for final result
parted -s /dev/sda print
The output for the final printout is:
Model: USB SanDisk 3.2Gen1 (scsi)
Disk /dev/sda: 123GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 537MB 536MB fat32 ESP boot, esp
2 537MB 1074MB 537MB ext2 BOOT
3 1074MB 8925MB 7852MB linux-swap(v1) SWAP swap
4 8925MB 61.5GB 52.6GB ROOT
/etc/fstab:
UUID=eb09bf49-e0d1-49d1-945b-7e0e940eae87 / bcachefs rw,noatime,noshard_inode_numbers 0 0
UUID=cc08ca83-d412-419f-be54-5a3493c1f806 /boot ext2 rw,noatime 0 2
UUID=D8A1-4E0A /efi vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
Just wanted to add:
I read here (https://wiki.archlinux.org/title/EFI_sy … unt_points) that
/efi is a replacement[6][7] for the historical and now discouraged ESP mountpoint /boot/efi"
This is why I opted to create separate /boot and /efi partitions. Strange that Arch actually recommends in the main guide to install using the /boot/efi method.
Apparently, if /boot is of the bcachefs filesystem, it cannot be mounted (well, it didn't work for me, anyways), so I decided on the separate /boot and /efi route.
Any ideas or comments are appreciated.
Thanks
Offline