From my knowledge, the partition for our os is split into two, an fat32
for booting and ext4
for the system. Due to my curiosity into tweaking stuffs, I had accidentally wipe out the fat32
one (the partition is still there, but most of content gone) , while the other luckily remained.
/dev/n...p5
for fat32
and /dev/n..p6
for ext4
Now while I still can enter the systemd-boot
menu at BIOS screen, theres only remaining option for “reboot to firmware”.
Is there anyway to restore or reinstall the boot thing back?
Thank you in advance!
Some useful info
-Spec:
- Desktop: Plasma KDE
- Kernal version: 6.2.2-arch1-1
- Installed using systemd-boot
-The ext4
is still quite fine (i guess?). I can still chroot it using my USB live image.
-Disk info from some commands
[root@EndeavourOS /]
→ chroot from usb img to ext4
[liveuser@eos-2023.03.06 Desktop]
→ user from usb img
[root@EndeavourOS /]# cat etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=C1C5-6D90 /efi vfat defaults,noatime 0 2
UUID=d221b4d9-18ca-4c6e-9823-abb132e51d58 / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
[liveuser@eos-2023.03.06 Desktop]$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0 squash 4.0 0 100% /run/archiso/airootfs
sda iso966 Joliet EOS_202303 2023-03-06-14-54-40-00
├─sda1 iso966 Joliet EOS_202303 2023-03-06-14-54-40-00 0 100% /run/archiso/bootmnt
└─sda2 vfat FAT16 ARCHISO_EFI 065A-7263
nvme0n1
├─nvme0n1p1 vfat FAT32 286F-EE5E
├─nvme0n1p2
├─nvme0n1p3 ntfs 01D88A4E7F018D80
├─nvme0n1p4 ntfs Data 01D9627505955A30 104.2G 59% /run/media/liveuser/Data
├─nvme0n1p5 vfat FAT32 C1C5-6D90 997.9M 0% /mnt/efi
└─nvme0n1p6 ext4 1.0 endeavouros d221b4d9-18ca-4c6e-9823-abb132e51d58 31.4G 30% /mnt
[liveuser@eos-2023.03.06 Desktop]$ sudo efibootmgr
BootCurrent: 0002
Timeout: 2 seconds
BootOrder: 0001,0000,0004,0002,0003
Boot0000* Windows Boot Manager HD(1,GPT,e2ed644a-4ecd-4ce4-a097-568936b86c6a,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000002c000100000010000000040000007fff0400
Boot0001* Manjaro HD(1,GPT,e2ed644a-4ecd-4ce4-a097-568936b86c6a,0x800,0x32000)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot0002* UEFI: USB FLASH DRIVE PMAP PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/CDROM(1,0x39b780,0x39298)0000424f
Boot0003* UEFI: USB FLASH DRIVE PMAP, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(2,MBR,0x81367d46,0x39b780,0x39000)0000424f
Boot0004* Linux Boot Manager HD(5,GPT,2ba9a6a7-5f14-cd4b-b6e0-e1daf9a6eeb1,0x3548a800,0x1f4000)/File(\EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI)
[liveuser@eos-2023.03.06 Desktop]$ bootctl
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
System:
Firmware: UEFI 2.70 (American Megatrends 5.17)
Firmware Arch: x64
Secure Boot: disabled (disabled)
TPM2 Support: yes
Boot into FW: supported
Current Boot Loader:
Product: systemd-boot 253.1-1-arch
Features: ✓ Boot counting
✓ Menu timeout control
✓ One-shot menu timeout control
✓ Default entry control
✓ One-shot entry control
✓ Support for XBOOTLDR partition
✓ Support for passing random seed to OS
✓ Load drop-in drivers
✓ Support Type #1 sort-key field
✓ Support @saved pseudo-entry
✓ Support Type #1 devicetree field
✗ Boot loader sets ESP information
ESP: n/a
File: └─/EFI/BOOT/BOOTX64.EFI
Random Seed:
System Token: set
Boot Loaders Listed in EFI Variables:
Title: Manjaro
ID: 0x0001
Status: active, boot-order
Partition: /dev/disk/by-partuuid/e2ed644a-4ecd-4ce4-a097-568936b86c6a
File: └─/EFI/MANJARO/GRUBX64.EFI
Title: Windows Boot Manager
ID: 0x0000
Status: active, boot-order
Partition: /dev/disk/by-partuuid/e2ed644a-4ecd-4ce4-a097-568936b86c6a
File: └─/EFI/MICROSOFT/BOOT/BOOTMGFW.EFI
Title: Linux Boot Manager
ID: 0x0004
Status: active, boot-order
Partition: /dev/disk/by-partuuid/2ba9a6a7-5f14-cd4b-b6e0-e1daf9a6eeb1
File: └─/EFI/SYSTEMD/SYSTEMD-BOOTX64.EFI