You are not logged in.

#1 2021-05-26 21:17:46

Tiene10
Member
Registered: 2021-04-15
Posts: 16

I made a mess with the Archlinux boot

Good evening,

After a bios upgrade by Windows, I had no access to grub. I followed some tutorials, I couldn't see the bios anymore.
Don't ask me why, I deleted the whole /boot folder. Now, I have just the efi of windows.

Do you know how I can restore the /boot directory? It is very urgent.. I have to continue and hand in a project for Monday

Sincerely

Last edited by Tiene10 (2021-05-26 21:35:57)

Offline

#2 2021-05-26 22:13:10

MrNeuneu
Member
Registered: 2018-05-01
Posts: 22

Re: I made a mess with the Archlinux boot

If you have an USB key, you can try the following.

1. Install archlinux on the USB key (use the iso with Rufus on windows).
2. Boot on your other machine on this USB key.
3. Mount the linux partition of this machine in /mnt. (mount /dev/sd?? /mnt)
4. run "arch-chroot /mnt"
5. Reinstall grub with pacman.

I hope what I say is right.

Offline

#3 2021-05-26 22:36:08

holiday
Banned
Registered: 2021-05-26
Posts: 24

Re: I made a mess with the Archlinux boot

Look into systemd-boot. It's a simple configuration. If there's no problem with your system drive then the boot control will run it.

Offline

#4 2021-05-26 22:45:17

loqs
Member
Registered: 2014-03-06
Posts: 18,655

Re: I made a mess with the Archlinux boot

The kernels,  initrds and possibly microcode will need to be restored to /boot if you deleted it.
Reinstall the kernel and ucode packages then regenerate the initrds.
Edit:
Where was the ESP mounted on the Arch installation?
What is on the ESP currently?

Last edited by loqs (2021-05-26 22:51:08)

Offline

#5 2021-05-27 08:32:15

Tiene10
Member
Registered: 2021-04-15
Posts: 16

Re: I made a mess with the Archlinux boot

Thanks for answers.

MrNeuneu wrote:

If you have an USB key, you can try the following.

1. Install archlinux on the USB key (use the iso with Rufus on windows).
2. Boot on your other machine on this USB key.
3. Mount the linux partition of this machine in /mnt. (mount /dev/sd?? /mnt)
4. run "arch-chroot /mnt"
5. Reinstall grub with pacman.

I hope what I say is right.

I have deleted grub and the files for boot arch, so I don't think that it will work.

holiday wrote:

Look into systemd-boot. It's a simple configuration. If there's no problem with your system drive then the boot control will run it.

Do you think initrds will be installed in the good directory with bootctl install ?

loqs wrote:

The kernels,  initrds and possibly microcode will need to be restored to /boot if you deleted it.
Reinstall the kernel and ucode packages then regenerate the initrds.

Have I to do 'pacman -Syu' and 'bootctl install' ?

loqs wrote:

Edit:
Where was the ESP mounted on the Arch installation?
What is on the ESP currently?

The ESP was in /boot/efi, I have followed the arch guide installation.

In my ssd, which contains arch, I have nothing else in my ESP.
In my hdd, in /dev/sda1, which contains Windows, I have the bootmgfw of Windows.

But, I have mounted it with mount /dev/sda1 /mnt.

Actually, I don't understand how to work with linux mounting.

I don't know if I have answered to your question.

Last edited by Tiene10 (2021-05-27 08:33:17)

Offline

#6 2021-05-27 13:07:41

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,118

Re: I made a mess with the Archlinux boot

I have deleted grub and the files for boot arch, so I don't think that it will work.

You're gonna re-install the packages, in doubt from the interwebz. So yeah, that'll work.

Do you think initrds will be installed in the good directory with bootctl install ?

I'd not necessarily suggest to switch the bootloader if you just want to fix the problem and not create potentially more.
If you're interested in systemd-boot later, you want to go there from a sane base - and not when in hurry.

Have I to do 'pacman -Syu' and 'bootctl install' ?

No, you have to re-install the mentioned packages. If That requires you to update the system (because the currently installed packages are outdated and not available in the package cache), then you'll *also* have to update the system, but you still need to explicitly install the relevant packages, unless you're sure that they're  in fact covered by the general update (passing them for explitit installation won't have any negative impact, so just do that)
"bootctl" isd part of systemd-boot and not relevant if you're usign grub.

You'll have to replicate the mounting table during the installation inside the chrooted system, so mount /dev/sdwhereveryourarchis /mnt; arch-chroot /mnt; mount /dev/bootpartitionifany /boot; mount /dev/esppartition /boot/efi
You also want to mount windows *somewhere* to have os-prober find it for inclusion into the grub menu.

Online

#7 2021-05-27 13:51:33

Tiene10
Member
Registered: 2021-04-15
Posts: 16

Re: I made a mess with the Archlinux boot

So by installing grub, I will get the files to boot on arch?
I thought that grub just allows me to choose on which systems to boot and that the archlinux boot files are in the 'base' package.

mount /dev/bootpartitionifany /boot; mount /dev/esppartition /boot/efi

I don't understand the first command.. The second one is not enough?

Last time, for mount windows, I have used

 mount /dev/sda1 /mnt 

and sda1 is the windows EFI.
It was ok but :
Why not use the command:

mount /dev/sda1 /mnt/boot/efi

or

arch-chroot /mnt

and

mount /dev/sda1 /boot/efi

?

Thanks to all

Last edited by Tiene10 (2021-05-27 13:53:39)

Offline

#8 2021-05-27 14:05:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,118

Re: I made a mess with the Archlinux boot

So by installing grub, I will get the files to boot on arch?

Installing grub will install grub. loqs mentioned a couple of other packages you want to install - notably the kernel.

I don't understand the first command..

If depends on your actual partition layout, hence "if any"

Online

#9 2021-05-27 20:50:06

Tiene10
Member
Registered: 2021-04-15
Posts: 16

Re: I made a mess with the Archlinux boot

Thanks you, I write these lines with archlinux, what a hapiness !

I have done what you said to me :

 mount /dev/rootPartition /mnt 
 arch-chroot /mnt 
 mount /dev/efiPartition /boot/efi 
 pacman -Syu linux-firmware 
 grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck 
 grub-mkconfig -o /boot/grub/grub.cfg 

Just a last question, if I want to have Windows partition in the efi in the disk of Linux I have to do this :

 mount /dev/efiWindows /boot/efi 

?

Thank you seth, loqs, holiday and MrNeuneu

Last edited by Tiene10 (2021-05-27 20:52:50)

Offline

#10 2021-05-27 21:03:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,118

Re: I made a mess with the Archlinux boot

What are the contents of /boot/efi w/o mounting the (windows) efi parition there?

Online

#11 2021-05-27 21:06:58

loqs
Member
Registered: 2014-03-06
Posts: 18,655

Re: I made a mess with the Archlinux boot

Please also post the output of:

# parted -l

Offline

#12 2021-05-28 05:57:25

Tiene10
Member
Registered: 2021-04-15
Posts: 16

Re: I made a mess with the Archlinux boot

[tiene10 --> efi]$ ll -R /boot/efi
/boot/efi:
total 12K
drwxr-xr-x 3 root root 4.0K Jan  1  1970 .
drwxr-xr-x 3 root root 4.0K May 27 22:32 EFI
drwxr-xr-x 4 root root 4.0K May 27 22:32 ..

/boot/efi/EFI:
total 12K
drwxr-xr-x 3 root root 4.0K Jan  1  1970 ..
drwxr-xr-x 3 root root 4.0K May 27 22:32 .
drwxr-xr-x 2 root root 4.0K May 27 22:32 BOOT

/boot/efi/EFI/BOOT:
total 140K
drwxr-xr-x 3 root root 4.0K May 27 22:32 ..
drwxr-xr-x 2 root root 4.0K May 27 22:32 .
-rwxr-xr-x 1 root root 132K May 27 22:39 BOOTX64.EFI
[tiene10 --> efi]$ ll -R /boot
/boot:
total 47M
drwxr-xr-x  3 root root 4.0K Jan  1  1970 efi
drwxr-xr-x 17 root root 4.0K May 26 19:02 ..
-rw-r--r--  1 root root 9.0M May 27 22:15 vmlinuz-linux
-rw-r--r--  1 root root 7.8M May 27 22:15 initramfs-linux.img
-rw-r--r--  1 root root  30M May 27 22:15 initramfs-linux-fallback.img
drwxr-xr-x  4 root root 4.0K May 27 22:32 .
drwxr-xr-x  6 root root 4.0K May 27 22:59 grub

/boot/efi:
total 12K
drwxr-xr-x 3 root root 4.0K Jan  1  1970 .
drwxr-xr-x 3 root root 4.0K May 27 22:32 EFI
drwxr-xr-x 4 root root 4.0K May 27 22:32 ..

/boot/efi/EFI:
total 12K
drwxr-xr-x 3 root root 4.0K Jan  1  1970 ..
drwxr-xr-x 3 root root 4.0K May 27 22:32 .
drwxr-xr-x 2 root root 4.0K May 27 22:32 BOOT

/boot/efi/EFI/BOOT:
total 140K
drwxr-xr-x 3 root root 4.0K May 27 22:32 ..
drwxr-xr-x 2 root root 4.0K May 27 22:32 .
-rwxr-xr-x 1 root root 132K May 27 22:39 BOOTX64.EFI

/boot/grub:
total 44K
drwxr-xr-x 4 root root 4.0K May 27 22:32 ..
drwxr-xr-x 3 root root 4.0K May 27 22:32 themes
drwxr-xr-x 2 root root 4.0K May 27 22:32 fonts
-rw-r--r-- 1 root root 1.0K May 27 22:32 grubenv
drwxr-xr-x 2 root root 4.0K May 27 22:39 locale
drwxr-xr-x 2 root root  12K May 27 22:39 x86_64-efi
-rw------- 1 root root 5.3K May 27 22:59 grub.cfg
drwxr-xr-x 6 root root 4.0K May 27 22:59 .

/boot/grub/themes:
total 12K
drwxr-xr-x 3 root root 4.0K May 27 22:32 .
drwxr-xr-x 2 root root 4.0K May 27 22:32 starfield
drwxr-xr-x 6 root root 4.0K May 27 22:59 ..

/boot/grub/themes/starfield:
total 2.9M
drwxr-xr-x 3 root root 4.0K May 27 22:32 ..
drwxr-xr-x 2 root root 4.0K May 27 22:32 .
-rw-r--r-- 1 root root   97 May 27 22:39 terminal_box_w.png
-rw-r--r-- 1 root root  196 May 27 22:39 boot_menu_sw.png
-rw-r--r-- 1 root root 189K May 27 22:39 dejavu_bold_14.pf2
-rw-r--r-- 1 root root  269 May 27 22:39 slider_s.png
-rw-r--r-- 1 root root  265 May 27 22:39 slider_n.png
-rw-r--r-- 1 root root 1.2K May 27 22:39 README
-rw-r--r-- 1 root root  178 May 27 22:39 terminal_box_c.png
-rw-r--r-- 1 root root  210 May 27 22:39 terminal_box_nw.png
-rw-r--r-- 1 root root  836 May 27 22:39 blob_w.png
-rw-r--r-- 1 root root  101 May 27 22:39 terminal_box_s.png
-rw-r--r-- 1 root root  193 May 27 22:39 boot_menu_e.png
-rw-r--r-- 1 root root 182K May 27 22:39 dejavu_14.pf2
-rw-r--r-- 1 root root 150K May 27 22:39 dejavu_10.pf2
-rw-r--r-- 1 root root  193 May 27 22:39 boot_menu_ne.png
-rw-r--r-- 1 root root   94 May 27 22:39 terminal_box_e.png
-rw-r--r-- 1 root root  197 May 27 22:39 slider_c.png
-rw-r--r-- 1 root root   96 May 27 22:39 boot_menu_w.png
-rw-r--r-- 1 root root 200K May 27 22:39 dejavu_16.pf2
-rw-r--r-- 1 root root  20K May 27 22:39 COPYING.CC-BY-SA-3.0
-rw-r--r-- 1 root root 166K May 27 22:39 dejavu_12.pf2
-rw-r--r-- 1 root root  103 May 27 22:39 boot_menu_n.png
-rw-r--r-- 1 root root  178 May 27 22:39 boot_menu_c.png
-rw-r--r-- 1 root root  194 May 27 22:39 terminal_box_n.png
-rw-r--r-- 1 root root  198 May 27 22:39 boot_menu_se.png
-rw-r--r-- 1 root root 1.9M May 27 22:39 starfield.png
-rw-r--r-- 1 root root 2.2K May 27 22:39 theme.txt
-rw-r--r-- 1 root root  102 May 27 22:39 boot_menu_s.png
-rw-r--r-- 1 root root  126 May 27 22:39 terminal_box_se.png
-rw-r--r-- 1 root root  128 May 27 22:39 terminal_box_ne.png
-rw-r--r-- 1 root root  184 May 27 22:39 boot_menu_nw.png
-rw-r--r-- 1 root root  123 May 27 22:39 terminal_box_sw.png

/boot/grub/fonts:
total 2.3M
drwxr-xr-x 2 root root 4.0K May 27 22:32 .
-rw-r--r-- 1 root root 2.3M May 27 22:39 unicode.pf2
drwxr-xr-x 6 root root 4.0K May 27 22:59 ..

/boot/grub/locale:
total 4.4M
-rw-r--r-- 1 root root  28K May 27 22:39 id.mo
-rw-r--r-- 1 root root 128K May 27 22:39 en@piglatin.mo
-rw-r--r-- 1 root root 118K May 27 22:39 sv.mo
-rw-r--r-- 1 root root 118K May 27 22:39 nb.mo
-rw-r--r-- 1 root root 113K May 27 22:39 en@quot.mo
-rw-r--r-- 1 root root 114K May 27 22:39 da.mo
-rw-r--r-- 1 root root  48K May 27 22:39 ro.mo
-rw-r--r-- 1 root root 120K May 27 22:39 hr.mo
-rw-r--r-- 1 root root 122K May 27 22:39 ca.mo
-rw-r--r-- 1 root root 158K May 27 22:39 ru.mo
-rw-r--r-- 1 root root 118K May 27 22:39 nl.mo
-rw-r--r-- 1 root root 123K May 27 22:39 ast.mo
-rw-r--r-- 1 root root  99K May 27 22:39 gl.mo
-rw-r--r-- 1 root root 185K May 27 22:39 de@hebrew.mo
-rw-r--r-- 1 root root  43K May 27 22:39 eo.mo
-rw-r--r-- 1 root root 121K May 27 22:39 pt.mo
-rw-r--r-- 1 root root 156K May 27 22:39 sr.mo
-rw-r--r-- 1 root root 129K May 27 22:39 fr.mo
-rw-r--r-- 1 root root 127K May 27 22:39 hu.mo
-rw-r--r-- 1 root root 120K May 27 22:39 fi.mo
-rw-r--r-- 1 root root 130K May 27 22:39 vi.mo
-rw-r--r-- 1 root root  79K May 27 22:39 tr.mo
-rw-r--r-- 1 root root  83K May 27 22:39 zh_CN.mo
-rw-r--r-- 1 root root 153K May 27 22:39 en@arabic.mo
-rw-r--r-- 1 root root 144K May 27 22:39 en@greek.mo
-rw-r--r-- 1 root root  59K May 27 22:39 pa.mo
-rw-r--r-- 1 root root 123K May 27 22:39 pl.mo
-rw-r--r-- 1 root root 123K May 27 22:39 de.mo
-rw-r--r-- 1 root root 126K May 27 22:39 es.mo
-rw-r--r-- 1 root root 144K May 27 22:39 en@cyrillic.mo
-rw-r--r-- 1 root root 164K May 27 22:39 uk.mo
-rw-r--r-- 1 root root  30K May 27 22:39 zh_TW.mo
-rw-r--r-- 1 root root  51K May 27 22:39 ko.mo
-rw-r--r-- 1 root root  22K May 27 22:39 ja.mo
-rw-r--r-- 1 root root  90K May 27 22:39 sl.mo
-rw-r--r-- 1 root root 123K May 27 22:39 de_CH.mo
-rw-r--r-- 1 root root  96K May 27 22:39 lt.mo
-rw-r--r-- 1 root root 166K May 27 22:39 en@hebrew.mo
-rw-r--r-- 1 root root  81K May 27 22:39 pt_BR.mo
-rw-r--r-- 1 root root 120K May 27 22:39 it.mo
-rw-r--r-- 1 root root 9.9K May 27 22:39 lg.mo
drwxr-xr-x 2 root root 4.0K May 27 22:39 .
drwxr-xr-x 6 root root 4.0K May 27 22:59 ..

/boot/grub/x86_64-efi:
total 3.3M
-rw-r--r-- 1 root root 3.3K May 27 22:39 strtoull_test.mod
-rw-r--r-- 1 root root 5.9K May 27 22:39 gcry_sha512.mod
-rw-r--r-- 1 root root 7.1K May 27 22:39 lspci.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 gcry_rsa.mod
-rw-r--r-- 1 root root 4.2K May 27 22:39 hfspluscomp.mod
-rw-r--r-- 1 root root 3.1K May 27 22:39 gcry_rfc2268.mod
-rw-r--r-- 1 root root 4.3K May 27 22:39 cpio_be.mod
-rw-r--r-- 1 root root  11K May 27 22:39 png.mod
-rw-r--r-- 1 root root 1.7K May 27 22:39 reboot.mod
-rw-r--r-- 1 root root 4.6K May 27 22:39 cmdline_cat_test.mod
-rw-r--r-- 1 root root 2.5K May 27 22:39 mul_test.mod
-rw-r--r-- 1 root root 1.1K May 27 22:39 setjmp.mod
-rw-r--r-- 1 root root 2.9K May 27 22:39 usbserial_common.mod
-rw-r--r-- 1 root root  17K May 27 22:39 gcry_des.mod
-rw-r--r-- 1 root root 8.0K May 27 22:39 div_test.mod
-rw-r--r-- 1 root root  12K May 27 22:39 iso9660.mod
-rw-r--r-- 1 root root 9.2K May 27 22:39 geli.mod
-rw-r--r-- 1 root root 5.7K May 27 22:39 romfs.mod
-rw-r--r-- 1 root root 7.9K May 27 22:39 exfat.mod
-rw-r--r-- 1 root root 9.6K May 27 22:39 luks.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 xnu_uuid.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 boot.mod
-rw-r--r-- 1 root root 2.0K May 27 22:39 raid5rec.mod
-rw-r--r-- 1 root root 4.4K May 27 22:39 probe.mod
-rw-r--r-- 1 root root 4.6K May 27 22:39 gcry_md5.mod
-rw-r--r-- 1 root root 5.6K May 27 22:39 minicmd.mod
-rw-r--r-- 1 root root 2.0K May 27 22:39 adler32.mod
-rw-r--r-- 1 root root 7.0K May 27 22:39 lsacpi.mod
-rw-r--r-- 1 root root 4.5K May 27 22:39 password_pbkdf2.mod
-rw-r--r-- 1 root root 4.3K May 27 22:39 odc.mod
-rw-r--r-- 1 root root  46K May 27 22:39 functional_test.mod
-rw-r--r-- 1 root root  12K May 27 22:39 gzio.mod
-rw-r--r-- 1 root root 2.2K May 27 22:39 eval.mod
-rw-r--r-- 1 root root 4.5K May 27 22:39 cbtime.mod
-rw-r--r-- 1 root root  45K May 27 22:39 legacycfg.mod
-rw-r--r-- 1 root root  15K May 27 22:39 gcry_cast5.mod
-rw-r--r-- 1 root root 3.5K May 27 22:39 testspeed.mod
-rw-r--r-- 1 root root 2.7K May 27 22:39 ctz_test.mod
-rw-r--r-- 1 root root 3.2K May 27 22:39 memdisk.mod
-rw-r--r-- 1 root root 7.1K May 27 22:39 extcmd.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 bswap_test.mod
-rw-r--r-- 1 root root 2.3K May 27 22:39 read.mod
-rw-r--r-- 1 root root 8.9K May 27 22:39 video_cirrus.mod
-rw-r--r-- 1 root root 3.9K May 27 22:39 cs5536.mod
-rw-r--r-- 1 root root 2.3K May 27 22:39 exfctest.mod
-rw-r--r-- 1 root root  33K May 27 22:39 gcry_twofish.mod
-rw-r--r-- 1 root root 3.6K May 27 22:39 random.mod
-rw-r--r-- 1 root root 3.6K May 27 22:39 shim_lock.mod
-rw-r--r-- 1 root root 8.5K May 27 22:39 jfs.mod
-rw-r--r-- 1 root root 5.6K May 27 22:39 videotest.mod
-rw-r--r-- 1 root root 2.8K May 27 22:39 mdraid09.mod
-rw-r--r-- 1 root root 2.4K May 27 22:39 usbserial_usbdebug.mod
-rw-r--r-- 1 root root  26K May 27 22:39 file.mod
-rw-r--r-- 1 root root 1.9K May 27 22:39 true.mod
-rw-r--r-- 1 root root 2.9K May 27 22:39 bufio.mod
-rw-r--r-- 1 root root 5.5K May 27 22:39 usbtest.mod
-rw-r--r-- 1 root root  19K May 27 22:39 linux.mod
-rw-r--r-- 1 root root  57K May 27 22:39 zfs.mod
-rw-r--r-- 1 root root  76K May 27 22:39 regexp.mod
-rw-r--r-- 1 root root 6.4K May 27 22:39 keylayouts.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 part_msdos.mod
-rw-r--r-- 1 root root 3.2K May 27 22:39 xnu_uuid_test.mod
-rw-r--r-- 1 root root  840 May 27 22:39 all_video.mod
-rw-r--r-- 1 root root 7.2K May 27 22:39 parttool.mod
-rw-r--r-- 1 root root 3.7K May 27 22:39 lsefimmap.mod
-rw-r--r-- 1 root root 3.2K May 27 22:39 date.mod
-rw-r--r-- 1 root root 8.9K May 27 22:39 gcry_blowfish.mod
-rw-r--r-- 1 root root 1.9K May 27 22:39 pbkdf2.mod
-rw-r--r-- 1 root root  59K May 27 22:39 gfxmenu.mod
-rw-r--r-- 1 root root  15K May 27 22:39 ntfs.mod
-rw-r--r-- 1 root root 2.2K May 27 22:39 efifwsetup.mod
-rw-r--r-- 1 root root  10K May 27 22:39 uhci.mod
-rw-r--r-- 1 root root 4.5K May 27 22:39 memrw.mod
-rw-r--r-- 1 root root 8.2K May 27 22:39 afs.mod
-rw-r--r-- 1 root root 7.4K May 27 22:39 halt.mod
-rw-r--r-- 1 root root  12K May 27 22:39 gcry_crc.mod
-rw-r--r-- 1 root root 7.6K May 27 22:39 gcry_sha1.mod
-rw-r--r-- 1 root root  19K May 27 22:39 font.mod
-rw-r--r-- 1 root root 5.1K May 27 22:39 gcry_sha256.mod
-rw-r--r-- 1 root root 5.3K May 27 22:39 videoinfo.mod
-rw-r--r-- 1 root root 9.9K May 27 22:39 squash4.mod
-rw-r--r-- 1 root root 3.1K May 27 22:39 rdmsr.mod
-rw-r--r-- 1 root root 8.4K May 27 22:39 zfscrypt.mod
-rw-r--r-- 1 root root 1.5K May 27 22:39 aout.mod
-rw-r--r-- 1 root root 2.7K May 27 22:39 part_dfly.mod
-rw-r--r-- 1 root root 5.5K May 27 22:39 minix.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 password.mod
-rw-r--r-- 1 root root  17K May 27 22:39 gfxterm.mod
-rw-r--r-- 1 root root 2.3K May 27 22:39 offsetio.mod
-rw-r--r-- 1 root root  26K May 27 22:39 relocator.mod
-rw-r--r-- 1 root root 174K May 27 22:39 normal.mod
-rw-r--r-- 1 root root 8.4K May 27 22:39 video_bochs.mod
-rw-r--r-- 1 root root  15K May 27 22:39 serial.mod
-rw-r--r-- 1 root root 9.5K May 27 22:39 lvm.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 raid6rec.mod
-rw-r--r-- 1 root root  21K May 27 22:39 terminfo.mod
-rw-r--r-- 1 root root 8.0K May 27 22:39 affs.mod
-rw-r--r-- 1 root root  16K May 27 22:39 cryptodisk.mod
-rw-r--r-- 1 root root 6.3K May 27 22:39 ls.mod
-rw-r--r-- 1 root root 8.8K May 27 22:39 ata.mod
-rw-r--r-- 1 root root 7.8K May 27 22:39 ufs1_be.mod
-rw-r--r-- 1 root root 4.8K May 27 22:39 search_label.mod
-rw-r--r-- 1 root root 6.5K May 27 22:39 at_keyboard.mod
-rw-r--r-- 1 root root  28K May 27 22:39 gcry_camellia.mod
-rw-r--r-- 1 root root 6.5K May 27 22:39 cmp_test.mod
-rw-r--r-- 1 root root 2.2K May 27 22:39 crc64.mod
-rw-r--r-- 1 root root 7.7K May 27 22:39 gfxterm_menu.mod
-rw-r--r-- 1 root root  14K May 27 22:39 gcry_seed.mod
-rw-r--r-- 1 root root 2.3K May 27 22:39 part_sun.mod
-rw-r--r-- 1 root root  20K May 27 22:39 xzio.mod
-rw-r--r-- 1 root root 3.9K May 27 22:39 play.mod
-rw-r--r-- 1 root root  28K May 27 22:39 video_fb.mod
-rw-r--r-- 1 root root  16K May 27 22:39 legacy_password_test.mod
-rw-r--r-- 1 root root 2.6K May 27 22:39 cpuid.mod
-rw-r--r-- 1 root root 3.5K May 27 22:39 configfile.mod
-rw-r--r-- 1 root root 2.2K May 27 22:39 part_dvh.mod
-rw-r--r-- 1 root root  16K May 27 22:39 ohci.mod
-rw-r--r-- 1 root root 4.4K May 27 22:39 fshelp.mod
-rw-r--r-- 1 root root  21K May 27 22:39 multiboot.mod
-rw-r--r-- 1 root root 4.9K May 27 22:39 macbless.mod
-rw-r--r-- 1 root root 6.1K May 27 22:39 tpm.mod
-rw-r--r-- 1 root root 8.7K May 27 22:39 ext2.mod
-rw-r--r-- 1 root root 4.2K May 27 22:39 lsefisystab.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 echo.mod
-rw-r--r-- 1 root root  42K May 27 22:39 xnu.mod
-rw-r--r-- 1 root root  13K May 27 22:39 gcry_tiger.mod
-rw-r--r-- 1 root root 4.4K May 27 22:39 gfxterm_background.mod
-rw-r--r-- 1 root root  26K May 27 22:39 ehci.mod
-rw-r--r-- 1 root root 5.6K May 27 22:39 minix2.mod
-rw-r--r-- 1 root root 7.0K May 27 22:39 efi_uga.mod
-rw-r--r-- 1 root root 5.8K May 27 22:39 usb_keyboard.mod
-rw-r--r-- 1 root root 3.2K May 27 22:39 progress.mod
-rw-r--r-- 1 root root  12K May 27 22:39 usbms.mod
-rw-r--r-- 1 root root  23K May 27 22:39 gcry_whirlpool.mod
-rw-r--r-- 1 root root 4.4K May 27 22:39 cat.mod
-rw-r--r-- 1 root root  11K May 27 22:39 xfs.mod
-rw-r--r-- 1 root root 1.4K May 27 22:39 div.mod
-rw-r--r-- 1 root root 4.0K May 27 22:39 gcry_idea.mod
-rw-r--r-- 1 root root 3.1K May 27 22:39 disk.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 bitmap.mod
-rw-r--r-- 1 root root  25K May 27 22:39 btrfs.mod
-rw-r--r-- 1 root root  14K May 27 22:39 reiserfs.mod
-rw-r--r-- 1 root root 2.7K May 27 22:39 setjmp_test.mod
-rw-r--r-- 1 root root 2.1K May 27 22:39 trig.mod
-rw-r--r-- 1 root root  11K May 27 22:39 hfsplus.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 sleep.mod
-rw-r--r-- 1 root root 3.8K May 27 22:39 procfs.mod
-rw-r--r-- 1 root root 2.8K May 27 22:39 dm_nv.mod
-rw-r--r-- 1 root root 9.5K May 27 22:39 nilfs2.mod
-rw-r--r-- 1 root root 9.3K May 27 22:39 bfs.mod
-rw-r--r-- 1 root root 3.2K May 27 22:39 shift_test.mod
-rw-r--r-- 1 root root  13K May 27 22:39 diskfilter.mod
-rw-r--r-- 1 root root 8.8K May 27 22:39 chain.mod
-rw-r--r-- 1 root root 5.8K May 27 22:39 minix3_be.mod
-rw-r--r-- 1 root root 5.6K May 27 22:39 minix_be.mod
-rw-r--r-- 1 root root  24K May 27 22:39 multiboot2.mod
-rw-r--r-- 1 root root 2.3K May 27 22:39 cacheinfo.mod
-rw-r--r-- 1 root root 2.5K May 27 22:39 backtrace.mod
-rw-r--r-- 1 root root  11K May 27 22:39 hdparm.mod
-rw-r--r-- 1 root root 9.9K May 27 22:39 hfs.mod
-rw-r--r-- 1 root root 2.8K May 27 22:39 mdraid09_be.mod
-rw-r--r-- 1 root root 9.2K May 27 22:39 jpeg.mod
-rw-r--r-- 1 root root 5.3K May 27 22:39 bitmap_scale.mod
-rw-r--r-- 1 root root  76K May 27 22:39 net.mod
-rw-r--r-- 1 root root 9.9K May 27 22:39 video_colors.mod
-rw-r--r-- 1 root root 3.2K May 27 22:39 spkmodem.mod
-rw-r--r-- 1 root root 7.8K May 27 22:39 gcry_rmd160.mod
-rw-r--r-- 1 root root 8.5K May 27 22:39 linux16.mod
-rw-r--r-- 1 root root 8.2K May 27 22:39 setpci.mod
-rw-r--r-- 1 root root 2.0K May 27 22:39 boottime.mod
-rw-r--r-- 1 root root 1.9K May 27 22:39 datetime.mod
-rw-r--r-- 1 root root 4.5K May 27 22:39 archelp.mod
-rw-r--r-- 1 root root 8.7K May 27 22:39 video.mod
-rw-r--r-- 1 root root 7.3K May 27 22:39 pata.mod
-rw-r--r-- 1 root root 3.8K May 27 22:39 testload.mod
-rw-r--r-- 1 root root 3.9K May 27 22:39 cbmemc.mod
-rw-r--r-- 1 root root  78K May 27 22:39 zstd.mod
-rw-r--r-- 1 root root 5.7K May 27 22:39 cbfs.mod
-rw-r--r-- 1 root root 6.9K May 27 22:39 efinet.mod
-rw-r--r-- 1 root root 3.4K May 27 22:39 pbkdf2_test.mod
-rw-r--r-- 1 root root 7.7K May 27 22:39 sfs.mod
-rw-r--r-- 1 root root 3.8K May 27 22:39 usbserial_pl2303.mod
-rw-r--r-- 1 root root 7.2K May 27 22:39 lzopio.mod
-rw-r--r-- 1 root root 3.9K May 27 22:39 help.mod
-rw-r--r-- 1 root root 4.4K May 27 22:39 hexdump.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 datehook.mod
-rw-r--r-- 1 root root 9.6K May 27 22:39 f2fs.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 keystatus.mod
-rw-r--r-- 1 root root 4.5K May 27 22:39 iorw.mod
-rw-r--r-- 1 root root 8.0K May 27 22:39 ldm.mod
-rw-r--r-- 1 root root 2.6K May 27 22:39 part_sunpc.mod
-rw-r--r-- 1 root root 2.4K May 27 22:39 part_acorn.mod
-rw-r--r-- 1 root root  23K May 27 22:39 ahci.mod
-rw-r--r-- 1 root root 2.9K May 27 22:39 lsmmap.mod
-rw-r--r-- 1 root root  43K May 27 22:39 mpi.mod
-rw-r--r-- 1 root root 2.7K May 27 22:39 mdraid1x.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 fixvideo.mod
-rw-r--r-- 1 root root 4.1K May 27 22:39 gcry_md4.mod
-rw-r--r-- 1 root root 9.0K May 27 22:39 loadenv.mod
-rw-r--r-- 1 root root 4.5K May 27 22:39 newc.mod
-rw-r--r-- 1 root root 2.4K May 27 22:39 time.mod
-rw-r--r-- 1 root root  11K May 27 22:39 zfsinfo.mod
-rw-r--r-- 1 root root 5.4K May 27 22:39 search.mod
-rw-r--r-- 1 root root 5.6K May 27 22:39 ntfscomp.mod
-rw-r--r-- 1 root root 7.3K May 27 22:39 tftp.mod
-rw-r--r-- 1 root root 5.2K May 27 22:39 appleldr.mod
-rw-r--r-- 1 root root 3.4K May 27 22:39 gcry_dsa.mod
-rw-r--r-- 1 root root  21K May 27 22:39 gcry_rijndael.mod
-rw-r--r-- 1 root root 6.2K May 27 22:39 elf.mod
-rw-r--r-- 1 root root  11K May 27 22:39 macho.mod
-rw-r--r-- 1 root root  12K May 27 22:39 udf.mod
-rw-r--r-- 1 root root 4.7K May 27 22:39 search_fs_file.mod
-rw-r--r-- 1 root root 3.5K May 27 22:39 verifiers.mod
-rw-r--r-- 1 root root 2.7K May 27 22:39 part_amiga.mod
-rw-r--r-- 1 root root 4.7K May 27 22:39 loopback.mod
-rw-r--r-- 1 root root 4.6K May 27 22:39 loadbios.mod
-rw-r--r-- 1 root root 2.4K May 27 22:39 gcry_arcfour.mod
-rw-r--r-- 1 root root 8.0K May 27 22:39 fat.mod
-rw-r--r-- 1 root root 2.6K May 27 22:39 part_plan.mod
-rw-r--r-- 1 root root 4.9K May 27 22:39 tar.mod
-rw-r--r-- 1 root root 7.4K May 27 22:39 test.mod
-rw-r--r-- 1 root root 4.2K May 27 22:39 part_bsd.mod
-rw-r--r-- 1 root root 3.7K May 27 22:39 msdospart.mod
-rw-r--r-- 1 root root 2.3K May 27 22:39 priority_queue.mod
-rw-r--r-- 1 root root 5.7K May 27 22:39 minix3.mod
-rw-r--r-- 1 root root 5.6K May 27 22:39 cbls.mod
-rw-r--r-- 1 root root 3.8K May 27 22:39 lssal.mod
-rw-r--r-- 1 root root 3.7K May 27 22:39 videotest_checksum.mod
-rw-r--r-- 1 root root 7.2K May 27 22:39 nativedisk.mod
-rw-r--r-- 1 root root  16K May 27 22:39 acpi.mod
-rw-r--r-- 1 root root  30K May 27 22:39 syslinuxcfg.mod
-rw-r--r-- 1 root root 6.9K May 27 22:39 tga.mod
-rw-r--r-- 1 root root 2.9K May 27 22:39 cmp.mod
-rw-r--r-- 1 root root 7.7K May 27 22:39 ufs2.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 blocklist.mod
-rw-r--r-- 1 root root  18K May 27 22:39 usb.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 sleep_test.mod
-rw-r--r-- 1 root root 5.7K May 27 22:39 minix2_be.mod
-rw-r--r-- 1 root root 8.6K May 27 22:39 http.mod
-rw-r--r-- 1 root root 6.9K May 27 22:39 scsi.mod
-rw-r--r-- 1 root root 8.3K May 27 22:39 hashsum.mod
-rw-r--r-- 1 root root 5.2K May 27 22:39 lsefi.mod
-rw-r--r-- 1 root root 5.3K May 27 22:39 gptsync.mod
-rw-r--r-- 1 root root 3.4K May 27 22:39 usbserial_ftdi.mod
-rw-r--r-- 1 root root 2.1K May 27 22:39 test_blockarg.mod
-rw-r--r-- 1 root root 3.0K May 27 22:39 part_apple.mod
-rw-r--r-- 1 root root 3.3K May 27 22:39 part_gpt.mod
-rw-r--r-- 1 root root 3.5K May 27 22:39 pcidump.mod
-rw-r--r-- 1 root root 1.7K May 27 22:39 cbtable.mod
-rw-r--r-- 1 root root 3.7K May 27 22:39 tr.mod
-rw-r--r-- 1 root root 6.8K May 27 22:39 crypto.mod
-rw-r--r-- 1 root root  48K May 27 22:39 bsd.mod
-rw-r--r-- 1 root root 7.7K May 27 22:39 ufs1.mod
-rw-r--r-- 1 root root 4.8K May 27 22:39 search_fs_uuid.mod
-rw-r--r-- 1 root root 6.7K May 27 22:39 terminal.mod
-rw-r--r-- 1 root root  19K May 27 22:39 pgp.mod
-rw-r--r-- 1 root root  17K May 27 22:39 gcry_serpent.mod
-rw-r--r-- 1 root root 8.6K May 27 22:39 signature_test.mod
-rw-r--r-- 1 root root 4.3K May 27 22:39 cpio.mod
-rw-r--r-- 1 root root 9.4K May 27 22:39 mmap.mod
-rw-r--r-- 1 root root 8.4K May 27 22:39 gettext.mod
-rw-r--r-- 1 root root  13K May 27 22:39 efi_gop.mod
-rw-r--r-- 1 root root 3.4K May 27 22:39 morse.mod
-rw-r--r-- 1 root root 1.9K May 27 22:39 hello.mod
-rw-r--r-- 1 root root 2.5K May 27 22:39 wrmsr.mod
-rw-r--r-- 1 root root 5.1K May 27 22:39 moddep.lst
-rw-r--r-- 1 root root 3.6K May 27 22:39 command.lst
-rw-r--r-- 1 root root  219 May 27 22:39 fs.lst
-rw-r--r-- 1 root root   17 May 27 22:39 parttool.lst
-rw-r--r-- 1 root root  111 May 27 22:39 partmap.lst
-rw-r--r-- 1 root root   41 May 27 22:39 video.lst
-rw-r--r-- 1 root root  936 May 27 22:39 crypto.lst
drwxr-xr-x 2 root root  12K May 27 22:39 .
-rw-r--r-- 1 root root  162 May 27 22:39 terminal.lst
-rw-r--r-- 1 root root 2.4K May 27 22:39 modinfo.sh
-rw-r--r-- 1 root root 132K May 27 22:39 core.efi
-rw-r--r-- 1 root root 132K May 27 22:39 grub.efi
drwxr-xr-x 6 root root 4.0K May 27 22:59 ..
[root --> /]$ parted -l
Model: ATA TOSHIBA MQ04ABF1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  114GB   114GB   ntfs         Files                         msftdata
 2      114GB   114GB   105MB   fat32        EFI system partition          boot, esp
 3      114GB   114GB   16.8MB               Microsoft reserved partition  msftres
 4      114GB   1000GB  886GB   ntfs         Basic data partition          msftdata
 5      1000GB  1000GB  538MB   ntfs                                       hidden, diag


Model: KBG30ZMT128G TOSHIBA (nvme)
Disk /dev/nvme0n1: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  307MB   307MB   fat32
 2      307MB   61.4GB  61.1GB  ext4
 3      61.4GB  128GB   66.6GB  ext4

At first, I only had Windows. I didn't put the arch boot in the windows boot because it is on the hdd, and I wanted the arch boot to be fast.

Offline

#13 2021-05-28 06:39:34

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,118

Re: I made a mess with the Archlinux boot

So it seems you have two ESPs, /dev/nvme0n1p1 which I assume is currently mounted and where grub and linux (and BOOTX64.EFI) reside to /boot/efi and /dev/sda2 where probably Microsoft\Boot\bootmgfw.efi is?
Don't mount the latter into /boot/efi because then updates will go into the wrong location.

To have os-prober find windows you need to mount it *somwehere*, eg. /mnt/windows and /mnt/windows_efi (not sure whether the latter is actually required) - they don't have to exist in some meaningful system path.

Online

Board footer

Powered by FluxBB