You are not logged in.

#1 2023-04-10 13:33:16

SlothSpunky77
Member
Registered: 2023-03-03
Posts: 47

[SOLVED] Error during grub-mkconfig

I restored my data from timeshift and that has broken my system. Starting linux-lts throws the system in emergency mode because of a device not found error.

Starting systemd-udevd version 259-1-arch
ERROR: device 'UUID=908d853-3c3c-4ec0-88c9-44b8887be122' not found. Skipping fsck. 
mount: /new_root: can't find UUID=9081d853-3c3c-4ec8-88c9-44b8887be122. 
You are now being dropped into an emergency shell.
sh: can't access tty: Job control turned off
[rootfs]#

So, I plugged in a Bootable USB and tried to reinstall grub.
When I run grub-mkconfig - o /boot/grub/grub.cfg, the following happens:

/etc/default/grub: line 4: GRUB_DISAB: command not found

Why does this happen? How can I fix this? Any help is appreciated.

Last edited by SlothSpunky77 (2023-04-12 16:21:53)

Offline

#2 2023-04-10 16:10:08

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,561
Website

Re: [SOLVED] Error during grub-mkconfig

Mod note: not an installation issue, moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2023-04-10 19:03:28

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Error during grub-mkconfig

SlothSpunky77 wrote:

I restored my data from timeshift

How exactly did you do that? Please provide the actual command(s) used.

SlothSpunky77 wrote:
/etc/default/grub: line 4: GRUB_DISAB: command not found

The message indicates the problem is on line 4 of that file. "GRUB_DISAB" looks to have been truncated from "GRUB_DISABLE*=$whatever".

Here's the stock version: https://raw.githubusercontent.com/archl … ub.default

Or just delete the file and re-install the grub package (from the chroot environment). The latter approach will clear any user configuration though.


Jin, Jîyan, Azadî

Offline

#4 2023-04-11 04:02:51

SlothSpunky77
Member
Registered: 2023-03-03
Posts: 47

Re: [SOLVED] Error during grub-mkconfig

How exactly did you do that?

I did a clean install of arch, installed awesomewm and ran timeshift-gtk after rsyncing my backup folder from another machine.

re-install the grub package

This is where the problem arises. I've tried reinstalling grub and grub-mkconfig doesn't work. I keep getting the same error. I already seem to have a grub.cfg though (perhaps from my backup). I haven't tried deleting the file and running grub-mkconfig but I doubt it'll make a difference.

Last edited by SlothSpunky77 (2023-04-11 04:03:14)

Offline

#5 2023-04-11 04:08:22

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: [SOLVED] Error during grub-mkconfig

If you delete the file, then reinstall grub it will install a working / non corrupted copy of the file, which will surely allow grub-mkconfig to work

Offline

#6 2023-04-11 12:09:54

SlothSpunky77
Member
Registered: 2023-03-03
Posts: 47

Re: [SOLVED] Error during grub-mkconfig

Removing grub.cfg, reinstalling grub and running grub-mkconfig does not help. Instead, I removed the line GRUB_DISAB from etc/default/grub.
The generation was successful, but I get the line

Root filesystem isn't btrfs

I need help understanding grub and grub 2. Timeshift had an option to install grub 2, which was recommended.

Last edited by SlothSpunky77 (2023-04-11 12:11:40)

Offline

#7 2023-04-11 15:29:53

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Error during grub-mkconfig

My suggestion was actually to remove /etc/default/grub then re-install the grub package (with pacman). Sorry if I was unclear.

SlothSpunky77 wrote:

The generation was successful, but I get the line

Root filesystem isn't btrfs

Please share the content of /boot/grub/grub.cfg and also post the commands used to "reinstall grub" — list everything entered in the live environment so we can spot if you made any mistakes.

The output of these commands from the live ISO would also be useful:

parted --list
blkid

EDIT: share with https://wiki.archlinux.org/title/List_o … ted_client

Last edited by Head_on_a_Stick (2023-04-11 15:31:08)


Jin, Jîyan, Azadî

Offline

#8 2023-04-12 16:21:33

SlothSpunky77
Member
Registered: 2023-03-03
Posts: 47

Re: [SOLVED] Error during grub-mkconfig

I've managed to get grub working, I had grub-btrfs in /etc/default, removing it removed the statement. I have new issues now, perhaps I'll open a new thread if I run into major errors.
Thank you for your time and help, I appreciate it.

Offline

Board footer

Powered by FluxBB