Skip to contentSkip to conversation

GRUB has a problem with a big grub.cfg

DISCUSSION Felix Zielcke 3 participants 4 messages Jul 28, 2008 – Aug 5, 2008

lore
Share & tools
lore
#0 lore raw

GRUB 2 has a problem with many kernel entrys in grub.cfg This works fine for me with grub-emu but not real GRUB

I reproduced this now in qemu 0.9.1-5 from debian unstable Attached is the floppy image i used and the kernel entrys i added to the insmod lines generated by grub-mkrescue

Welcome to GRUB!

free magic is broken at 0x7f17a00: 0x3d616776

I tried to find out how big grub.cfg exactly must be for it to fail, but I couldn't
I deleted the entrys in little chunks and then after GRUB loaded the menu fine I added again some, but it keep displaying the menu fine with the new entrys added.
So something in GRUB's memory management seems to be a bit broken with a big grub.cfg

But I still wonder why you need that much kernels and now with testing in qemu I noticed that the reporter has the exact same menuentrys more then once in grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates

# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
if font (hd0,1)/usr/share/grub/unicode.pff ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod tga
if background_image (hd0,1)/usr/share/images/grub/Apollo_17_The_Last_Moon_Shot_Edit1.tga ; then
set color_normal=white/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###

menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06-dirty" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06-dirty root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06-dirty
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06-dirty (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06-dirty root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06-dirty
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06-dirty.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06-dirty.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06-dirty
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06-dirty.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06-dirty.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06-dirty
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-00025-gacaef06 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc7-00025-gacaef06 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc7-00025-gacaef06
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc2-git6.old (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.25-rc2-git6.old root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.25-rc2-git6
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.23-1-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.23-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-3-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-3-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-3-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-2-686" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-2-686 root=/dev/sda1 ro resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-2-686
}
menuentry "Debian GNU/Linux, linux 2.6.22-2-686 (single-user mode)" {
	linux	(hd0,1)/boot/vmlinuz-2.6.22-2-686 root=/dev/sda1 ro single resume=/dev/sda3 splash video=radeonfb:1024x768-32@100,noaccel vga=791
	initrd	(hd0,1)/boot/initrd.img-2.6.22-2-686
}

### END /etc/grub.d/10_linux ###

#1 lore raw
Quoted 19 lines · Felix Zielcke

GRUB 2 has a problem with many kernel entrys in grub.cfg This works fine for me with grub-emu but not real GRUB

I reproduced this now in qemu 0.9.1-5 from debian unstable Attached is the floppy image i used and the kernel entrys i added to the insmod lines generated by grub-mkrescue

Welcome to GRUB!

free magic is broken at 0x7f17a00: 0x3d616776

I tried to find out how big grub.cfg exactly must be for it to fail, but I couldn't
I deleted the entrys in little chunks and then after GRUB loaded the menu fine I added again some, but it keep displaying the menu fine with the new entrys added.
So something in GRUB's memory management seems to be a bit broken with a big grub.cfg

Quoted 3 lines

But I still wonder why you need that much kernels and now with testing in qemu I noticed that the reporter has the exact same menuentrys more then once in grub.cfg

Hi,

I have found the bug, it's caused by buffer overflown. In get_line (normal/main.c), if the string length is multiple of 64, the ending \0 will overflow the buffer, this patch fix the problem:

normal/main.c +3 -3
index e5458fc..70f2f1d 100644
@@ -97,9 +97,6 @@ get_line (grub_file_t file)
 	}
       else
 	{
-	  if (c == '\n')
-	    break;
-
 	  if (pos >= max_len)
 	    {
 	      char *old_cmdline = cmdline;
@@ -112,6 +109,9 @@ get_line (grub_file_t file)
 		}
 	    }
 
+	  if (c == '\n')
+	    break;
+
 	  cmdline[pos++] = c;
 	}
     }
Signature · 1 line
Bean
#2 lore raw

Hi,

Quoted 3 lines · Bean

I have found the bug, it's caused by buffer overflown. In get_line (normal/main.c), if the string length is multiple of 64, the ending \0 will overflow the buffer, this patch fix the problem:

Looks fine to me.

--
Marco

#3 lore raw
Quoted 9 lines · Marco Gerards

Hi,

Quoted 3 lines · Bean

I have found the bug, it's caused by buffer overflown. In get_line (normal/main.c), if the string length is multiple of 64, the ending \0 will overflow the buffer, this patch fix the problem:

Looks fine to me.

It's already committed.

Signature · 1 line
Bean