You are not logged in.

#1 2023-04-20 18:16:25

worbgge
Member
Registered: 2021-07-18
Posts: 48

[SOLVED] 'grub_debug_malloc' not found

hello, i changed part of my grub config a few weeks ago and ever since i haven't been able to get back into my arch-linux install.
lsblk -f

NAME       FSTYPE   FSVER            LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0      squashfs 4.0                                                                     0   100% /run/archiso/airootfs
sda                                                                                                  
├─sda1     vfat     FAT32                        3762-7651                              99.4G     0% /mnt/boot
└─sda2     ext4     1.0                          58c791fe-d539-42e3-a973-66ce32cf4038  143.7G    78% /mnt
sdb                                                                                                  
└─sdb1     ext4     1.0                          57c2a4f0-e67b-4dd9-8dc5-a5d1ba4ce3f3                
sdc                                                                                                  
├─sdc1     vfat     FAT32                        7810-5497                                           
├─sdc2                                                                                               
├─sdc3     ntfs                                  FA0614F10614B11D                                    
└─sdc4     ntfs                                  740C8B750C8B3162                                    
sdd                                                                                                  
└─sdd1     ntfs                                  5B3E2C6D0A4DB464                                    
sde                                                                                                  
├─sde1     exfat    1.0              Ventoy      1673-87F0                                           
│ └─ventoy iso9660  Joliet Extension ARCH_202303 2023-03-01-12-52-20-00                              
└─sde2     vfat     FAT16            VTOYEFI     B228-8EFB                                           

cat /mnt/etc/fstab

#
# /etc/fstab
# Created by anaconda on Wed Mar 23 11:20:53 2022
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
# /dev/sda1
UUID=3762-7651      	/boot     	vfat      	rw,relatime	0 2

# /dev/sda2
UUID=58c791fe-d539-42e3-a973-66ce32cf4038	/	ext4      	rw,relatime	0 2

# /dev/sde1
UUID=57c2a4f0-e67b-4dd9-8dc5-a5d1ba4ce3f3	/mnt	ext4	 rw,relatime	0 1

/swapfile none swap defaults 0 0

#UUID=5B3E2C6D0A4DB464	/backup		ntfs	rw,relatime	0 1

cat /mnt/etc/default/grub

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"

Last edited by worbgge (2023-04-20 18:41:07)

Offline

#2 2023-04-20 18:18:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] 'grub_debug_malloc' not found

Recent grub updates warn you that you should also update the grub payload due to changes in the config format in recent versions. You need to actually grub-install the newest version from the chroot.

Last edited by V1del (2023-04-20 18:19:04)

Offline

#3 2023-04-20 18:20:55

worbgge
Member
Registered: 2021-07-18
Posts: 48

Re: [SOLVED] 'grub_debug_malloc' not found

V1del wrote:

Recent grub updates warn you that you should also update the grub payload due to changes in the config format in recent versions. You need to actually grub-install the newest version from the chroot.

i did grub-install /dev/sda as non-arch-chroot and arch-chrooted and it gives me the error
grub-install: error: cannot find EFI directory.

Offline

#4 2023-04-20 18:28:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] 'grub_debug_malloc' not found

You need to use the command you used during installation, On an UEFI system assuming your above partition layout you'd do

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

once you're in the chroot. FWIW seeing

# Created by anaconda on Wed Mar 23 11:20:53 2022

in the fstab, how exactly did you install Arch?

Last edited by V1del (2023-04-20 18:30:08)

Offline

#5 2023-04-20 18:34:55

worbgge
Member
Registered: 2021-07-18
Posts: 48

Re: [SOLVED] 'grub_debug_malloc' not found

V1del wrote:
# Created by anaconda on Wed Mar 23 11:20:53 2022

in the fstab, how exactly did you install Arch?

i don't remember exactly was a bit ago but it now seems to load into arch

Offline

#6 2023-04-20 18:39:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] 'grub_debug_malloc' not found

Only https://wiki.archlinux.org/title/Installation_guide and to a lesser extent https://wiki.archlinux.org/title/Archinstall are supported here. In any case if this is fixed, please mark as [SOLVED] by editing the title in your first post.

Offline

Board footer

Powered by FluxBB