You are not logged in.

#1 2022-09-06 09:44:32

llllbbbb
Member
Registered: 2022-01-03
Posts: 8

Grub error after changing default, too fast to read reboots to bios

Hello there,

I tried to add a theme to GRUB in my /etc/default/grub file that evidently failed as GRUB now displays an error so fast I can't read it then reboots to bios.

I arch-chrooted to my install and rerun

# grub-install --target=i386-pc /dev/sda

and

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

after commenting changes in default file.

What can I do from now ?

Thank you.

Offline

#2 2022-09-06 10:22:53

llllbbbb
Member
Registered: 2022-01-03
Posts: 8

Re: Grub error after changing default, too fast to read reboots to bios

It appears to be

error: file '/boot/grub/locale/C.gmo' not found.

!

Offline

#3 2022-09-06 10:40:24

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

Re: Grub error after changing default, too fast to read reboots to bios

What's your output of

locale
locale -a

before running the GRUB commands

Offline

#4 2022-09-06 10:45:19

llllbbbb
Member
Registered: 2022-01-03
Posts: 8

Re: Grub error after changing default, too fast to read reboots to bios

[root@archiso /]# locale -a

C

C.UTF-8

POSIX

en_US

en_US.iso88591

en_US.utf8

fr_FR

fr_FR.iso88591

fr_FR.iso885915@euro

fr_FR.utf8

fr_FRCeuro

french
[root@archiso /]# locale

LANG=C.UTF-8 LC_CTYPE="C.UTF-8"

LC_NUMERIC="C.UTF-8"

LC_TIME="C.UTF-8"

LC_COLLATE="C.UTF-8" LC MONETARY="C.UTF-8"

LC MESSAGES=

LC_PAPER="C.UTF-8" LC_NAME="C.UTF-8"

LC_ADDRESS="C.UTF-8"

LC TELEPHONE="C.UTF-8" LC MEASUREMENT="C.UTF-8"

LC IDENTIFICATION="C.UTF-8"

LC ALL

Last edited by llllbbbb (2022-09-06 10:48:19)

Offline

#5 2022-09-06 14:57:41

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

Re: Grub error after changing default, too fast to read reboots to bios

You probably want to set that to something sensible  before running grub-install/mkconfig https://wiki.archlinux.org/title/Locale … the_locale and https://wiki.archlinux.org/title/Locale … _immediate

Offline

#6 2023-03-31 16:03:25

llllbbbb
Member
Registered: 2022-01-03
Posts: 8

Re: Grub error after changing default, too fast to read reboots to bios

Hi, I'm coming back here with new motivation to solve the issue, but I don't understand what you mean by setting locale to something "sensible".

Furthermore I tried booting through rEFInd but it drops to rescue shell because of a '' filesystem not found.

Last edited by llllbbbb (2023-03-31 16:05:59)

Offline

#7 2023-04-01 12:04:37

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

Re: Grub error after changing default, too fast to read reboots to bios

To an actual locale rather than C like en_US.utf8 or fr_FR.utf8 you are using C according to these outputs

Offline

#8 2023-04-01 14:34:41

llllbbbb
Member
Registered: 2022-01-03
Posts: 8

Re: Grub error after changing default, too fast to read reboots to bios

It's weird, I did regenerate my locale with locale-gen after editing locale.conf to look like this :

LANG=fr_FR.UTF-8
LANGUAGE=fr_FR:en_US:en:C

and with the correct locales uncommented in locale.gen
but locale still outputs everything C.UTF-8

Offline

#9 2023-04-01 15:20:24

kermit63
Member
Registered: 2018-07-04
Posts: 371

Re: Grub error after changing default, too fast to read reboots to bios

did you uncomment the appropriate line in /etc/locale.gen?


Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.

Offline

#10 2023-04-01 15:58:56

llllbbbb
Member
Registered: 2022-01-03
Posts: 8

Re: Grub error after changing default, too fast to read reboots to bios

Yes I did.

Offline

Board footer

Powered by FluxBB