Hello,
I have recently finished building a computer, and am trying to install Garuda on it. Thinking it would be a simple process, I put 2 nvme ssd's in the computer with the intention of installing my OS over both of them as a single volume. I cannot figure out how to do this. So far I have only been able to install a broken system onto a raid0 array. At the moment, grub boots fine and I see the garuda loading screen. However, this loads for an infinite amount of time and if I press ESC I am met with:
setfont: KDFONTOP: Function not implemented
ERROR: resume: hibernation device 'UUID=e54f5ef2-c2b8-4f60-af05-d7bc44944bca' not found
mount: /new_root: can't find UUID=8ebd68ab-42eb-4cd9-9a23-bb5b9af402cb.
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off
garuda-inxi:
from chrooted installer terminal:
---------------------------------------------------------------------------------------------------------------------
[root@garuda-mate /]# garuda-inxi
12System:
12Kernel 5.19.7-zen2-1-zen 12arch x86_64 12bits 64 12compiler N/A 12Console N/A 12Distro Garuda Linux
12base Arch Linux
12Machine:
12Message No machine data: try newer kernel. Is dmidecode installed? Try -M --dmidecode.
Can't use an undefined value as an ARRAY reference at /usr/bin/inxi line 10383.
System:
Kernel: 5.19.7-zen2-1-zen arch: x86_64 bits: 64 compiler: N/A Console: N/A Distro: Garuda Linux
base: Arch Linux
Machine:
Message: No machine data: try newer kernel. Is dmidecode installed? Try -M --dmidecode.
Can't use an undefined value as an ARRAY reference at /usr/bin/inxi line 10383.
Garuda (2.6.7-1):
System install date: 2022-09-25
Last full system update: 2022-09-25 ↻
Is partially upgraded: No
Relevant software: None
Windows dual boot: No/Undetected
Snapshots: Snapper
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed units:
---------------------------------------------------------------------------------------------------------------------
from dropped root:
---------------------------------------------------------------------------------------------------------------------
sh: garuda-inxi: not found
I have tried:
btrfs raid - cannot install the system
mdadm raid - cannot boot into system
LVM - do not know how to implement with garuda
attempted the Arch raid-install page, am unsure how to use it with garuda, as it has its own installer
Most recent steps:
created array with mdadm
started installer
set mount point "/" on btrfs raid0 array (/dev/md0p1), gave root flag
set mount /boot/efi to physical drive partition (nvme0n1p1) on fat32 with boot flag
proceed with install, press done, staying in the live session.
update /tmp/calamares-root-05cvay7c/etc/mdadm.conf per arch RAID page, section 5.1
update /tmp/calamares-root-05cvay7c/etc/mkinitcpio.conf per arch RAID page, section 5.2
set root=/dev/md/0p1 per arch RAID page 5.3.
reboot
Setting raid0.defaultlayout=2 fails with bash: raid0.defaultlayout=2: command not found
For safety purposes when if raid0 as the os root, I have 10tb worth of raid5 HDD that I plan on backing it up to weekly, if I can ever figure this out.
If there is an easier way to use both disks as a single volume, please let me know. I will absolutely use it over RAID. I would use LVM, but I cant figure out how to get it working with the installer partitioner.
If I could mount just the root directories that grow from normal use/installing packages to the raid array/logical volume and put the rest of it elsewhere, I would be very happy with that as well. I know /home and /usr are the big ones, but I am unsure if there are any more and worry about restricting the others to a very small disk space.
This is my first forum post ever, please be nice and thank you for your help!
Install Garuda on the first hard disk, there is automatically a snapshot of your / area backed up for a restore, but that does not create a real backup.
On your second harddisk you backup whatever you want with rsync, vorta or borg as you like.
The really important stuff you backup on an external drive and additionally in the cloud to be on the safe side.
BTW, this is not a full garuda-inxi, you can post it here between three ~ on top and last line.
I've been going through the pain of dealing with this because I very much want a single partition for the whole OS, and because I have a spare computer that I can use while I tinker with this one.
I apologize for the incomplete garuda-inxi, that is all that it gave me from the terminal.
I posted garuda-inxi a pastebin because I did not know that the three ` collapsed large sections of text down.
Funny, I have a tinker computer like that too, but yours is a bit faster.
Well done.
But unfortunately I can’t help you with your problem, maybe a RAID expert will jump in.
bogomips: 217187
Question, where do you get this “12”, it doesn’t show up for me, live ISO only???
There is a difference between what you want and what you need.
I can understand that you want to experiment
Well, the original value of experimentation is that you enjoy the adventure yourself. Then, asking for help for edge case, imaginary, irregular, or unneeded scenarios, takes away the joy/fun of achieving this yourself.
Since you can break that PC with no cost, it would be great if you tested multiple potential ways of doing what you want, and post your feedback, so more people have profit.
as per Arch wiki, and upon rebooting I now get this: Warning: /lib/modules/5.19.11-zen1-1-zen/modules.devname not found - ignoring
followed by the garuda splash screen. This time, however, I do not have keyboard access, so I cannot esc into the terminal output.
edit: spelling
Following this post here, I ran mkinitcpio -p linux while in the garuda chroot tool (after installing alacritty for the 100th time . . . haha), and by god it works! I can successfully boot into my install. @petsam, you were right, it feels way better figuring this out myself!
For those of you looking to do this as well, follow my 1-9 steps, then:
reboot back into the live iso
open the file explorer, go computer > filesystem > mnt > etc > mkinitcpio.conf and edit it (or sudo nano if you prefer), adding dm-raid dm_integrity raid0 raid1 raid10 raid456 to the MODULES list, and mdadm_udev to the HOOK list
after installation, through a terminal (in my case MATE terminal), install alacritty
run pacman -S mkinitcpio-firmware
run the Garuda Chroot tool, and run mkinitcpio -g /boot/initramfs-linux-zen.img