[Solved] update-grub: What to do to make it faster?

are you by any chance using grub customizer on any of these distros?

No, I don't so far. I let the distros work on their own.

Would you suggest it?

NO, it's like giving grub an STD :rofl:

i was only asking because grub customizer had previously caused an issue for me where update-grub would take >10 min. if you had said yes, my first suggestion would of been to get rid of any trace of it and do a clean grub install.

1 Like

I think OP should go visit : https://www.virtualbox.org/wiki/Downloads instead of try to do a world record of multi-booting OS :joy:

1 Like

But the way from @gohlip is much cleaner and I use it.

2 Likes

@peter_li
At Arch, install package lsb-release, do update-grub there and then at manjaro do update-grub again. The time will improve.

ps: answering you because @SGS put in my link and I got pinged.
You have another topic somewhere, too busy to reply. Say thanks to @SGS.

ps: I have more OS's than you.
But I don't do this way. I don't have to update-grub anywhere. My grub boots all OS's without needing update-grub anywhere.

4 Likes

It turns out that Arch Linux and Fedora had no lsb-release package installed which I have now installed in both cases.

In Arch Linux this creates a file /etc/lsb-release but in Fedora there is only a folder /etc/lsb-release.d created with two files: core-4.1-amd64 and core-4.1-noarch.
Both provide the file /etc/os-release but thats perhaps not interesting to update-grub.

After this I did a new run on Manjaro and the result is now:

real	5m2,472s
user	0m59,050s
sys	0m35,291s

This is much better and reasonable okay.

By the way:
Fedora was not be able to detect my Windows installations with their grub2-mkconfig command which uses also os-prober.

Thanks for contacting gohlip.

1 Like

Best you also make (manually) a lsb-release for it. Just follow the usual syntax for lsb-release. Not important what these contents are. The time will improve further.

As for Fedora not detecting Windows, ask fedora. They have very klever people there. But hint.. mount windows first before doing grub2-mkconfig at fedora. Maybe they have more klever solutions, komplicated, konvoluted, and need linux.efi and initrd.efi for it.

I took a short look on the virtualbox website but I got the impression that it is only used to run one guest system at one tine, right?

But I have the HDD space so far and can compare the installed systems one after another or the filesystems and installed files by mounting them in my file manager.

:grinning: Why should I care for fedora when I have Manjaro...

Okay, makes sense...but.... why then do you use fedora OS? :rofl:

:grinning:
I don't use it... I am just adventure joyfully...
I compare the different distros and what they do offer to learn, get new ideas and install, perhaps configure my preferred distro in some parts like them.

I hope to have expressed myself understandable cause I am german and thats not so easy.

1 Like

os-prober , because any partition & all disk are scanned for each type fs ,
required for others os than linux

Afaik this is also needed in MX Linux.

Ok. Well I just wanted to be sure.

As I said, I have no idea why it takes so long. You really have an edge case, i.e. a case with "extreme values" (in this context, having 12 OSes on the computer).

... Well, looking at the post at the end, it looks like your issue is solved, or at least mitigated a bit? If so, it could be nice to check out which post you would consider the "solution" in case there is someone else with a similar problem.

I doubt Manjaro Team really deeply tests dual booting with other Linux distributions, even for Arch-based distros. Considering the ton of distros that exists around here, it would literally be impossible to test out interaction with all other distros that may each have their own little differences. Also, if a distro X doesn't interact well with distro Y, it is hard to tell at first glance if it is the fault of distro X, the fault of distro Y or a bit of both; it needs further investigation and troubleshooting.

At best, they might test dual booting with Windows since that it is a pretty common thing to do.

But I am not in the Manjaro Team, so it is entirely speculations with little value.

Honestly, it is a great thing to use to try out Linux distribution and have an idea on how they look, feel and work without messing our own main machine, especially if you do not have spare computer to use.

Virtual Box is a free application that let's you create virtual machines and run them. VMs are easily disposable, so in case you are running out of space, you just have to delete them. This is the one I use personally. It looks complicated at first (and there is many options available), but for the sake of trying out Linux machines, there isn't much configuration needed for many distros (some may require more than others).

So I must have installed it before by accident? May be.

There is:

PRETTY_NAME="MX 18.2 Continuum"
DISTRIB_ID=MX
DISTRIB_RELEASE=18.2
DISTRIB_CODENAME=Continuum
DISTRIB_DESCRIPTION="MX 18.2 Continuum"

I must apologize, but it was not MX Linux. It was necessary to do this in Antergos. Mixed this up somehow....

Yup, that's how I found out it was needed in Arch also.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark