You are not logged in.

#26 2022-10-11 05:39:17

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

In my live usb my root seems to be mounted at "/media/ubuntu/2c829835...", though it doesn't seem to be accessible from arch-chroot. Should I provide any other information maybe? I feel like I have not other options to input.

nvme0n1
│      259:0    0 476.9G  0 disk  
├─nvme0n1p1
│      259:1    0   484M  0 part  
├─nvme0n1p2
│      259:2    0  36.8G  0 part  
│ └─luks-94c9e3c7-6abc-4cdf-a2df-8be3662ffb2c
│      253:0    0  36.8G  0 crypt /media/ubuntu/2c829835-ebbd-45d2-98c5-d21df1ce09cc
└─nvme0n1p3
       259:3    0 439.7G  0 part  
  └─luks-1d1c184a-8aa4-4471-8093-754cfe68bfc5
       253:1    0 439.7G  0 crypt

Last edited by godpraisearch (2022-10-11 07:33:35)

Offline

#27 2022-10-11 06:33:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,254

Re: [SOLVED] GRUB doesn't boot after updating config

What does "seem" mean? What error do you get from chrooting? You need to mount that location (... in doubt do so manually rather than relying on a GUI popup) chroot there, mount nvme0n1p1 to /boot after the chroot and run

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

what's your current output of

mount

Last edited by V1del (2022-10-11 06:33:48)

Offline

#28 2022-10-11 06:55:02

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

running mount outputs what is below.

/dev/mapper/luks-94c9e3c7-6abc-4cdf-a2df-8be3662ffb2c on / type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=7804272k,nr_inodes=1951068,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime,inode64)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1573384k,mode=755,inode64)
tmp on /tmp type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /etc/resolv.conf type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1573384k,mode=755,inode64)

Last edited by godpraisearch (2022-10-11 07:20:52)

Offline

#29 2022-10-11 07:06:02

seth
Member
Registered: 2012-09-03
Posts: 58,798

Re: [SOLVED] GRUB doesn't boot after updating config

Please use code tags, https://bbs.archlinux.org/help.php#bbcode

V1del wrote:

You need to mount that location (... in doubt do so manually rather than relying on a GUI popup) chroot there, mount nvme0n1p1 to /boot after the chroot

Online

#30 2022-10-12 23:16:48

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

So I did that. I arch-chroot into my unencrypted, then mounted /dev/nvme0n1p1 (while in chroot) to /boot and I then ran the command above and it gave me

Installing for x86_64-efi platform.
Installation finished. No error reported.

But when rebooting I am still sent back into the grub command line.

Offline

#31 2022-10-12 23:38:57

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED] GRUB doesn't boot after updating config

Did you regenerate the grub's config while you were in the chroot with everything set up correctly to install grub?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#32 2022-10-13 00:11:48

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

I did everything again with the inclusion of

grub-mkconfig -o /boot/grub/grub.cfg

and everything ran without errors, what did change is that the grub menu shows up now, but just with the UEFI Firmware option.

Offline

#33 2022-10-13 00:18:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,254

Re: [SOLVED] GRUB doesn't boot after updating config

did you mount the boot partition before running that? What was your exact grub-install command? You need to boot the config and the kernel from the ESP which should be mounted to /boot

Offline

#34 2022-10-13 00:46:04

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

the exact commands that I inputted were the following:

sudo arch-chroot /media/ubuntu/2c829835-ebbd-45d2-98c5-d21df1ce09cc
sudo mount /dev/nvme0n1p1 /boot
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

Offline

#35 2022-10-13 01:22:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED] GRUB doesn't boot after updating config

If that's exactly what you did, either the sudo was unnecessary or you should have got permissions errors when you dropped it.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#36 2022-10-13 01:42:00

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

This is all the output I got:

[root@ubuntu /]# sudo mount /dev/nvme0n1p1 /boot
mount: /boot: /dev/nvme0n1p1 already mounted on /boot.
       dmesg(1) may have more information after failed mount system call.
[root@ubuntu /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
[root@ubuntu /]# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
Installing for x86_64-efi platform.
Installation finished. No error reported.

Offline

#37 2022-10-13 06:48:52

seth
Member
Registered: 2012-09-03
Posts: 58,798

Re: [SOLVED] GRUB doesn't boot after updating config

I assume there's an error before GRUB drops you into the commandline, the cause is typically that the GRUB objects are not in the expected location.
What's the output of "ls -R /boot" after

sudo arch-chroot /media/ubuntu/2c829835-ebbd-45d2-98c5-d21df1ce09cc
sudo mount /dev/nvme0n1p1 /boot

?

In doubt just re-install the grb package at this point.

Online

#38 2022-10-13 10:29:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED] GRUB doesn't boot after updating config

The wiki says to create the configuration file *after* running grub-install. However, it is a long time since I used grub and I can't remember whether this matters.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#39 2022-10-13 19:27:44

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

To answer what seth asked above, this is what I get:

[root@ubuntu /]# ls -R /boot
/boot:
boot  EFI  grub

/boot/boot:
grub

/boot/boot/grub:
fonts  grubenv	locale	x86_64-efi

/boot/boot/grub/fonts:
unicode.pf2

/boot/boot/grub/locale:
de.mo	  en_CA.mo  en@quot.mo	fr.mo  pt_BR.mo  ru.mo
en_AU.mo  en_GB.mo  es.mo	it.mo  pt.mo	 zh_CN.mo

/boot/boot/grub/x86_64-efi:
acpi.mod	      gcry_whirlpool.mod	part_sunpc.mod
adler32.mod	      geli.mod			parttool.lst
affs.mod	      gettext.mod		parttool.mod
afs.mod		      gfxmenu.mod		password.mod
afsplitter.mod	      gfxterm_background.mod	password_pbkdf2.mod
ahci.mod	      gfxterm_menu.mod		pata.mod
all_video.mod	      gfxterm.mod		pbkdf2.mod
aout.mod	      gptsync.mod		pbkdf2_test.mod
appleldr.mod	      grub.efi			pcidump.mod
archelp.mod	      gzio.mod			pgp.mod
ata.mod		      halt.mod			play.mod
at_keyboard.mod       hashsum.mod		png.mod
backtrace.mod	      hdparm.mod		priority_queue.mod
bfs.mod		      hello.mod			probe.mod
bitmap.mod	      help.mod			procfs.mod
bitmap_scale.mod      hexdump.mod		progress.mod
blocklist.mod	      hfs.mod			raid5rec.mod
boot.mod	      hfspluscomp.mod		raid6rec.mod
bsd.mod		      hfsplus.mod		random.mod
bswap_test.mod	      http.mod			rdmsr.mod
btrfs.mod	      iorw.mod			read.mod
bufio.mod	      iso9660.mod		reboot.mod
cat.mod		      jfs.mod			regexp.mod
cbfs.mod	      jpeg.mod			reiserfs.mod
cbls.mod	      json.mod			relocator.mod
cbmemc.mod	      keylayouts.mod		romfs.mod
cbtable.mod	      keystatus.mod		scsi.mod
cbtime.mod	      ldm.mod			search_fs_file.mod
chain.mod	      legacycfg.mod		search_fs_uuid.mod
cmdline_cat_test.mod  legacy_password_test.mod	search_label.mod
cmp.mod		      linux16.mod		search.mod
cmp_test.mod	      linuxefi.mod		serial.mod
command.lst	      linux.mod			setjmp.mod
configfile.mod	      loadbios.mod		setjmp_test.mod
core.efi	      load.cfg			setpci.mod
cpio_be.mod	      loadenv.mod		sfs.mod
cpio.mod	      loopback.mod		shift_test.mod
cpuid.mod	      lsacpi.mod		signature_test.mod
crc64.mod	      lsefimmap.mod		sleep.mod
cryptodisk.mod	      lsefi.mod			sleep_test.mod
crypto.lst	      lsefisystab.mod		smbios.mod
crypto.mod	      lsmmap.mod		spkmodem.mod
cs5536.mod	      ls.mod			squash4.mod
ctz_test.mod	      lspci.mod			strtoull_test.mod
datehook.mod	      lssal.mod			syslinuxcfg.mod
date.mod	      luks2.mod			tar.mod
datetime.mod	      luks.mod			terminal.lst
diskfilter.mod	      lvm.mod			terminal.mod
disk.mod	      lzopio.mod		terminfo.mod
div.mod		      macbless.mod		test_blockarg.mod
div_test.mod	      macho.mod			testload.mod
dm_nv.mod	      mdraid09_be.mod		test.mod
echo.mod	      mdraid09.mod		testspeed.mod
efifwsetup.mod	      mdraid1x.mod		tftp.mod
efi_gop.mod	      memdisk.mod		tga.mod
efinet.mod	      memrw.mod			time.mod
efi_uga.mod	      minicmd.mod		tpm.mod
ehci.mod	      minix2_be.mod		trig.mod
elf.mod		      minix2.mod		tr.mod
eval.mod	      minix3_be.mod		true.mod
exfat.mod	      minix3.mod		udf.mod
exfctest.mod	      minix_be.mod		ufs1_be.mod
ext2.mod	      minix.mod			ufs1.mod
extcmd.mod	      mmap.mod			ufs2.mod
f2fs.mod	      moddep.lst		uhci.mod
fat.mod		      modinfo.sh		usb_keyboard.mod
file.mod	      morse.mod			usb.mod
fixvideo.mod	      mpi.mod			usbms.mod
font.mod	      msdospart.mod		usbserial_common.mod
fshelp.mod	      mul_test.mod		usbserial_ftdi.mod
fs.lst		      multiboot2.mod		usbserial_pl2303.mod
functional_test.mod   multiboot.mod		usbserial_usbdebug.mod
gcry_arcfour.mod      nativedisk.mod		usbtest.mod
gcry_blowfish.mod     net.mod			video_bochs.mod
gcry_camellia.mod     newc.mod			video_cirrus.mod
gcry_cast5.mod	      nilfs2.mod		video_colors.mod
gcry_crc.mod	      normal.mod		video_fb.mod
gcry_des.mod	      ntfscomp.mod		videoinfo.mod
gcry_dsa.mod	      ntfs.mod			video.lst
gcry_idea.mod	      odc.mod			video.mod
gcry_md4.mod	      offsetio.mod		videotest_checksum.mod
gcry_md5.mod	      ohci.mod			videotest.mod
gcry_rfc2268.mod      part_acorn.mod		wrmsr.mod
gcry_rijndael.mod     part_amiga.mod		xfs.mod
gcry_rmd160.mod       part_apple.mod		xnu.mod
gcry_rsa.mod	      part_bsd.mod		xnu_uuid.mod
gcry_seed.mod	      part_dfly.mod		xnu_uuid_test.mod
gcry_serpent.mod      part_dvh.mod		xzio.mod
gcry_sha1.mod	      part_gpt.mod		zfscrypt.mod
gcry_sha256.mod       partmap.lst		zfsinfo.mod
gcry_sha512.mod       part_msdos.mod		zfs.mod
gcry_tiger.mod	      part_plan.mod		zstd.mod
gcry_twofish.mod      part_sun.mod

/boot/EFI:
BOOT  GRUB  ubuntu

/boot/EFI/BOOT:
BOOTX64.EFI  fbx64.efi	mmx64.efi

/boot/EFI/GRUB:
grubx64.efi

/boot/EFI/ubuntu:
BOOTX64.CSV  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi

/boot/grub:
fonts  grub.cfg  grubenv  locale  themes  x86_64-efi

/boot/grub/fonts:
unicode.pf2

/boot/grub/locale:
ast.mo	      en@arabic.mo    eo.mo  hu.mo  lg.mo  pt_BR.mo  sv.mo
ca.mo	      en@cyrillic.mo  es.mo  id.mo  lt.mo  pt.mo     tr.mo
da.mo	      en@greek.mo     fi.mo  it.mo  nb.mo  ro.mo     uk.mo
de_CH.mo      en@hebrew.mo    fr.mo  ja.mo  nl.mo  ru.mo     vi.mo
de@hebrew.mo  en@piglatin.mo  gl.mo  ka.mo  pa.mo  sl.mo     zh_CN.mo
de.mo	      en@quot.mo      hr.mo  ko.mo  pl.mo  sr.mo     zh_TW.mo

/boot/grub/themes:
starfield

/boot/grub/themes/starfield:
blob_w.png	      dejavu_10.pf2	  terminal_box_e.png
boot_menu_c.png       dejavu_12.pf2	  terminal_box_ne.png
boot_menu_e.png       dejavu_14.pf2	  terminal_box_n.png
boot_menu_ne.png      dejavu_16.pf2	  terminal_box_nw.png
boot_menu_n.png       dejavu_bold_14.pf2  terminal_box_se.png
boot_menu_nw.png      README		  terminal_box_s.png
boot_menu_se.png      slider_c.png	  terminal_box_sw.png
boot_menu_s.png       slider_n.png	  terminal_box_w.png
boot_menu_sw.png      slider_s.png	  theme.txt
boot_menu_w.png       starfield.png
COPYING.CC-BY-SA-3.0  terminal_box_c.png

/boot/grub/x86_64-efi:
acpi.mod	      gcry_sha512.mod		part_sun.mod
adler32.mod	      gcry_tiger.mod		part_sunpc.mod
affs.mod	      gcry_twofish.mod		parttool.lst
afs.mod		      gcry_whirlpool.mod	parttool.mod
afsplitter.mod	      geli.mod			password.mod
ahci.mod	      gettext.mod		password_pbkdf2.mod
all_video.mod	      gfxmenu.mod		pata.mod
aout.mod	      gfxterm_background.mod	pbkdf2.mod
appleldr.mod	      gfxterm_menu.mod		pbkdf2_test.mod
archelp.mod	      gfxterm.mod		pcidump.mod
ata.mod		      gptsync.mod		pgp.mod
at_keyboard.mod       grub.efi			play.mod
backtrace.mod	      gzio.mod			png.mod
bfs.mod		      halt.mod			priority_queue.mod
bitmap.mod	      hashsum.mod		probe.mod
bitmap_scale.mod      hdparm.mod		procfs.mod
blocklist.mod	      hello.mod			progress.mod
boot.mod	      help.mod			raid5rec.mod
boottime.mod	      hexdump.mod		raid6rec.mod
bsd.mod		      hfs.mod			random.mod
bswap_test.mod	      hfspluscomp.mod		rdmsr.mod
btrfs.mod	      hfsplus.mod		read.mod
bufio.mod	      http.mod			reboot.mod
cacheinfo.mod	      iorw.mod			regexp.mod
cat.mod		      iso9660.mod		reiserfs.mod
cbfs.mod	      jfs.mod			relocator.mod
cbls.mod	      jpeg.mod			romfs.mod
cbmemc.mod	      json.mod			scsi.mod
cbtable.mod	      keylayouts.mod		search_fs_file.mod
cbtime.mod	      keystatus.mod		search_fs_uuid.mod
chain.mod	      ldm.mod			search_label.mod
cmdline_cat_test.mod  legacycfg.mod		search.mod
cmp.mod		      legacy_password_test.mod	serial.mod
cmp_test.mod	      linux16.mod		setjmp.mod
command.lst	      linux.mod			setjmp_test.mod
configfile.mod	      loadbios.mod		setpci.mod
core.efi	      loadenv.mod		sfs.mod
cpio_be.mod	      loopback.mod		shift_test.mod
cpio.mod	      lsacpi.mod		signature_test.mod
cpuid.mod	      lsefimmap.mod		sleep.mod
crc64.mod	      lsefi.mod			sleep_test.mod
cryptodisk.mod	      lsefisystab.mod		smbios.mod
crypto.lst	      lsmmap.mod		spkmodem.mod
crypto.mod	      ls.mod			squash4.mod
cs5536.mod	      lspci.mod			strtoull_test.mod
ctz_test.mod	      lssal.mod			syslinuxcfg.mod
datehook.mod	      luks2.mod			tar.mod
date.mod	      luks.mod			terminal.lst
datetime.mod	      lvm.mod			terminal.mod
diskfilter.mod	      lzopio.mod		terminfo.mod
disk.mod	      macbless.mod		test_blockarg.mod
div.mod		      macho.mod			testload.mod
div_test.mod	      mdraid09_be.mod		test.mod
dm_nv.mod	      mdraid09.mod		testspeed.mod
echo.mod	      mdraid1x.mod		tftp.mod
efifwsetup.mod	      memdisk.mod		tga.mod
efi_gop.mod	      memrw.mod			time.mod
efinet.mod	      minicmd.mod		tpm.mod
efitextmode.mod       minix2_be.mod		trig.mod
efi_uga.mod	      minix2.mod		tr.mod
ehci.mod	      minix3_be.mod		true.mod
elf.mod		      minix3.mod		udf.mod
eval.mod	      minix_be.mod		ufs1_be.mod
exfat.mod	      minix.mod			ufs1.mod
exfctest.mod	      mmap.mod			ufs2.mod
ext2.mod	      moddep.lst		uhci.mod
extcmd.mod	      modinfo.sh		usb_keyboard.mod
f2fs.mod	      morse.mod			usb.mod
fat.mod		      mpi.mod			usbms.mod
file.mod	      msdospart.mod		usbserial_common.mod
fixvideo.mod	      mul_test.mod		usbserial_ftdi.mod
font.mod	      multiboot2.mod		usbserial_pl2303.mod
fshelp.mod	      multiboot.mod		usbserial_usbdebug.mod
fs.lst		      nativedisk.mod		usbtest.mod
functional_test.mod   net.mod			video_bochs.mod
gcry_arcfour.mod      newc.mod			video_cirrus.mod
gcry_blowfish.mod     nilfs2.mod		video_colors.mod
gcry_camellia.mod     normal.mod		video_fb.mod
gcry_cast5.mod	      ntfscomp.mod		videoinfo.mod
gcry_crc.mod	      ntfs.mod			video.lst
gcry_des.mod	      odc.mod			video.mod
gcry_dsa.mod	      offsetio.mod		videotest_checksum.mod
gcry_idea.mod	      ohci.mod			videotest.mod
gcry_md4.mod	      part_acorn.mod		wrmsr.mod
gcry_md5.mod	      part_amiga.mod		xfs.mod
gcry_rfc2268.mod      part_apple.mod		xnu.mod
gcry_rijndael.mod     part_bsd.mod		xnu_uuid.mod
gcry_rmd160.mod       part_dfly.mod		xnu_uuid_test.mod
gcry_rsa.mod	      part_dvh.mod		xzio.mod
gcry_seed.mod	      part_gpt.mod		zfscrypt.mod
gcry_serpent.mod      partmap.lst		zfsinfo.mod
gcry_sha1.mod	      part_msdos.mod		zfs.mod
gcry_sha256.mod       part_plan.mod		zstd.mod

Not sure if any of this will help.

Offline

#40 2022-10-13 19:51:12

seth
Member
Registered: 2012-09-03
Posts: 58,798

Re: [SOLVED] GRUB doesn't boot after updating config

There's a "/boot/boot"

stat /boot/boot/grub/x86_64-efi/acpi.mod
stat /boot/grub/x86_64-efi/acpi.mod

Also there's some rather fishy /boot/EFI/ubuntu - is there also a parallel ubuntu installation?

What's the actual error message before you get dropped into the grub shell?

Online

#41 2022-10-13 20:38:14

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

Before I ran those commands got not feedback, and was just put into grub shell.
After the commands I just boot straight into grub, UEFI Firmware being the only option (which make me enter my BIOS).

Offline

#42 2022-10-13 20:51:48

seth
Member
Registered: 2012-09-03
Posts: 58,798

Re: [SOLVED] GRUB doesn't boot after updating config

What "commands"? grub-mkconfig and grub-install?

What's the content of the /boot/grub/grub.cfg you generated?

Online

#43 2022-10-13 20:51:56

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] GRUB doesn't boot after updating config

godpraisearch wrote:

To answer what seth asked above, this is what I get:

[root@ubuntu /]# ls -R /boot
/boot:
boot  EFI  grub

/boot/boot:
grub

/boot/boot/grub:
fonts  grubenv	locale	x86_64-efi

/boot/boot/grub/fonts:
unicode.pf2

/boot/boot/grub/locale:
de.mo	  en_CA.mo  en@quot.mo	fr.mo  pt_BR.mo  ru.mo
en_AU.mo  en_GB.mo  es.mo	it.mo  pt.mo	 zh_CN.mo

/boot/boot/grub/x86_64-efi:
acpi.mod	      gcry_whirlpool.mod	part_sunpc.mod
adler32.mod	      geli.mod			parttool.lst
affs.mod	      gettext.mod		parttool.mod
afs.mod		      gfxmenu.mod		password.mod
afsplitter.mod	      gfxterm_background.mod	password_pbkdf2.mod
ahci.mod	      gfxterm_menu.mod		pata.mod
all_video.mod	      gfxterm.mod		pbkdf2.mod
aout.mod	      gptsync.mod		pbkdf2_test.mod
appleldr.mod	      grub.efi			pcidump.mod
archelp.mod	      gzio.mod			pgp.mod
ata.mod		      halt.mod			play.mod
at_keyboard.mod       hashsum.mod		png.mod
backtrace.mod	      hdparm.mod		priority_queue.mod
bfs.mod		      hello.mod			probe.mod
bitmap.mod	      help.mod			procfs.mod
bitmap_scale.mod      hexdump.mod		progress.mod
blocklist.mod	      hfs.mod			raid5rec.mod
boot.mod	      hfspluscomp.mod		raid6rec.mod
bsd.mod		      hfsplus.mod		random.mod
bswap_test.mod	      http.mod			rdmsr.mod
btrfs.mod	      iorw.mod			read.mod
bufio.mod	      iso9660.mod		reboot.mod
cat.mod		      jfs.mod			regexp.mod
cbfs.mod	      jpeg.mod			reiserfs.mod
cbls.mod	      json.mod			relocator.mod
cbmemc.mod	      keylayouts.mod		romfs.mod
cbtable.mod	      keystatus.mod		scsi.mod
cbtime.mod	      ldm.mod			search_fs_file.mod
chain.mod	      legacycfg.mod		search_fs_uuid.mod
cmdline_cat_test.mod  legacy_password_test.mod	search_label.mod
cmp.mod		      linux16.mod		search.mod
cmp_test.mod	      linuxefi.mod		serial.mod
command.lst	      linux.mod			setjmp.mod
configfile.mod	      loadbios.mod		setjmp_test.mod
core.efi	      load.cfg			setpci.mod
cpio_be.mod	      loadenv.mod		sfs.mod
cpio.mod	      loopback.mod		shift_test.mod
cpuid.mod	      lsacpi.mod		signature_test.mod
crc64.mod	      lsefimmap.mod		sleep.mod
cryptodisk.mod	      lsefi.mod			sleep_test.mod
crypto.lst	      lsefisystab.mod		smbios.mod
crypto.mod	      lsmmap.mod		spkmodem.mod
cs5536.mod	      ls.mod			squash4.mod
ctz_test.mod	      lspci.mod			strtoull_test.mod
datehook.mod	      lssal.mod			syslinuxcfg.mod
date.mod	      luks2.mod			tar.mod
datetime.mod	      luks.mod			terminal.lst
diskfilter.mod	      lvm.mod			terminal.mod
disk.mod	      lzopio.mod		terminfo.mod
div.mod		      macbless.mod		test_blockarg.mod
div_test.mod	      macho.mod			testload.mod
dm_nv.mod	      mdraid09_be.mod		test.mod
echo.mod	      mdraid09.mod		testspeed.mod
efifwsetup.mod	      mdraid1x.mod		tftp.mod
efi_gop.mod	      memdisk.mod		tga.mod
efinet.mod	      memrw.mod			time.mod
efi_uga.mod	      minicmd.mod		tpm.mod
ehci.mod	      minix2_be.mod		trig.mod
elf.mod		      minix2.mod		tr.mod
eval.mod	      minix3_be.mod		true.mod
exfat.mod	      minix3.mod		udf.mod
exfctest.mod	      minix_be.mod		ufs1_be.mod
ext2.mod	      minix.mod			ufs1.mod
extcmd.mod	      mmap.mod			ufs2.mod
f2fs.mod	      moddep.lst		uhci.mod
fat.mod		      modinfo.sh		usb_keyboard.mod
file.mod	      morse.mod			usb.mod
fixvideo.mod	      mpi.mod			usbms.mod
font.mod	      msdospart.mod		usbserial_common.mod
fshelp.mod	      mul_test.mod		usbserial_ftdi.mod
fs.lst		      multiboot2.mod		usbserial_pl2303.mod
functional_test.mod   multiboot.mod		usbserial_usbdebug.mod
gcry_arcfour.mod      nativedisk.mod		usbtest.mod
gcry_blowfish.mod     net.mod			video_bochs.mod
gcry_camellia.mod     newc.mod			video_cirrus.mod
gcry_cast5.mod	      nilfs2.mod		video_colors.mod
gcry_crc.mod	      normal.mod		video_fb.mod
gcry_des.mod	      ntfscomp.mod		videoinfo.mod
gcry_dsa.mod	      ntfs.mod			video.lst
gcry_idea.mod	      odc.mod			video.mod
gcry_md4.mod	      offsetio.mod		videotest_checksum.mod
gcry_md5.mod	      ohci.mod			videotest.mod
gcry_rfc2268.mod      part_acorn.mod		wrmsr.mod
gcry_rijndael.mod     part_amiga.mod		xfs.mod
gcry_rmd160.mod       part_apple.mod		xnu.mod
gcry_rsa.mod	      part_bsd.mod		xnu_uuid.mod
gcry_seed.mod	      part_dfly.mod		xnu_uuid_test.mod
gcry_serpent.mod      part_dvh.mod		xzio.mod
gcry_sha1.mod	      part_gpt.mod		zfscrypt.mod
gcry_sha256.mod       partmap.lst		zfsinfo.mod
gcry_sha512.mod       part_msdos.mod		zfs.mod
gcry_tiger.mod	      part_plan.mod		zstd.mod
gcry_twofish.mod      part_sun.mod

/boot/EFI:
BOOT  GRUB  ubuntu

/boot/EFI/BOOT:
BOOTX64.EFI  fbx64.efi	mmx64.efi

/boot/EFI/GRUB:
grubx64.efi

/boot/EFI/ubuntu:
BOOTX64.CSV  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi

/boot/grub:
fonts  grub.cfg  grubenv  locale  themes  x86_64-efi

/boot/grub/fonts:
unicode.pf2

/boot/grub/locale:
ast.mo	      en@arabic.mo    eo.mo  hu.mo  lg.mo  pt_BR.mo  sv.mo
ca.mo	      en@cyrillic.mo  es.mo  id.mo  lt.mo  pt.mo     tr.mo
da.mo	      en@greek.mo     fi.mo  it.mo  nb.mo  ro.mo     uk.mo
de_CH.mo      en@hebrew.mo    fr.mo  ja.mo  nl.mo  ru.mo     vi.mo
de@hebrew.mo  en@piglatin.mo  gl.mo  ka.mo  pa.mo  sl.mo     zh_CN.mo
de.mo	      en@quot.mo      hr.mo  ko.mo  pl.mo  sr.mo     zh_TW.mo

/boot/grub/themes:
starfield

/boot/grub/themes/starfield:
blob_w.png	      dejavu_10.pf2	  terminal_box_e.png
boot_menu_c.png       dejavu_12.pf2	  terminal_box_ne.png
boot_menu_e.png       dejavu_14.pf2	  terminal_box_n.png
boot_menu_ne.png      dejavu_16.pf2	  terminal_box_nw.png
boot_menu_n.png       dejavu_bold_14.pf2  terminal_box_se.png
boot_menu_nw.png      README		  terminal_box_s.png
boot_menu_se.png      slider_c.png	  terminal_box_sw.png
boot_menu_s.png       slider_n.png	  terminal_box_w.png
boot_menu_sw.png      slider_s.png	  theme.txt
boot_menu_w.png       starfield.png
COPYING.CC-BY-SA-3.0  terminal_box_c.png

/boot/grub/x86_64-efi:
acpi.mod	      gcry_sha512.mod		part_sun.mod
adler32.mod	      gcry_tiger.mod		part_sunpc.mod
affs.mod	      gcry_twofish.mod		parttool.lst
afs.mod		      gcry_whirlpool.mod	parttool.mod
afsplitter.mod	      geli.mod			password.mod
ahci.mod	      gettext.mod		password_pbkdf2.mod
all_video.mod	      gfxmenu.mod		pata.mod
aout.mod	      gfxterm_background.mod	pbkdf2.mod
appleldr.mod	      gfxterm_menu.mod		pbkdf2_test.mod
archelp.mod	      gfxterm.mod		pcidump.mod
ata.mod		      gptsync.mod		pgp.mod
at_keyboard.mod       grub.efi			play.mod
backtrace.mod	      gzio.mod			png.mod
bfs.mod		      halt.mod			priority_queue.mod
bitmap.mod	      hashsum.mod		probe.mod
bitmap_scale.mod      hdparm.mod		procfs.mod
blocklist.mod	      hello.mod			progress.mod
boot.mod	      help.mod			raid5rec.mod
boottime.mod	      hexdump.mod		raid6rec.mod
bsd.mod		      hfs.mod			random.mod
bswap_test.mod	      hfspluscomp.mod		rdmsr.mod
btrfs.mod	      hfsplus.mod		read.mod
bufio.mod	      http.mod			reboot.mod
cacheinfo.mod	      iorw.mod			regexp.mod
cat.mod		      iso9660.mod		reiserfs.mod
cbfs.mod	      jfs.mod			relocator.mod
cbls.mod	      jpeg.mod			romfs.mod
cbmemc.mod	      json.mod			scsi.mod
cbtable.mod	      keylayouts.mod		search_fs_file.mod
cbtime.mod	      keystatus.mod		search_fs_uuid.mod
chain.mod	      ldm.mod			search_label.mod
cmdline_cat_test.mod  legacycfg.mod		search.mod
cmp.mod		      legacy_password_test.mod	serial.mod
cmp_test.mod	      linux16.mod		setjmp.mod
command.lst	      linux.mod			setjmp_test.mod
configfile.mod	      loadbios.mod		setpci.mod
core.efi	      loadenv.mod		sfs.mod
cpio_be.mod	      loopback.mod		shift_test.mod
cpio.mod	      lsacpi.mod		signature_test.mod
cpuid.mod	      lsefimmap.mod		sleep.mod
crc64.mod	      lsefi.mod			sleep_test.mod
cryptodisk.mod	      lsefisystab.mod		smbios.mod
crypto.lst	      lsmmap.mod		spkmodem.mod
crypto.mod	      ls.mod			squash4.mod
cs5536.mod	      lspci.mod			strtoull_test.mod
ctz_test.mod	      lssal.mod			syslinuxcfg.mod
datehook.mod	      luks2.mod			tar.mod
date.mod	      luks.mod			terminal.lst
datetime.mod	      lvm.mod			terminal.mod
diskfilter.mod	      lzopio.mod		terminfo.mod
disk.mod	      macbless.mod		test_blockarg.mod
div.mod		      macho.mod			testload.mod
div_test.mod	      mdraid09_be.mod		test.mod
dm_nv.mod	      mdraid09.mod		testspeed.mod
echo.mod	      mdraid1x.mod		tftp.mod
efifwsetup.mod	      memdisk.mod		tga.mod
efi_gop.mod	      memrw.mod			time.mod
efinet.mod	      minicmd.mod		tpm.mod
efitextmode.mod       minix2_be.mod		trig.mod
efi_uga.mod	      minix2.mod		tr.mod
ehci.mod	      minix3_be.mod		true.mod
elf.mod		      minix3.mod		udf.mod
eval.mod	      minix_be.mod		ufs1_be.mod
exfat.mod	      minix.mod			ufs1.mod
exfctest.mod	      mmap.mod			ufs2.mod
ext2.mod	      moddep.lst		uhci.mod
extcmd.mod	      modinfo.sh		usb_keyboard.mod
f2fs.mod	      morse.mod			usb.mod
fat.mod		      mpi.mod			usbms.mod
file.mod	      msdospart.mod		usbserial_common.mod
fixvideo.mod	      mul_test.mod		usbserial_ftdi.mod
font.mod	      multiboot2.mod		usbserial_pl2303.mod
fshelp.mod	      multiboot.mod		usbserial_usbdebug.mod
fs.lst		      nativedisk.mod		usbtest.mod
functional_test.mod   net.mod			video_bochs.mod
gcry_arcfour.mod      newc.mod			video_cirrus.mod
gcry_blowfish.mod     nilfs2.mod		video_colors.mod
gcry_camellia.mod     normal.mod		video_fb.mod
gcry_cast5.mod	      ntfscomp.mod		videoinfo.mod
gcry_crc.mod	      ntfs.mod			video.lst
gcry_des.mod	      odc.mod			video.mod
gcry_dsa.mod	      offsetio.mod		videotest_checksum.mod
gcry_idea.mod	      ohci.mod			videotest.mod
gcry_md4.mod	      part_acorn.mod		wrmsr.mod
gcry_md5.mod	      part_amiga.mod		xfs.mod
gcry_rfc2268.mod      part_apple.mod		xnu.mod
gcry_rijndael.mod     part_bsd.mod		xnu_uuid.mod
gcry_rmd160.mod       part_dfly.mod		xnu_uuid_test.mod
gcry_rsa.mod	      part_dvh.mod		xzio.mod
gcry_seed.mod	      part_gpt.mod		zfscrypt.mod
gcry_serpent.mod      partmap.lst		zfsinfo.mod
gcry_sha1.mod	      part_msdos.mod		zfs.mod
gcry_sha256.mod       part_plan.mod		zstd.mod

Not sure if any of this will help.

You don't have a kernel or initramfs in your /boot partition, that's why grub-mkconfig hasn't created an entry.
You need to install the kernel after mounting the boot partition.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#44 2022-10-15 01:11:49

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

So this is what I was able to do so far. I had a backup that I had made, and that was able save my boot directory. I copy/paste it into my main boot directory and it still just shows me "UEFI Firmware" in grub. I don't think the command "sudo mount /dev/nvme0n1p1 /boot" is right, even after using it the main boot directory changes from

acpi_override.cpio  EFI   initramfs-linux-fallback.img  vmlinuz-linux
amd-ucode.img       grub  initramfs-linux.img

to

boot  EFI  grub

boot > grub > fonts  grubenv  locale  x86_64-efi
EFI > BOOT GRUB  ubuntu
grub > fonts  grub.cfg  grubenv  locale  themes  x86_64-efi

Offline

#45 2022-10-15 01:59:29

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED] GRUB doesn't boot after updating config

You need to install linux, your microcode,  *after* mounting the partition. The initramfs etc. is not on your boot partition. When you mount the partition to /boot, you see what is actually installed there i.e. no amd-ucode.img, no initramfs-linux.img, no vmlinuz-linux etc. That's because those things were installed when the partition wasn't mounted. So they're in the wrong place and grub can't find them.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#46 2022-10-15 05:48:21

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

Alright, I was able to boot into the grub menu, select Arch Linux from the options, then input my password to unencrypt my drive but I then get this error.

Starting version 251.4-1-arch
A password is required to access the cryptlun volume:
Enter passphrase for /deu/numeOn1p2:
/deu/mapper/cryptlum: clean, 429785/2411920 files, 7545325/9635072 blocks
[FAILED1 Failed to mount /boot.
[DEPEND] Dependency failed for Local File Systems.
Fou are in cmergency node. After lossino in, ystenet! default"
"journalcti -xb" to view
system logs,
"systenctl reboot" to reboot,
or "exit"
to boot into default mode.
Cannot open access to console, the root account is locked.
See sulogin(B) man page for more details.
Press Enter to continue.

I had gone into chroot, mounted my like above, copied the files from my backup, that’s all.

Offline

#47 2022-10-15 07:03:25

seth
Member
Registered: 2012-09-03
Posts: 58,798

Re: [SOLVED] GRUB doesn't boot after updating config

copied the files from my backup

most likely means you're now booting an older kernel that has no modules in /lib/modules.
Re-install the kernel from the chroot w/ mounted /boot partition.

Online

#48 2022-10-15 21:12:32

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

I can't compile the kernel in my boot partition because it's only 500MB in size. Any other way?

Offline

#49 2022-10-15 21:27:25

seth
Member
Registered: 2012-09-03
Posts: 58,798

Re: [SOLVED] GRUB doesn't boot after updating config

What?
Compile your kernel in your boot partition?
Wtf are you talking about?

Boot the live system, chroot, mount /boot, and then"pacman -S linux"
If you're running a custom kernel, you can re-install it from the chroot as usual.

How did you install archlinux?

Online

#50 2022-10-16 00:18:45

godpraisearch
Member
Registered: 2022-04-21
Posts: 50

Re: [SOLVED] GRUB doesn't boot after updating config

Lets go!! It finally worked, the solution was simpler than I thought. Thank you to everyone who has helped me with this long problem. I'll post the solution to the first post.

Offline

Board footer

Powered by FluxBB