[Bug 425650] Re: Karmic: Re-generation of grub.cfg takes long time.
Lex Ross
lross at mail.ru
Fri Jul 15 05:56:02 UTC 2011
I have the same problem on 11.04 (Natty) now using 64-bit kernel 2.6.38-8-generic and grub-probe version 1.99~rc1-13ubuntu3
The reason is mystery to me as the update log come clean like this,
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.38-10-generic /boot/vmlinuz-2.6.38-10-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-10-generic
Found initrd image: /boot/initrd.img-2.6.38-10-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /memtest86+.bin
done
It's just a long wait (10-12 minutes) after "Generating grub.cfg ..." message.
In fact, it takes so long that I had aborted my first installation on Natty thinking it had failed at this point.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/425650
Title:
Karmic: Re-generation of grub.cfg takes long time.
Status in “grub2” package in Ubuntu:
Fix Released
Bug description:
Hello,
This system is:
$ uname -a
Linux karmic64 2.6.31-9-generic #29-Ubuntu SMP Sun Aug 30 17:39:26 UTC 2009 x86_64 GNU/Linux
It takes quite long time to upgrade this system because the re-
generation of GRUB2 (/boot/grub/grub.cfg) takes long time( ca. 10 - 12
minutes).
Here is the message log after running
$ sudo aptitude update && sudo aptitude upgrade
This part takes suspiciously long time:
...
Setting up memtest86+ (2.11-3ubuntu3) ...
Installing new version of config file /etc/grub.d/20_memtest86+ ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-9-generic
Found initrd image: /boot/initrd.img-2.6.31-9-generic
Found linux image: /boot/vmlinuz-2.6.31-9-generic
Found initrd image: /boot/initrd.img-2.6.31-9-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu 9.04 (9.04) on /dev/sda1
Found Ubuntu 8.10 (8.10) on /dev/sda3
Found Ubuntu 8.04 (8.04) on /dev/sda5
Found Linux Mint 7 Gloria - x64 Edition (7) on /dev/sda9
Found Ubuntu 8.04.1 (8.04) on /dev/sdb1
Found Ubuntu 9.04 (9.04) on /dev/sdb2
Found Linux Mint 7 Gloria - Main Edition (7) on /dev/sdb3
Found Ubuntu 9.04 (9.04) on /dev/sda1
Found Ubuntu 8.10 (8.10) on /dev/sda3
Found Ubuntu 8.04 (8.04) on /dev/sda5
Found Linux Mint 7 Gloria - x64 Edition (7) on /dev/sda9
Found Ubuntu 8.04.1 (8.04) on /dev/sdb1
Found Ubuntu 9.04 (9.04) on /dev/sdb2
Found Linux Mint 7 Gloria - Main Edition (7) on /dev/sdb3
done
...
It seems to scan the same partitions several times.
The scripts in /etc/grub.d/ are very fast if I run them maually. There should be no reason to waste time.
$ ls -l /etc/grub.d/*
--------------
System information:
$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu karmic (development branch)
Release: 9.10
Codename: karmic
-------------
$ sudo fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000b7d5
Device Boot Start End Blocks Id System
/dev/sda1 1 5099 40957686 83 Linux
/dev/sda2 * 5100 10199 40965750 83 Linux
/dev/sda3 10200 15298 40957717+ 83 Linux
/dev/sda4 15299 30401 121314847+ 5 Extended
/dev/sda5 15299 20652 43005973+ 83 Linux
/dev/sda6 20653 26006 43005973+ 83 Linux
/dev/sda7 26007 26735 5855661 83 Linux
/dev/sda8 26736 27221 3903763+ 82 Linux swap / Solaris
/dev/sda9 27222 30401 25543318+ 83 Linux
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000677e0
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9726 78124063+ 83 Linux
/dev/sdb2 9727 19452 78124095 83 Linux
/dev/sdb3 19453 29178 78124095 83 Linux
/dev/sdb4 29179 38913 78196387+ 83 Linux
Disk /dev/sdc: 2034 MB, 2034237440 bytes
26 heads, 26 sectors/track, 5877 cylinders
Units = cylinders of 676 * 512 = 346112 bytes
Disk identifier: 0x04030201
Device Boot Start End Blocks Id System
/dev/sdc1 * 60 5878 1966320 b W95 FAT32 (2 GB USB stick)
-------------
$ mount
/dev/sda2 on / type ext4 (rw,noatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda7 on /tmp type ext3 (rw,noatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/moma/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=moma)
/dev/sdc1 on /media/DC73-EDF8 type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=lower,dmask=0077,utf8=1,flush)
/dev/sdb4 on /media/sdb4_ type ext3 (rw,nosuid,nodev,uhelper=devkit)
-------------
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/425650/+subscriptions
More information about the foundations-bugs
mailing list