Skip to content

Instantly share code, notes, and snippets.

@xypnox
Last active April 14, 2025 10:01
Show Gist options
  • Save xypnox/4893951289d442c05fd19bb67fe2e768 to your computer and use it in GitHub Desktop.
Save xypnox/4893951289d442c05fd19bb67fe2e768 to your computer and use it in GitHub Desktop.
[[email protected] ~]$ sudo parted -l
Model: hp v236w (scsi)
Disk /dev/sda: 62.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 2799MB 2969MB 170MB primary fat32 esp
Model: Samsung SSD 980 1TB (nvme)
Disk /dev/nvme0n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp, no_automount
2 106MB 123MB 16.8MB Microsoft reserved partition msftres, no_automount
3 123MB 370GB 369GB ntfs Basic data partition msftdata
4 370GB 370GB 790MB ntfs hidden, diag, no_automount
5 370GB 371GB 537MB fat32 boot, esp
6 371GB 375GB 4295MB linux-swap(v1) swap
7 375GB 1000GB 624GB ext4
Model: CT1000P3PSSD8 (nvme)
Disk /dev/nvme1n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 1000GB 1000GB ntfs
[[email protected] ~]$ efibootmgr
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* Windows Boot Manager HD(1,GPT,80b97bbd-cac2-43b6-861f-5a22caf746ba,0x800,0x32000)/\EFI\Microsoft\Boot\bootmgfw.efi57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0001* Windows Boot Manager HD(5,GPT,df365e2c-1821-c743-ba25-5a2934884857,0x2b1ed800,0x100000)/\EFI\Microsoft\Boot\bootmgfw.efi0000424f
Boot0002* UEFI: hp v236w PMAP PciRoot(0x0)/Pci(0x14,0x0)/USB(6,0)/CDROM(1,0x536b20,0x51040)0000424f
[[email protected] ~]$ sudo lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0 squashfs 4.0 0 100% /run/archiso/airootfs
sda iso9660 Joliet Extension EOS_202409 2024-09-22-10-45-49-00
├─sda1 iso9660 Joliet Extension EOS_202409 2024-09-22-10-45-49-00 0 100% /run/archiso/bootmnt
└─sda2 vfat FAT32 ARCHISO_EFI 66EF-F55D
nvme0n1
├─nvme0n1p1 vfat FAT32 7423-4458
├─nvme0n1p2
├─nvme0n1p3 ntfs 74FC241DFC23D85E
├─nvme0n1p4 ntfs 8E9CB5F09CB5D347
├─nvme0n1p5 vfat FAT32 CA2C-9C1B
├─nvme0n1p6 swap 1 a5f1c45e-08f5-4a75-aa17-6e77c5870150
└─nvme0n1p7 ext4 1.0 8052ee39-0445-41f3-88f5-fba6faa4ce8d
nvme1n1 ntfs exydisk 6E2C807A7990E055
└─nvme1n1p1 ntfs exydrive 2EF6D53BF6D503CD
[[email protected] ~]$ sudo mount /dev/nvme
nvme0 nvme0n1 nvme0n1p1 nvme0n1p2 nvme0n1p3 nvme0n1p4 nvme0n1p5 nvme0n1p6 nvme0n1p7 nvme1 nvme1n1 nvme1n1p1
[[email protected] ~]$ sudo mount /dev/nvme0n1p7 /mnt
[[email protected] ~]$ sudo mount /dev/nvme0n1p1 /mnt/efi
[[email protected] ~]$ sudo arch-root /mnt
sudo: arch-root: command not found
[[email protected] ~]$ sudo arch-chroot /mnt
[root@EndeavourOS /]# ls
bin boot dev efi etc home lib lib64 lost+found mnt opt proc root run sbin srv sys tmp usr var
[root@EndeavourOS /]# bootctl install
Created "/efi/EFI/systemd".
Created "/efi/loader".
Created "/efi/loader/keys".
Created "/efi/loader/entries".
Created "/efi/EFI/Linux".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
⚠ Mount point '/efi' which backs the random seed file is world accessible, which is a security hole! ⚠
⚠ Random seed file '/efi/loader/.#bootctlrandom-seedea2baf591943b523' is world accessible, which is a security hole! ⚠
Random seed file /efi/loader/random-seed successfully written (32 bytes).
[root@EndeavourOS /]# exit
exit
[[email protected] ~]$ efibootmgr
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* Windows Boot Manager HD(1,GPT,80b97bbd-cac2-43b6-861f-5a22caf746ba,0x800,0x32000)/\EFI\Microsoft\Boot\bootmgfw.efi57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0001* Windows Boot Manager HD(5,GPT,df365e2c-1821-c743-ba25-5a2934884857,0x2b1ed800,0x100000)/\EFI\Microsoft\Boot\bootmgfw.efi0000424f
Boot0002* UEFI: hp v236w PMAP PciRoot(0x0)/Pci(0x14,0x0)/USB(6,0)/CDROM(1,0x536b20,0x51040)0000424f
[[email protected] ~]$ sudo arch-chroot /mnt
[root@EndeavourOS /]# bootctl update
Skipping "/efi/EFI/systemd/systemd-bootx64.efi", same boot loader version in place already.
Skipping "/efi/EFI/BOOT/BOOTX64.EFI", same boot loader version in place already.
Skipping "/efi/EFI/BOOT/bootx64.efi", same boot loader version in place already.
[root@EndeavourOS /]# bootctl list
No boot loader entries found.
[root@EndeavourOS /]# sudo blkid
/dev/nvme0n1p7: UUID="8052ee39-0445-41f3-88f5-fba6faa4ce8d" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="5192f5fa-58df-b74c-a805-115d5f3ed239"
/dev/nvme0n1p5: UUID="CA2C-9C1B" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="df365e2c-1821-c743-ba25-5a2934884857"
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="74FC241DFC23D85E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="939cfde5-4418-4ad6-ac91-3d598b4e4d76"
/dev/nvme0n1p1: UUID="7423-4458" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="80b97bbd-cac2-43b6-861f-5a22caf746ba"
/dev/nvme0n1p6: UUID="a5f1c45e-08f5-4a75-aa17-6e77c5870150" TYPE="swap" PARTUUID="6f3aee50-4736-9146-a99f-d8ac35a94c11"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="8E9CB5F09CB5D347" TYPE="ntfs" PARTUUID="a1b3f17f-9717-43f5-a68c-876df3885aad"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="f09b1a14-1d90-4f69-9242-3d09be01666f"
/dev/loop0: BLOCK_SIZE="1048576" TYPE="squashfs"
/dev/nvme1n1p1: LABEL="exydrive" BLOCK_SIZE="512" UUID="2EF6D53BF6D503CD" TYPE="ntfs"
/dev/sda2: LABEL_FATBOOT="ARCHISO_EFI" LABEL="ARCHISO_EFI" UUID="66EF-F55D" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="4a514722-02"
/dev/sda1: BLOCK_SIZE="2048" UUID="2024-09-22-10-45-49-00" LABEL="EOS_202409" TYPE="iso9660" PARTUUID="4a514722-01"
[root@EndeavourOS /]# quit
bash: quit: command not found
[root@EndeavourOS /]# exit
exit
[[email protected] ~]$ efibootmgr
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* Windows Boot Manager HD(1,GPT,80b97bbd-cac2-43b6-861f-5a22caf746ba,0x800,0x32000)/\EFI\Microsoft\Boot\bootmgfw.efi57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0001* Windows Boot Manager HD(5,GPT,df365e2c-1821-c743-ba25-5a2934884857,0x2b1ed800,0x100000)/\EFI\Microsoft\Boot\bootmgfw.efi0000424f
Boot0002* UEFI: hp v236w PMAP PciRoot(0x0)/Pci(0x14,0x0)/USB(6,0)/CDROM(1,0x536b20,0x51040)0000424f
[[email protected] ~]$ sudo arch-chroot /mnt
[root@EndeavourOS /]# reinstall-kernels
Installing kernel 6.13.5-arch1-1
dracut[I]: Executing: /usr/bin/dracut --no-hostonly --force /efi/ae1494b6d12840b6b4c37f2b97a6546a/6.13.5-arch1-1/initrd-fallback 6.13.5-arch1-1
dracut[E]: Module 'cifs' depends on module 'network', which can't be installed
dracut[E]: Module 'nfs' depends on module 'network', which can't be installed
dracut[I]: *** Including module: bash ***
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-battery-check ***
dracut[I]: *** Including module: systemd-cryptsetup ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-pcrphase ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: modsign ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: systemd-sysusers ***
Creating group 'nobody' with GID 65534.
Creating group 'audio' with GID 996.
Creating group 'disk' with GID 995.
Creating group 'input' with GID 994.
Creating group 'kmem' with GID 993.
Creating group 'kvm' with GID 992.
Creating group 'lp' with GID 991.
Creating group 'optical' with GID 990.
Creating group 'render' with GID 989.
Creating group 'sgx' with GID 988.
Creating group 'storage' with GID 987.
Creating group 'tty' with GID 5.
Creating group 'uucp' with GID 986.
Creating group 'video' with GID 985.
Creating group 'users' with GID 984.
Creating group 'systemd-journal' with GID 983.
Creating user 'root' (Super User) with UID 0 and GID 0.
Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534.
dracut[I]: *** Including module: btrfs ***
dracut[I]: *** Including module: crypt ***
dracut[I]: *** Including module: dm ***
dracut[I]: *** Including module: dmraid ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: lvm ***
dracut[I]: *** Including module: mdraid ***
dracut[I]: *** Including module: multipath ***
dracut[I]: *** Including module: nvdimm ***
dracut[I]: *** Including module: qemu ***
dracut[I]: *** Including module: qemu-net ***
dracut[I]: *** Including module: fido2 ***
dracut[I]: *** Including module: pkcs11 ***
dracut[I]: *** Including module: hwdb ***
dracut[I]: *** Including module: lunmask ***
dracut[I]: *** Including module: resume ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: virtiofs ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shell-interpreter ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing GenuineIntel.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/efi/ae1494b6d12840b6b4c37f2b97a6546a/6.13.5-arch1-1/initrd-fallback' ***
cp: error writing '/efi/ae1494b6d12840b6b4c37f2b97a6546a/6.13.5-arch1-1/initrd-fallback': No space left on device
dracut[F]: Creation of /efi/ae1494b6d12840b6b4c37f2b97a6546a/6.13.5-arch1-1/initrd-fallback failed
/usr/lib/kernel/install.d/50-dracut-fallback.install failed with exit status 1.
[root@EndeavourOS /]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment