View Full Version : update-grub takes ages
December 16th, 2009, 09:36 PM
Perhaps minutes of pausing between detection of grub entries (kernels etc). Happens with both native and virtual (vmware) installations of daily Lucid. No errors logged anywhere. Anyone else get this behavior?
December 16th, 2009, 10:05 PM
I do if Ubuntu Lynx is installed to a partition on a physical hard drive that is different from the one holding the booting MBR files....i.e., machine boots from (hd0) and Lynx is installed to (hd2,2). Update-grub works fine when Lynx is installed to (hd0,2).
December 16th, 2009, 10:17 PM
Perhaps minutes of pausing between detection of grub entries (kernels etc). Happens with both native and virtual (vmware) installations of daily Lucid. No errors logged anywhere. Anyone else get this behavior?Same here. It's been like that for some time, even in Karmic ...
December 16th, 2009, 10:46 PM
I have the same behaviour both in karmic and lucid, and both with MBR on external HDD and internal HDD
December 16th, 2009, 10:48 PM
Yes, I agree it is probably a problem of grub being on another physical disk to the OS itself. I had a similar problem the first time I installed karmic on sdb, but grub2 put itself on sda as the main MBR of the machine. On reboot after install it took about 30 secs or more from "Starting grub" appearing on screen to the menu appearing. I thought something was wrong, but it eventually appeared and worked.
A search of forums gave the reason as the different disks, so I reinstalled grub onto sdb instead of sda, and magically the menu appears instantly as expected first time.
I'm not sure about the update grub you speak of as I didn't have a need to run that with the original setup, having changed the grub disk immediately, but update-grub in karmic is fast, with no difficulties showing.
December 16th, 2009, 11:13 PM
On my system grub and os reside on the same physical disk. So even in that case update-grub can be very slow. I haven't had any other problems with grub, though.
December 17th, 2009, 08:41 AM
On my system grub and os reside on the same physical disk. So even in that case update-grub can be very slow. I haven't had any other problems with grub, though.Same thing. One disk. Very slow begore "Configuring grub.cfg" ... No disk access before that message ...
December 17th, 2009, 10:30 PM
I think we're talking about two different issues here. On the one hand you have slow loading of the grub menu at boot-up if grub is on a different disk than the MBR. Back in Karmic I fixed that by changing the boot order in my bios.
But if I understand the OP correctly the issue in question here is that it takes a very long time to generate grub.cfg, when installing a new kernel or running update-grub. I don't have this problem - update-grub runs like it has ever since I first installed grub2, taking maybe fifteen seconds to generate grub.cfg from start to finish, finding all the kernels of my three linux installs and my XP drive.
December 17th, 2009, 10:35 PM
My update-grub takes minutes too - on single HD :(
December 18th, 2009, 12:02 AM
Wow, I am impressed with the long times.
Have no idea what in flinderation is going on there at all.
I had 18 OS' installed on my test platform for the 9.10-testing cycle. I do not think it ever took over 90 seconds to generate the /boot/grub/grub.cfg file. That was with a complete (for all OS') custom menu at the top.
I only have 8 on here this time (so far).
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.