An issue installing CachyOS

Hello everyone,

I am new to Linux in general and CachyOS in particular and wanted to try it out. But every time I tried to install it I encountered an error. I would like to use a dual boot setup with Windows as second operating system and I wanted to install both on the same SSD. I will attach an error message to the end but as far as I unstood it, there is a lack of storage (“write error: No space left on device” is part of the error message in the end). After some Google and some entries in this forum I thought that it might be an issue with the ESP partition size so I moved the surrounding partitions and enlarged it. But still the error occurs. I would be thankful for any help.

Best,
Gnauckator

Here is the complete error message. I hope it helps.

Command <i>mkinitcpio</i> finished with exit code 1.
Output:
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos.img
==> Using drop-in configuration file: '10-chwd.conf'
==> Starting build: '6.13.2-2-cachyos'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-cachyos.img'
cat: write error: No space left on device
bsdtar: Write error
bsdtar: Write error
==> ERROR: Early uncompressed CPIO image generation FAILED: 'bsdtar (step 1)' reported an error
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos-fallback.img -S autodetect
==> Using drop-in configuration file: '10-chwd.conf'
==> Starting build: '6.13.2-2-cachyos'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
bsdtar: kernel/x86/microcode/GenuineIntel.bin: Not found in archive
bsdtar: Error exit delayed from previous errors.
bsdtar: kernel/x86/microcode/AuthenticAMD.bin: Not found in archive
bsdtar: Error exit delayed from previous errors.
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-cachyos-fallback.img'
cat: write error: No space left on device
bsdtar: Write error
bsdtar: Write error
==> ERROR: Early uncompressed CPIO image generation FAILED: 'sort' reported an error

Show us the money (aka drives/partitions and sizes). I’m virtually sure it’s STILL too small an EFI partition.

1 Like

Here is the screenshot of my Partitions. The relevant one (in my understanding) is nvme1n1p1. That’s the one whose size I have increased from 100 MiB to 1 GiB. I thought that a 10 times increase in size might suffice. Any further thoughts about the problem? Thanks in advance for your help.

Best,
Gnauckator

That should be good enough, 1 GB is the recommended std now. As a future note, it’s usually preferred to copy text where possible vs graphic screenshots. It’s more readable and more standard.
Ie, in this case ‘df’ and/or ‘lsblk’ would have been preferable.
Is /boot mounted as your EFI partition? It’s clear that’s what is out of space, now we just have to figure out where it is. It might possibly be (just throwing it out) a memory full condition since the liveboot iso is copied to RAM?
A df from the liveboot environment after a failure would probably help narrow that down.

The message is clear, the /boot partition if full. On my system I have 2G for /boot since on arch it is also used for UEFI. My /boot is only using 300MB actually. Better be on safe side for that partition since it’s what allow you to start linux. In your case It seems to not have enough space to write the fallback initrd only. So just increase /boot size and you should be OK.

My advice is to create another partition for EFI of type FAT32 with at least 3 GB of space, that’s what I usually do whenever I install from scratch.

The error you see, it happened to me when the EFI partition didn’t have enough space (I’ve never understood why this isn’t checked before starting the installation process).

On the other hand, when you install it this way, you will have to copy the Microsoft folder from the other EFI partition and put it in the new EFI partition so that in the Linux boot menu it shows you the Windows option so you can boot from there without having to change the BIOS.

I now increased the EFI partition to 3 GiB and encountered the same error again. Afterwards I used df and this is the result:

Filesystem      Size  Used Avail Use% Mounted on
dev              16G     0   16G   0% /dev
run              16G  9.9M   16G   1% /run
efivarfs        128K   16K  108K  13% /sys/firmware/efi/efivars
copytoram        24G  2.3G   22G  10% /run/archiso/copytoram
cowspace         10G  1.1G  9.0G  11% /run/archiso/cowspace
/dev/loop0      2.3G  2.3G     0 100% /run/archiso/airootfs
airootfs         10G  1.1G  9.0G  11% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs            16G  2.7M   16G   1% /etc/pacman.d/gnupg
tmpfs            16G  3.7M   16G   1% /tmp
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-networkd.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-resolved.service
tmpfs           3.2G   72K  3.2G   1% /run/user/1000

I also ran lsblk with the following output

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0   2.2G  1 loop /run/archiso/airootfs
sda           8:0    0 232.9G  0 disk 
├─sda1        8:1    0    16M  0 part 
└─sda2        8:2    0 232.9G  0 part 
sdb           8:16   0 465.8G  0 disk 
└─sdb1        8:17   0 465.8G  0 part 
sdc           8:32   0 931.5G  0 disk 
└─sdc1        8:33   0 931.5G  0 part 
sdd           8:48   0 223.6G  0 disk 
└─sdd1        8:49   0 223.6G  0 part 
sde           8:64   1  58.2G  0 disk 
└─sde1        8:65   1  58.2G  0 part 
zram0       254:0    0  31.3G  0 disk [SWAP]
nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:11   0   3.1G  0 part 
├─nvme0n1p2 259:12   0    16M  0 part 
├─nvme0n1p3 259:13   0 120.5G  0 part 
├─nvme0n1p4 259:14   0   659M  0 part 
├─nvme0n1p5 259:15   0 242.1G  0 part 
└─nvme0n1p6 259:16   0  99.5G  0 part 
nvme1n1     259:7    0   1.8T  0 disk 
├─nvme1n1p1 259:8    0    16M  0 part 
├─nvme1n1p2 259:9    0   1.7T  0 part 
└─nvme1n1p3 259:10   0 104.8G  0 part 

Can you propose a step by step manual for this approach? It would really help me in case that the information above will not help.

Thank you all.

Best,
Gnauckator

I’m paying attention too, because it seems you should be good (but apparently aren’t).
I expected to see the mounts on your nvme in the df, but I don’t? You’d have to take those readings after a failure.

I did the df after I tried to install the OS once more (if this is what you mean with ‘taking the readings after the failure’)

Yes, it should (at least as I recall) show the mount points it was using on your disk. There is nothing mounted…maybe they changed it to unmount on failure?

It looks like you are not installing on the right disk partition. Can you show a list of your target partition for /boot, /, etc. ??? We don’t see any in the df output and the lsblk doesn’t show anything mounted. Are you sure you are using the correct target mount points for installation ???

By the way Fedora recommends /boot/EFI size min 600M and /boot min 1G so your 3G for EFI is enormous.

This isn’t Fedora, but I do agree from my experience. My current /boot (with two kernels) is 1/2 GB. That doesn’t allow much breathing room…but it would currently do.

Unfortunately, I am still trying to figure out and understand this whole filesystem and mount topic in Linux. Can you provide me a command or an example for this?

No, I’m not. Where can I configure this in the installer? Which partition needs to specified as mount point? When I open the partition manager, shall I select the EFI partition and make it a mount point? What would be the appropriate path? Is it this “/”-thing? Or did I understand the whole concept completely wrong until now?

According to your partition screenshot, your efi parition is nvmen1p1 and the root btrfs partition is nvmen1p6 . You should use the manual partition option during install (expert) and specify that nvmen1p6 is a btrfs partition with the root partition"/" (and that the uefi is nvmen1p1). I have no windows at my place, so I cannot tell much about dual booting. Be sure to read the wiki on filesystem Filesystems (the btrfs part) and the installation on root wiki Installation on root. (including the dual booting section).
Keep trying! I’m sure you will find a way to install :+1:

PS: Errors are the only way to learn :grinning:

It’s often better to install windows and Linux on 2 separate SSDs as there have been know issues running windows and Linux on the same SSD. You can still dial boot and smaller SSDs are cheaper.

Hey everyone,

thanks again for all the help you provided. Apparently. I managed to install CachyOS even though I don’t know exactly how…
What happened: I tried it several times (again) to install it and at one instance the installation process completely worked without errors. But afterwards, there was no boot option for CachyOS. And after a little (discouraged) break, I tried installing Ubuntu just to get some more experience with installing and working with a Linux distribution (even if it is no Arch). But after the installation of Ubuntu, suddenly CachyOS was available in the boot loader at the start up of thePC. So I assume (with my very limited understanding) that the installation of this boot loader for startup went wrong (even though all further data has been installed) and the installation of another distribution (namely Ubuntu) fixed this issue.
The topic can be seen as closed even if I can’t provide detailed information on how I exactly solved it…
Thanks again to all the people who tried to help me. You are great!

Best,
Gnauckator

This is because the Ubuntu osprober recognizes all bootable partitions on the disks. However, this is undesirable in CachyOS.
If you don’t like this, you can change it to your liking.

GRUB_DISABLE_OS_PROBER=false

https://wiki.archlinux.org/title/GRUB