You are not logged in.

#1 2021-04-07 19:18:53

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Always getting error after updating

Hi,
I always get this error whenever I update my arch system after rebooting that says

Failed to start module
Failed to mount /boot
Dependency failed for local system

I'm able to fix the error once I get into emergency mode and type the following command

sudo pacman -S linux

Here's the screen shot of the error message
Whats-App-Image-2021-04-07-at-11-59-44-PM.jpg

Any idea why I'm getting this error every time I update & reboot?

Last edited by ZulluBalti (2021-04-07 19:19:55)

Offline

#2 2021-04-07 19:22:04

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Always getting error after updating

Sounds like /boot isn't mounted correctly when the kernel is updated.

Can we see the content of /etc/fstab and the output of

lsblk -o name,uuid,mountpoint

Offline

#3 2021-04-07 19:49:19

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

Content of /etc/fstab

# /dev/sda3
UUID=c2c9887a-d132-4f6b-ae44-0cd6e33c840c       /               ext4            rw,relatime     0 1

# tracefs
tracefs                 /sys/kernel/tracing     tracefs         rw,nosuid,nodev,noexec  0 0

# /dev/sda1
UUID=153D-23B8          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro0 2

# /dev/sda7 LABEL=partido
UUID=8eb7a86a-ed3d-482b-b983-98dcd7b57cc6       /mnt/partido    ext4            rw,relatime     0 2

# /dev/sda5 LABEL=Zullu
UUID=a2d3befe-6a5b-49b7-9856-a030dea9925a       /mnt/trabajar   ext4            rw,relatime     0 2

# /dev/sda2
UUID=cf2eaf2a-4f02-4f87-bf6e-1699e0b36be9       none            swap            defaults        0 0

Output of  lsblk -o name,uuid,mountpoint

NAME   UUID                                 MOUNTPOINT
sda
├─sda1 153D-23B8                            /boot
├─sda2 cf2eaf2a-4f02-4f87-bf6e-1699e0b36be9 [SWAP]
├─sda3 c2c9887a-d132-4f6b-ae44-0cd6e33c840c /
├─sda5 a2d3befe-6a5b-49b7-9856-a030dea9925a /mnt/trabajar
├─sda7 8eb7a86a-ed3d-482b-b983-98dcd7b57cc6 /mnt/partido
└─sda8 5680F08780F06F3D
sr0

Offline

#4 2021-04-07 20:05:41

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Always getting error after updating

Is there another /boot directory on the root partition?

# umount /boot
$ find /boot
# mount /boot

Please post your bootloader configuration file(s).

Offline

#5 2021-04-07 20:17:28

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

Here's the outpu of "find /boot"

/boot
/boot/vmlinuz-linux
/boot/grub
/boot/grub/grubenv
/boot/grub/x86_64-efi
/boot/grub/x86_64-efi/lspci.mod
/boot/grub/x86_64-efi/boot.mod
/boot/grub/x86_64-efi/tpm.mod
/boot/grub/x86_64-efi/verifiers.mod
/boot/grub/x86_64-efi/gcry_twofish.mod
/boot/grub/x86_64-efi/setjmp.mod
/boot/grub/x86_64-efi/tr.mod
/boot/grub/x86_64-efi/modinfo.sh
/boot/grub/x86_64-efi/crypto.mod
/boot/grub/x86_64-efi/nilfs2.mod
/boot/grub/x86_64-efi/chain.mod
/boot/grub/x86_64-efi/terminal.lst
/boot/grub/x86_64-efi/terminal.mod
/boot/grub/x86_64-efi/video.mod
/boot/grub/x86_64-efi/appleldr.mod
/boot/grub/x86_64-efi/cbtime.mod
/boot/grub/x86_64-efi/disk.mod
/boot/grub/x86_64-efi/msdospart.mod
/boot/grub/x86_64-efi/normal.mod
/boot/grub/x86_64-efi/password_pbkdf2.mod
/boot/grub/x86_64-efi/lsacpi.mod
/boot/grub/x86_64-efi/ohci.mod
/boot/grub/x86_64-efi/gfxterm_menu.mod
/boot/grub/x86_64-efi/search_fs_uuid.mod
/boot/grub/x86_64-efi/minix_be.mod
/boot/grub/x86_64-efi/pbkdf2.mod
/boot/grub/x86_64-efi/test.mod
/boot/grub/x86_64-efi/time.mod
/boot/grub/x86_64-efi/sleep.mod
/boot/grub/x86_64-efi/gcry_md4.mod
/boot/grub/x86_64-efi/wrmsr.mod
/boot/grub/x86_64-efi/gcry_sha512.mod
/boot/grub/x86_64-efi/boottime.mod
/boot/grub/x86_64-efi/regexp.mod
/boot/grub/x86_64-efi/cpuid.mod
/boot/grub/x86_64-efi/adler32.mod
/boot/grub/x86_64-efi/gfxterm.mod
/boot/grub/x86_64-efi/ufs2.mod
/boot/grub/x86_64-efi/fat.mod
/boot/grub/x86_64-efi/fshelp.mod
/boot/grub/x86_64-efi/cbfs.mod
/boot/grub/x86_64-efi/http.mod
/boot/grub/x86_64-efi/date.mod
/boot/grub/x86_64-efi/gcry_idea.mod
/boot/grub/x86_64-efi/efifwsetup.mod
/boot/grub/x86_64-efi/gcry_blowfish.mod
/boot/grub/x86_64-efi/signature_test.mod
/boot/grub/x86_64-efi/crc64.mod
/boot/grub/x86_64-efi/bufio.mod
/boot/grub/x86_64-efi/hfsplus.mod
/boot/grub/x86_64-efi/crypto.lst
/boot/grub/x86_64-efi/lsmmap.mod
/boot/grub/x86_64-efi/diskfilter.mod
/boot/grub/x86_64-efi/usb_keyboard.mod
/boot/grub/x86_64-efi/usbtest.mod
/boot/grub/x86_64-efi/gcry_whirlpool.mod
/boot/grub/x86_64-efi/zstd.mod
/boot/grub/x86_64-efi/video_cirrus.mod
/boot/grub/x86_64-efi/eval.mod
/boot/grub/x86_64-efi/ehci.mod
/boot/grub/x86_64-efi/udf.mod
/boot/grub/x86_64-efi/cbls.mod
/boot/grub/x86_64-efi/help.mod
/boot/grub/x86_64-efi/linux16.mod
/boot/grub/x86_64-efi/lsefisystab.mod
/boot/grub/x86_64-efi/videotest.mod
/boot/grub/x86_64-efi/file.mod
/boot/grub/x86_64-efi/cpio.mod
/boot/grub/x86_64-efi/halt.mod
/boot/grub/x86_64-efi/multiboot2.mod
/boot/grub/x86_64-efi/xnu_uuid_test.mod
/boot/grub/x86_64-efi/part_gpt.mod
/boot/grub/x86_64-efi/zfs.mod
/boot/grub/x86_64-efi/affs.mod
/boot/grub/x86_64-efi/strtoull_test.mod
/boot/grub/x86_64-efi/ldm.mod
/boot/grub/x86_64-efi/progress.mod
/boot/grub/x86_64-efi/relocator.mod
/boot/grub/x86_64-efi/gcry_camellia.mod
/boot/grub/x86_64-efi/videotest_checksum.mod
/boot/grub/x86_64-efi/tftp.mod
/boot/grub/x86_64-efi/fs.lst
/boot/grub/x86_64-efi/memdisk.mod
/boot/grub/x86_64-efi/gcry_rmd160.mod
/boot/grub/x86_64-efi/minix2.mod
/boot/grub/x86_64-efi/romfs.mod
/boot/grub/x86_64-efi/cmp_test.mod
/boot/grub/x86_64-efi/reboot.mod
/boot/grub/x86_64-efi/gcry_tiger.mod
/boot/grub/x86_64-efi/bitmap_scale.mod
/boot/grub/x86_64-efi/usbserial_pl2303.mod
/boot/grub/x86_64-efi/net.mod
/boot/grub/x86_64-efi/gfxmenu.mod
/boot/grub/x86_64-efi/mdraid1x.mod
/boot/grub/x86_64-efi/hfs.mod
/boot/grub/x86_64-efi/gcry_rsa.mod
/boot/grub/x86_64-efi/gcry_sha256.mod
/boot/grub/x86_64-efi/loadbios.mod
/boot/grub/x86_64-efi/nativedisk.mod
/boot/grub/x86_64-efi/ls.mod
/boot/grub/x86_64-efi/lzopio.mod
/boot/grub/x86_64-efi/datetime.mod
/boot/grub/x86_64-efi/gcry_seed.mod
/boot/grub/x86_64-efi/spkmodem.mod
/boot/grub/x86_64-efi/ntfscomp.mod
/boot/grub/x86_64-efi/part_amiga.mod
/boot/grub/x86_64-efi/search_fs_file.mod
/boot/grub/x86_64-efi/cryptodisk.mod
/boot/grub/x86_64-efi/hashsum.mod
/boot/grub/x86_64-efi/part_bsd.mod
/boot/grub/x86_64-efi/exfat.mod
/boot/grub/x86_64-efi/play.mod
/boot/grub/x86_64-efi/all_video.mod
/boot/grub/x86_64-efi/mdraid09.mod
/boot/grub/x86_64-efi/hdparm.mod
/boot/grub/x86_64-efi/acpi.mod
/boot/grub/x86_64-efi/efi_gop.mod
/boot/grub/x86_64-efi/uhci.mod
/boot/grub/x86_64-efi/legacycfg.mod
/boot/grub/x86_64-efi/reiserfs.mod
/boot/grub/x86_64-efi/search.mod
/boot/grub/x86_64-efi/afs.mod
/boot/grub/x86_64-efi/grub.efi
/boot/grub/x86_64-efi/efinet.mod
/boot/grub/x86_64-efi/hello.mod
/boot/grub/x86_64-efi/raid6rec.mod
/boot/grub/x86_64-efi/password.mod
/boot/grub/x86_64-efi/parttool.lst
/boot/grub/x86_64-efi/serial.mod
/boot/grub/x86_64-efi/gcry_sha1.mod
/boot/grub/x86_64-efi/bswap_test.mod
/boot/grub/x86_64-efi/random.mod
/boot/grub/x86_64-efi/cs5536.mod
/boot/grub/x86_64-efi/pcidump.mod
/boot/grub/x86_64-efi/pgp.mod
/boot/grub/x86_64-efi/ctz_test.mod
/boot/grub/x86_64-efi/keylayouts.mod
/boot/grub/x86_64-efi/gfxterm_background.mod
/boot/grub/x86_64-efi/extcmd.mod
/boot/grub/x86_64-efi/setjmp_test.mod
/boot/grub/x86_64-efi/videoinfo.mod
/boot/grub/x86_64-efi/minix3.mod
/boot/grub/x86_64-efi/gcry_crc.mod
/boot/grub/x86_64-efi/mdraid09_be.mod
/boot/grub/x86_64-efi/terminfo.mod
/boot/grub/x86_64-efi/minix.mod
/boot/grub/x86_64-efi/gcry_serpent.mod
/boot/grub/x86_64-efi/blocklist.mod
/boot/grub/x86_64-efi/part_dfly.mod
/boot/grub/x86_64-efi/cbmemc.mod
/boot/grub/x86_64-efi/mpi.mod
/boot/grub/x86_64-efi/linux.mod
/boot/grub/x86_64-efi/geli.mod
/boot/grub/x86_64-efi/video.lst
/boot/grub/x86_64-efi/elf.mod
/boot/grub/x86_64-efi/pbkdf2_test.mod
/boot/grub/x86_64-efi/part_sun.mod
/boot/grub/x86_64-efi/bitmap.mod
/boot/grub/x86_64-efi/div_test.mod
/boot/grub/x86_64-efi/ata.mod
/boot/grub/x86_64-efi/cbtable.mod
/boot/grub/x86_64-efi/part_msdos.mod
/boot/grub/x86_64-efi/exfctest.mod
/boot/grub/x86_64-efi/macho.mod
/boot/grub/x86_64-efi/memrw.mod
/boot/grub/x86_64-efi/datehook.mod
/boot/grub/x86_64-efi/tar.mod
/boot/grub/x86_64-efi/cmp.mod
/boot/grub/x86_64-efi/xzio.mod
/boot/grub/x86_64-efi/test_blockarg.mod
/boot/grub/x86_64-efi/moddep.lst
/boot/grub/x86_64-efi/fixvideo.mod
/boot/grub/x86_64-efi/gcry_des.mod
/boot/grub/x86_64-efi/minix2_be.mod
/boot/grub/x86_64-efi/font.mod
/boot/grub/x86_64-efi/usbserial_ftdi.mod
/boot/grub/x86_64-efi/bsd.mod
/boot/grub/x86_64-efi/btrfs.mod
/boot/grub/x86_64-efi/div.mod
/boot/grub/x86_64-efi/command.lst
/boot/grub/x86_64-efi/usbms.mod
/boot/grub/x86_64-efi/zfscrypt.mod
/boot/grub/x86_64-efi/part_sunpc.mod
/boot/grub/x86_64-efi/cat.mod
/boot/grub/x86_64-efi/configfile.mod
/boot/grub/x86_64-efi/newc.mod
/boot/grub/x86_64-efi/ntfs.mod
/boot/grub/x86_64-efi/minix3_be.mod
/boot/grub/x86_64-efi/pata.mod
/boot/grub/x86_64-efi/video_colors.mod
/boot/grub/x86_64-efi/iso9660.mod
/boot/grub/x86_64-efi/jpeg.mod
/boot/grub/x86_64-efi/aout.mod
/boot/grub/x86_64-efi/ufs1_be.mod
/boot/grub/x86_64-efi/gettext.mod
/boot/grub/x86_64-efi/gcry_arcfour.mod
/boot/grub/x86_64-efi/macbless.mod
/boot/grub/x86_64-efi/lsefimmap.mod
/boot/grub/x86_64-efi/core.efi
/boot/grub/x86_64-efi/shift_test.mod
/boot/grub/x86_64-efi/bfs.mod
/boot/grub/x86_64-efi/probe.mod
/boot/grub/x86_64-efi/video_fb.mod
/boot/grub/x86_64-efi/xfs.mod
/boot/grub/x86_64-efi/ext2.mod
/boot/grub/x86_64-efi/scsi.mod
/boot/grub/x86_64-efi/setpci.mod
/boot/grub/x86_64-efi/multiboot.mod
/boot/grub/x86_64-efi/mul_test.mod
/boot/grub/x86_64-efi/gcry_cast5.mod
/boot/grub/x86_64-efi/keystatus.mod
/boot/grub/x86_64-efi/gcry_rijndael.mod
/boot/grub/x86_64-efi/echo.mod
/boot/grub/x86_64-efi/rdmsr.mod
/boot/grub/x86_64-efi/lsefi.mod
/boot/grub/x86_64-efi/iorw.mod
/boot/grub/x86_64-efi/part_apple.mod
/boot/grub/x86_64-efi/gcry_rfc2268.mod
/boot/grub/x86_64-efi/part_acorn.mod
/boot/grub/x86_64-efi/testload.mod
/boot/grub/x86_64-efi/read.mod
/boot/grub/x86_64-efi/loadenv.mod
/boot/grub/x86_64-efi/partmap.lst
/boot/grub/x86_64-efi/tga.mod
/boot/grub/x86_64-efi/morse.mod
/boot/grub/x86_64-efi/xnu_uuid.mod
/boot/grub/x86_64-efi/part_plan.mod
/boot/grub/x86_64-efi/hexdump.mod
/boot/grub/x86_64-efi/gcry_dsa.mod
/boot/grub/x86_64-efi/priority_queue.mod
/boot/grub/x86_64-efi/ufs1.mod
/boot/grub/x86_64-efi/mmap.mod
/boot/grub/x86_64-efi/xnu.mod
/boot/grub/x86_64-efi/png.mod
/boot/grub/x86_64-efi/raid5rec.mod
/boot/grub/x86_64-efi/squash4.mod
/boot/grub/x86_64-efi/ahci.mod
/boot/grub/x86_64-efi/backtrace.mod
/boot/grub/x86_64-efi/gcry_md5.mod
/boot/grub/x86_64-efi/sleep_test.mod
/boot/grub/x86_64-efi/loopback.mod
/boot/grub/x86_64-efi/cpio_be.mod
/boot/grub/x86_64-efi/odc.mod
/boot/grub/x86_64-efi/sfs.mod
/boot/grub/x86_64-efi/legacy_password_test.mod
/boot/grub/x86_64-efi/procfs.mod
/boot/grub/x86_64-efi/search_label.mod
/boot/grub/x86_64-efi/efi_uga.mod
/boot/grub/x86_64-efi/at_keyboard.mod
/boot/grub/x86_64-efi/jfs.mod
/boot/grub/x86_64-efi/trig.mod
/boot/grub/x86_64-efi/dm_nv.mod
/boot/grub/x86_64-efi/usbserial_common.mod
/boot/grub/x86_64-efi/zfsinfo.mod
/boot/grub/x86_64-efi/part_dvh.mod
/boot/grub/x86_64-efi/true.mod
/boot/grub/x86_64-efi/shim_lock.mod
/boot/grub/x86_64-efi/cmdline_cat_test.mod
/boot/grub/x86_64-efi/archelp.mod
/boot/grub/x86_64-efi/gzio.mod
/boot/grub/x86_64-efi/luks.mod
/boot/grub/x86_64-efi/minicmd.mod
/boot/grub/x86_64-efi/testspeed.mod
/boot/grub/x86_64-efi/hfspluscomp.mod
/boot/grub/x86_64-efi/gptsync.mod
/boot/grub/x86_64-efi/video_bochs.mod
/boot/grub/x86_64-efi/lssal.mod
/boot/grub/x86_64-efi/functional_test.mod
/boot/grub/x86_64-efi/usbserial_usbdebug.mod
/boot/grub/x86_64-efi/lvm.mod
/boot/grub/x86_64-efi/parttool.mod
/boot/grub/x86_64-efi/offsetio.mod
/boot/grub/x86_64-efi/cacheinfo.mod
/boot/grub/x86_64-efi/usb.mod
/boot/grub/x86_64-efi/syslinuxcfg.mod
/boot/grub/x86_64-efi/f2fs.mod
/boot/grub/grub.cfg
/boot/grub/themes
/boot/grub/themes/starfield
/boot/grub/themes/starfield/terminal_box_ne.png
/boot/grub/themes/starfield/dejavu_14.pf2
/boot/grub/themes/starfield/boot_menu_n.png
/boot/grub/themes/starfield/boot_menu_sw.png
/boot/grub/themes/starfield/boot_menu_c.png
/boot/grub/themes/starfield/terminal_box_n.png
/boot/grub/themes/starfield/COPYING.CC-BY-SA-3.0
/boot/grub/themes/starfield/README
/boot/grub/themes/starfield/boot_menu_e.png
/boot/grub/themes/starfield/slider_s.png
/boot/grub/themes/starfield/boot_menu_nw.png
/boot/grub/themes/starfield/terminal_box_c.png
/boot/grub/themes/starfield/terminal_box_nw.png
/boot/grub/themes/starfield/terminal_box_sw.png
/boot/grub/themes/starfield/terminal_box_w.png
/boot/grub/themes/starfield/dejavu_10.pf2
/boot/grub/themes/starfield/dejavu_12.pf2
/boot/grub/themes/starfield/boot_menu_w.png
/boot/grub/themes/starfield/slider_n.png
/boot/grub/themes/starfield/terminal_box_se.png
/boot/grub/themes/starfield/starfield.png
/boot/grub/themes/starfield/boot_menu_s.png
/boot/grub/themes/starfield/terminal_box_e.png
/boot/grub/themes/starfield/terminal_box_s.png
/boot/grub/themes/starfield/slider_c.png
/boot/grub/themes/starfield/dejavu_bold_14.pf2
/boot/grub/themes/starfield/dejavu_16.pf2
/boot/grub/themes/starfield/blob_w.png
/boot/grub/themes/starfield/boot_menu_se.png
/boot/grub/themes/starfield/boot_menu_ne.png
/boot/grub/themes/starfield/theme.txt
/boot/grub/fonts
/boot/grub/fonts/unicode.pf2
/boot/grub/locale
/boot/grub/locale/en@cyrillic.mo
/boot/grub/locale/pt_BR.mo
/boot/grub/locale/pt.mo
/boot/grub/locale/id.mo
/boot/grub/locale/ast.mo
/boot/grub/locale/ru.mo
/boot/grub/locale/fr.mo
/boot/grub/locale/uk.mo
/boot/grub/locale/tr.mo
/boot/grub/locale/pa.mo
/boot/grub/locale/lg.mo
/boot/grub/locale/es.mo
/boot/grub/locale/vi.mo
/boot/grub/locale/eo.mo
/boot/grub/locale/sv.mo
/boot/grub/locale/sr.mo
/boot/grub/locale/it.mo
/boot/grub/locale/pl.mo
/boot/grub/locale/ko.mo
/boot/grub/locale/ro.mo
/boot/grub/locale/en@quot.mo
/boot/grub/locale/ca.mo
/boot/grub/locale/zh_CN.mo
/boot/grub/locale/hr.mo
/boot/grub/locale/sl.mo
/boot/grub/locale/fi.mo
/boot/grub/locale/de.mo
/boot/grub/locale/da.mo
/boot/grub/locale/en@piglatin.mo
/boot/grub/locale/en@greek.mo
/boot/grub/locale/nb.mo
/boot/grub/locale/gl.mo
/boot/grub/locale/ja.mo
/boot/grub/locale/nl.mo
/boot/grub/locale/lt.mo
/boot/grub/locale/de@hebrew.mo
/boot/grub/locale/de_CH.mo
/boot/grub/locale/hu.mo
/boot/grub/locale/en@arabic.mo
/boot/grub/locale/en@hebrew.mo
/boot/grub/locale/zh_TW.mo
/boot/initramfs-linux-fallback.img
/boot/initramfs-linux.img

Offline

#6 2021-04-08 06:18:27

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Always getting error after updating

Did you un-mount /boot before running that command? I wanted to see if there was a second /boot directory "underneath" /dev/sda1. Just run the three commands I posted and show the full output of the second command if that isn't already the case for your the above output.

And you haven't shown your bootloader configuration.

Offline

#7 2021-04-08 12:16:13

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

I did run all the 3 commands that you wrote above and the output above is after un-mounting the /boot partition
How can I show you my bootloader configuration?

This is the file structure of my /boot folder

├── EFI
│   └── arch
│       └── grubx64.efi
├── initramfs-linux-fallback.img
├── initramfs-linux.img
└── vmlinuz-linux

there are a lot of files in /etc/grub.d/ & I don't know which one of them is the bootloader configuration file

Offline

#8 2021-04-08 12:53:04

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Always getting error after updating

Don't use grub myself, but, your tree in post#5 doesn't contain grub.cfg.
Are you sure you followed all the steps described especially https://wiki.archlinux.org/index.php/GRUB#Configuration ?
If you're not sure repeat the steps in chroot, make sure you're boot partition is mounted!

Offline

#9 2021-04-08 14:43:10

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Always getting error after updating

ZulluBalti wrote:

I did run all the 3 commands that you wrote above and the output above is after un-mounting the /boot partition

So you have two different sets of kernel & initramfs images. Use the 'file' command to see if they are different versions.

As qinohe notes you have to be sure that the EFI system partition is mounted correctly under /boot before the kernel or initramfs is updated. As you're using GRUB it may be simpler to just have /boot on the root partition instead and mount the ESP somewhere else (or not at all).

ZulluBalti wrote:

I don't know which one of them is the bootloader configuration file

It is the file to which you directed the output of grub-mkconfig(8) during the installation. Which guide did you follow when installing the system?

Offline

#10 2021-04-08 14:51:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: Always getting error after updating

The original post makes it clear what's going on. When you reinstall the kernel after the boot partition fails to mount, you're installing the new kernel/initramfs into the /boot dir on the root partition. That's where grub is loading it from. All you have to do is recreate the grub config so it looks at the /boot partition and you should be fine.

Last edited by Scimmia (2021-04-08 14:53:03)

Offline

#11 2021-04-08 22:48:57

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

qinohe wrote:

Don't use grub myself, but, your tree in post#5 doesn't contain grub.cfg.
Are you sure you followed all the steps described especially https://wiki.archlinux.org/index.php/GRUB#Configuration ?
If you're not sure repeat the steps in chroot, make sure you're boot partition is mounted!

I followed the steps in the link that you share
It has created a file named grub.cfg in /boot/grub folder. Now, I don't know if it will solve the issue. I guess I've to wait for another kernel update to check if it's gonna work or not

Offline

#12 2021-07-07 17:13:30

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

I'm still getting the error

Offline

#13 2021-07-07 18:50:20

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Always getting error after updating

ZulluBalti wrote:

I'm still getting the error

These kind of reports have 'no value' here.
You need to tell what it is you did to prevent the 'error' from happening, again!

Now before I go on, have you actually read trough this thread?, again!
I place my bet on Scimmia's post #10 wink

Offline

#14 2021-07-07 23:00:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: Always getting error after updating

Did you also reinstall grub so that it uses the new config file? If not, it's probably still got the old path.

Offline

#15 2021-07-09 09:06:39

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

Scimmia wrote:

Did you also reinstall grub so that it uses the new config file? If not, it's probably still got the old path.

No i don't think i reinstall grub. Should I delete grub and install it again? Wouldn't that delete the config files too?

Offline

#16 2021-07-09 09:28:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: Always getting error after updating

Reinstalling GRUB means running grub-install into the correct location and will only affect a single file.

https://wiki.archlinux.org/title/GRUB#Installation_2

Online

#17 2021-07-10 08:53:55

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

V1del wrote:

Reinstalling GRUB means running grub-install into the correct location and will only affect a single file.

https://wiki.archlinux.org/title/GRUB#Installation_2

Here's the output of

> lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0   512M  0 part /boot
├─sda2   8:2    0     4G  0 part [SWAP]
├─sda3   8:3    0 150.3G  0 part /
├─sda5   8:5    0 154.2G  0 part /mnt/trabajar
├─sda7   8:7    0 125.1G  0 part /mnt/partido
└─sda8   8:8    0  30.2G  0 part
sr0     11:0    1  1024M  0 rom

And Here's the output of

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

Installing for x86_64-efi platform.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: error: disk `hostdisk//dev/sda1' not found.

can you please tell me what i'm doing wrong here?

Offline

#18 2021-07-10 15:18:04

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Always getting error after updating

Did you run grub-install as root?

Offline

#19 2021-07-11 14:37:53

ZulluBalti
Member
Registered: 2021-04-07
Posts: 44

Re: Always getting error after updating

seth wrote:

Did you run grub-install as root?

no I didn't run grub-install as root.

Ok, So I've run grub-install as root and it's successfully executed without any errors.
What else do I need to do now?

Last edited by ZulluBalti (2021-07-11 14:39:18)

Offline

Board footer

Powered by FluxBB