Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: mardiyah on 04 October 2021, 10:43:47

Title: To restore the original grub to accessing many OS start, before Artix install
Post by: mardiyah on 04 October 2021, 10:43:47
Please help how to restore the grub which is important for accessing many OS start, before the Artix-xfce installation which now overwrite (or might just overshadow) it so that no grub option on PC start except immeadiately launch this Artix-xfce

Please help out, it's diaster to me lose the original grub previous this
THANKS before
Title: Re: To restore the original grub to accessing many OS start, before Artix install
Post by: just on 04 October 2021, 11:50:35
Os-prober is disabled during Artix installation.  That's why no OS but freshly installed Artix itself is shown in Grub 2 menu after reboot.

To make other OSes visible, it's enough to:

- enable os-prober in Artix
- regenerate Grub 2 config

To enable os-prober, add the following line to /etc/default/grub file:
Code: [Select]
GRUB_DISABLE_OS_PROBER="false"
To regenerate Grub 2 config, run the command:
Code: [Select]
sudo update-grub
Done.

Title: Re: To restore the original grub to accessing many OS start, before Artix install
Post by: RIA77 on 09 October 2021, 12:39:17
It's faster with  grub-mkconfig -o /boot/grub/grub.cfg

 update-grub takes from 10 - 15 minutes, mkconfig is faster.
Title: Re: To restore the original grub to accessing many OS start, before Artix install
Post by: just on 09 October 2021, 19:30:49
It's faster with  grub-mkconfig -o /boot/grub/grub.cfg

 update-grub takes from 10 - 15 minutes, mkconfig is faster.
According to man, "update-grub" is merely a stub for "grub-mkconfig ....".  There should be no big difference in execution time between two commands.  It is confirmed by direct tests below.

dt is an alias, which displays current date and time (timestamp).

update-grub
Code: [Select]
┌──[just]@[alexaxc]:~$
└─> dt && sudo update-grub && dt
Current datetime:
2021-10-09 19:38:41

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/artix/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img amd-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Devuan Plasma (testing) on /dev/sda1
Found Devuan Cinnamon (testing) on /dev/sda10
Found Devuan Gnome (testing) on /dev/sda11
Found Debian Plasma bookworm/sid on /dev/sda12
Found Debian Cinnamon bookworm/sid on /dev/sda13
Found Debian Gnome bookworm/sid on /dev/sda14
Found Debian Mate bookworm/sid on /dev/sda15
Found Void Plasma on /dev/sda2
Found Void Cinnamon on /dev/sda5
Found Void Gnome on /dev/sda6
Found Void Mate on /dev/sda7
Found Artix Plasma (rolling) on /dev/sda8
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Current datetime:
2021-10-09 19:49:26
update-grub took roughly 19:49 - 19:38 = 11 minutes to complete.

grub-mkconfig
Code: [Select]
┌──[just]@[alexaxc]:~$
└─> dt && sudo grub-mkconfig -o /boot/grub/grub.cfg && dt
Current datetime:
2021-10-09 19:54:04

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/artix/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img amd-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Devuan Plasma (testing) on /dev/sda1
Found Devuan Cinnamon (testing) on /dev/sda10
Found Devuan Gnome (testing) on /dev/sda11
Found Debian Plasma bookworm/sid on /dev/sda12
Found Debian Cinnamon bookworm/sid on /dev/sda13
Found Debian Gnome bookworm/sid on /dev/sda14
Found Debian Mate bookworm/sid on /dev/sda15
Found Void Plasma on /dev/sda2
Found Void Cinnamon on /dev/sda5
Found Void Gnome on /dev/sda6
Found Void Mate on /dev/sda7
Found Artix Plasma (rolling) on /dev/sda8
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Current datetime:
2021-10-09 20:05:02
grub-mkconfig took roughly 20:05 - 19:54 = 11 minutes to complete.

There's no difference in timings between two commands in my environment.    Both take 11 minutes to complete here.

Title: Re: To restore the original grub to accessing many OS start, before Artix install
Post by: RIA77 on 30 October 2021, 19:54:01
Ok, then both options are very slow.
Title: Re: To restore the original grub to accessing many OS start, before Artix install
Post by: just on 30 October 2021, 20:57:18
Yes, they're very slow.  It's one of the reasons I use simple Grub (aka Grub Legacy), and not an insane bunch of scripts tagged as Grub 2.