Skip to main content
Topic: Unable to mount BTRFS with the live ISO... (Read 445 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unable to mount BTRFS with the live ISO...

Something strange going on here. I am trying to setup a new system to run some web services for us (MariaDB, HTTPS, etc) and upon booting the live CD from something like the 14th of last month, partitioning the disk, and formatting the partitions, I am unable to mount the freshly formatted BTRFS partitions.
Code: [Select]
<booted into live environment, logged in as artix user>
su
pacman -Syu
pacman -S parted
parted -a optimal /dev/sda
mkfs.vfat -F 32 -n EFI /dev/sda1
mkfs.ext4 -O 64bit,metadata_csum -b 4096 -i 8192 -L Boot /dev/sda2
mkfs.btrfs -m dup -d single -L Artix /dev/sda3
mkdir /mnt/artix
mount /dev/sda3 /mnt/artix
Now I get an error despite the image appearing to have BTRFS and the tools installed.
Code: [Select]
mount: /mnt/artix: unknown filesystem type 'btrfs'.
There is nothing in 'dmesg' or any other log I could find, so I am not sure what to do now.
-The Great Sephiroth

 

Re: Unable to mount BTRFS with the live ISO...

Reply #1
Okay, I put this to the side. Came back today. Booted the live ISO. Installed parted to the live environment (pacman -S parted). It did a lot of updates. The BTRFS partition mounts flawlessly. That is the end of the good news.

When I try to mount sda2 (ext4) it refuses to mount now.
Code: [Select]
localhost:[root]:~# mount /dev/sda2 /mnt/artix/boot/
mount: /mnt/artix/boot: unknown filesystem type 'ext4'.
       dmesg(1) may have more information after failed mount system call.
The ext4 module is not loaded. If I attempt to modprobe it, I am told it does not exist. If I look, I see "ext4.ko.zst" inside of "/lib/modules/6.5.7-artix1-1/kernel/fs/ext4/", indicating that it does exist. I'm lost. I have no clue what I am not doing or am doing. My Gentoo stuff runs fine. I love Artix for servers but every time I try a clean install I keep hitting one FS or another saying it is an unknown type. The kernel modules exist. The system can format these partitions and both e2fsprogs and btrfs-progs are installed, indicating that all is good. Nothing is in dmesg. It just refuses to mount.

Update:
I figured it out. When I installed parted, things got updated.
Code: [Select]
modprobe: FATAL: Module ext4 not found in directory /lib/modules/6.4.8-artix1-1
localhost:[root]:~# l /lib/modules
total 0
drwxr-xr-x 4 root root 380 Oct 27 21:38 6.5.7-artix1-1
So it wants kernel 6.4.8 but 6.5.7 is now installed. How can I use parted and not bork a live environment?
-The Great Sephiroth