LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub update takes 20 minutes to complete (https://www.linuxquestions.org/questions/linux-newbie-8/grub-update-takes-20-minutes-to-complete-4175605810/)

ondoho 05-14-2017 02:59 AM

Quote:

Originally Posted by jozmak (Post 5710267)
How is this possible?

have you actually made sure that os-prober is responsible?
you should troubleshoot that by either temporarily uninstalling it, or disabling it from grub config somehow (your task to find out how).

fwiw, os-prober does exactly that: it probes a partition until it finds some markers that telli which OS is installed.
it makes sense to me that this can take a long time if it doesn't find anyhthing, because it will search through the whole partition byte by byte.

jozmak 05-14-2017 01:21 PM

Quote:

Originally Posted by floppy_stuttgart (Post 5710401)
My thoughts..
a) Can you include the "time" log parameter when you "sudo grub-mkconfig -o /boot/grub/grub.cfg"?. A time marker will show where it stucks.
b) Disconnect your PC from the WLAN/LAN (Internet) when you do it and inform if it is better.

Thanks for replying.

I run journalctl and it seems that there is only one place when the updater posing 11 minutes, after debugging sdb3.

I pasted only the relevant section here.

I ran the update without internet connection, but it made no difference.



Code:

May 14 12:48:38 myhost 50mounted-tests[11191]: debug: running subtest /usr/lib/os-probes/mounted/05efi
May 14 12:48:38 myhost 05efi[11193]: debug: Not on UEFI platform
May 14 12:48:38 myhost 50mounted-tests[11194]: debug: running subtest /usr/lib/os-probes/mounted/10freedos
May 14 12:48:38 myhost 10freedos[11196]: debug: /dev/sdb2 is not a FAT partition: exiting
May 14 12:48:38 myhost 50mounted-tests[11197]: debug: running subtest /usr/lib/os-probes/mounted/10qnx
May 14 12:48:38 myhost 10qnx[11199]: debug: /dev/sdb2 is not a QNX4 partition: exiting
May 14 12:48:38 myhost 50mounted-tests[11200]: debug: running subtest /usr/lib/os-probes/mounted/20macosx
May 14 12:48:38 myhost macosx-prober[11202]: debug: /dev/sdb2 is not an HFS+ partition: exiting
May 14 12:48:38 myhost 50mounted-tests[11203]: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
May 14 12:48:38 myhost 20microsoft[11205]: debug: /dev/sdb2 is not a MS partition: exiting
May 14 12:48:38 myhost 50mounted-tests[11206]: debug: running subtest /usr/lib/os-probes/mounted/30utility
May 14 12:48:38 myhost 30utility[11208]: debug: /dev/sdb2 is not a FAT partition: exiting
May 14 12:48:38 myhost 50mounted-tests[11209]: debug: running subtest /usr/lib/os-probes/mounted/40lsb
May 14 12:48:38 myhost 40lsb[11235]: result: /dev/sdb2:Manjaro Linux (17.0.1):ManjaroLinux:linux
May 14 12:48:38 myhost 50mounted-tests[11236]: debug: os found by subtest /usr/lib/os-probes/mounted/40lsb
May 14 12:48:39 myhost os-prober[11240]: debug: os detected by /usr/lib/os-probes/50mounted-tests
May 14 12:48:39 myhost os-prober[11246]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sdb3
May 14 12:48:39 myhost 50mounted-tests[11305]: debug: mounted using GRUB ext2 filesystem driver
May 14 12:48:39 myhost 50mounted-tests[11306]: debug: running subtest /usr/lib/os-probes/mounted/05efi
May 14 12:48:39 myhost 05efi[11308]: debug: Not on UEFI platform
May 14 12:48:39 myhost 50mounted-tests[11309]: debug: running subtest /usr/lib/os-probes/mounted/10freedos
May 14 12:48:39 myhost 10freedos[11311]: debug: /dev/sdb3 is not a FAT partition: exiting
May 14 12:48:39 myhost 50mounted-tests[11312]: debug: running subtest /usr/lib/os-probes/mounted/10qnx
May 14 12:48:39 myhost 10qnx[11314]: debug: /dev/sdb3 is not a QNX4 partition: exiting
May 14 12:48:39 myhost 50mounted-tests[11315]: debug: running subtest /usr/lib/os-probes/mounted/20macosx
May 14 12:48:39 myhost macosx-prober[11317]: debug: /dev/sdb3 is not an HFS+ partition: exiting
May 14 12:48:39 myhost 50mounted-tests[11318]: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
May 14 12:48:39 myhost 20microsoft[11320]: debug: /dev/sdb3 is not a MS partition: exiting
May 14 12:48:39 myhost 50mounted-tests[11321]: debug: running subtest /usr/lib/os-probes/mounted/30utility
May 14 12:48:39 myhost 30utility[11323]: debug: /dev/sdb3 is not a FAT partition: exiting
May 14 12:48:39 myhost 50mounted-tests[11324]: debug: running subtest /usr/lib/os-probes/mounted/40lsb
May 14 12:48:39 myhost 50mounted-tests[11326]: debug: running subtest /usr/lib/os-probes/mounted/70hurd
May 14 12:48:39 myhost 50mounted-tests[11328]: debug: running subtest /usr/lib/os-probes/mounted/80minix
May 14 12:48:39 myhost 50mounted-tests[11330]: debug: running subtest /usr/lib/os-probes/mounted/83haiku
May 14 12:48:39 myhost 83haiku[11332]: debug: /dev/sdb3 is not a BeFS partition: exiting
May 14 12:48:39 myhost 50mounted-tests[11333]: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
May 14 12:59:14 myhost 90linux-distro[11520]: result: /dev/sdb3:Arch Linux:Arch1:linux
May 14 12:59:14 myhost 50mounted-tests[11521]: debug: os found by subtest /usr/lib/os-probes/mounted/90linux-distro
May 14 12:59:14 myhost os-prober[11524]: debug: os detected by /usr/lib/os-probes/50mounted-tests


jozmak 05-14-2017 05:05 PM

Quote:

Originally Posted by ondoho (Post 5710436)
have you actually made sure that os-prober is responsible?
you should troubleshoot that by either temporarily uninstalling it, or disabling it from grub config somehow (your task to find out how).

fwiw, os-prober does exactly that: it probes a partition until it finds some markers that telli which OS is installed.
it makes sense to me that this can take a long time if it doesn't find anyhthing, because it will search through the whole partition byte by byte.

Hi ondoho,

I uninstalled the os-prober, and ran the updater but in that case the other systems are not searched.

I looked at the long journalctl document and every operation is very fast, except the updater poses in one place (see the previous post) for 11 minutes. But why, that’s the question.

ondoho 05-15-2017 01:15 PM

Quote:

Originally Posted by jozmak (Post 5710622)
Code:

May 14 12:48:39 myhost 50mounted-tests[11333]: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
May 14 12:59:14 myhost 90linux-distro[11520]: result: /dev/sdb3:Arch Linux:Arch1:linux


here's 11 minutes; it would seem a partition with an arch linux system is responsible.
do you have archlinux installed somewhere?

so this would be the WHAT - of course that still doesn't tell us about the WHY.

edit:
here's an older answer that might explain the WHY:
https://bbs.archlinux.org/viewtopic.php?id=155298
i guess you have to click & read all secondary links to fully understand .

this reminds me, i think you never told us what distro you're running this from.

syg00 05-15-2017 10:30 PM

FWIW I just fired up an Arch system that also has Mint and Win10 on the disks. mkconfig took only seconds.
grub-mount does exist on that sysstem.

jozmak 05-16-2017 09:37 AM

Quote:

Originally Posted by ondoho (Post 5711017)
here's 11 minutes; it would seem a partition with an arch linux system is responsible.
do you have archlinux installed somewhere?

so this would be the WHAT - of course that still doesn't tell us about the WHY.

edit:
here's an older answer that might explain the WHY:
https://bbs.archlinux.org/viewtopic.php?id=155298
i guess you have to click & read all secondary links to fully understand .

this reminds me, i think you never told us what distro you're running this from.

Hi ondoho,

I am running os-prober from archlinux. I have only arch systems installed on my computer. So here we have a case when arch has problem updating arch; I have Manjaro also installed but that one also based on arch.

Now, I am in the process of installing debian. Will see how debian handles the update.

I report back soon.

Thanks for the link. I try the idea suggested in the post and I let you know the result.

ondoho 05-16-2017 01:32 PM

if debian fails at this or not, that doesn't prove anything, because the os-prober program is the same across both distros.
i also don't remember which "idea" was "suggested".

jozmak 05-16-2017 05:58 PM

Quote:

Originally Posted by ondoho (Post 5711543)
if debian fails at this or not, that doesn't prove anything, because the os-prober program is the same across both distros.
i also don't remember which "idea" was "suggested".

I installed debian stretch. I installed debian because I am more familiar with it and the link you gave me indicated that os-prober developed by debian. I ran the update and the situation is similar to that of arch.
The debian updater hangs two times but it updates a bit faster, about 6 minutes.
Here is the relevant data:
Code:

May 16 15:52:37 debian 83haiku[2560]: debug: /dev/sda2 is not a BeFS partition: exiting
May 16 15:52:37 debian 50mounted-tests[2561]: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
May 16 15:55:03 debian 90linux-distro[2681]: result: /dev/sda2:Arch Linux:Arch:linux
May 16 15:55:03 debian 50mounted-tests[2682]: debug: os found by subtest /usr/lib/os-probes/mounted/90linux-distro

Code:

May 16 15:55:05 debian 83haiku[3082]: debug: /dev/sdb3 is not a BeFS partition: exiting
May 16 15:55:05 debian 50mounted-tests[3083]: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
May 16 15:57:49 debian 90linux-distro[3228]: result: /dev/sdb3:Arch Linux:Arch2:linux
May 16 15:57:49 debian 50mounted-tests[3229]: debug: os found by subtest /usr/lib/os-probes/mounted/90linux-distro



All times are GMT -5. The time now is 01:03 PM.