aptosid.com

Upgrade Warnings - grub broken after D-U oct 22, 2010

bmorency - 22.10.2010, 23:36
Post subject: grub broken after D-U oct 22, 2010
Hi,

I just did a dist-upgrade and now my system will not boot up. There is something wrong with grub now. After I pick kernel 2.6.30 from the grub menu I get the following error.

      Code:

Loading linux 2.6.30-0
error: file not found.
Loading initial ramdisk
error: you need to load the kernel first.

press any key


I am in the process of redownloading the live cd to try to fix it.
GdV87 - 22.10.2010, 23:58
Post subject: RE: grub broken after D-U oct 22, 2010
I've the same identical problem.

"grub-install" and "update-grub" from the live-cd have no effects.

GdV87
hopimet - 23.10.2010, 06:15
Post subject: RE: grub broken after D-U oct 22, 2010
Did you log out of KDE and close X before D-U ?
devil - 23.10.2010, 06:59
Post subject: RE: grub broken after D-U oct 22, 2010
      Quote:

Loading linux 2.6.30-0

we are currently at 2.6.36, 2.6.30 is ancient.

greetz
devil
hopimet - 23.10.2010, 08:03
Post subject: RE: grub broken after D-U oct 22, 2010
Ooops, I read 2.6.36

I woke up too early this morning. Better return to bed.
devil - 23.10.2010, 09:52
Post subject: RE: grub broken after D-U oct 22, 2010
2.6.30 might be a typo. the bug exists.
http://www.mail-archive.com/debian-bugs ... 36356.html
it affects sonme, but not all.
just trying to find out why.

greetz
devil
GdV87 - 23.10.2010, 10:00
Post subject: RE: grub broken after D-U oct 22, 2010
My kernel is 2.6.35 and it is the only one I've installed.

GdV87
devil - 23.10.2010, 10:02
Post subject: RE: grub broken after D-U oct 22, 2010
do you have encrypted /?
can we see grub.cfg and fdisk -l from the affected box please? (boot live cd to access it)


greetz
devil
prozektor - 23.10.2010, 10:24
Post subject: RE: grub broken after D-U oct 22, 2010
I have same problem after upgrade
/ not encrypted

fdisk -l
      Code:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00085eb4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          30      240943+  83  Linux
/dev/sda2              31         552     4192965   82  Linux swap / Solaris
/dev/sda3             553        9808    74348820   83  Linux
/dev/sda4            9809       60801   409601272+  83  Linux


grub.cfg:

      Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod xfs
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 73fc2ebd-ea3a-4169-b469-a14bd311f066
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
set locale_dir=($root)/grub/locale
set lang=ru
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
insmod png
if background_image /grub/moreblue-orbit-grub.png ; then
  set color_normal=black/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_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.36-0.slh.1-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   echo   'Loading Linux 2.6.36-0.slh.1-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.36-0.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro vga=791 quiet
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.36-0.slh.1-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.36-0.slh.1-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   echo   'Loading Linux 2.6.36-0.slh.1-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.36-0.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro single vga=791
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.36-0.slh.1-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.5-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   echo   'Loading Linux 2.6.35-7.slh.5-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.35-7.slh.5-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro vga=791 quiet
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-7.slh.5-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.5-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   echo   'Loading Linux 2.6.35-7.slh.5-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.35-7.slh.5-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro single vga=791
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-7.slh.5-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   echo   'Loading Linux 2.6.35-7.slh.1-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro vga=791 quiet
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-7.slh.1-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-7.slh.1-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   echo   'Loading Linux 2.6.35-7.slh.1-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro single vga=791
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-7.slh.1-aptosid-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   linux16   /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   linux16   /memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   multiboot   /memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 611e4c00-ca69-40d2-9f9d-5a2fc21bdc3e
   multiboot   /memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

GdV87 - 23.10.2010, 10:31
Post subject:
Before D-U I've put the system in runlevel 3 (X-server closed).
My / is not encrypted.
I've attached a copy of "grub.cfg" file and the output from "fdisk -l".
Any ideas about what I can do in order to solve the problem?
Thanks

GdV87

      Code:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd2b4201c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         128     1027072   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2   *         129        5248    41126400    7  HPFS/NTFS
/dev/sda3           11539       30401   151517047+   5  Extended
/dev/sda4            5249       11538    50524425   83  Linux
/dev/sda5           29815       30401     4715046   82  Linux swap / Solaris
/dev/sda6           11539       14149    20970496   83  Linux
/dev/sda7           14149       29814   125829120   83  Linux

Partition table entries are not in disk order


      Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 0c8b004c-67a4-45de-8be4-9be2d5e2ee37
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set b9cd8ba2-c6d9-404e-9379-940ddd8946a4
set locale_dir=($root)/grub/locale
set lang=it
insmod gettext
set timeout=2
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.35-4.slh.9-aptosid-amd64' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set b9cd8ba2-c6d9-404e-9379-940ddd8946a4
   echo   'Loading Linux 2.6.35-4.slh.9-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.35-4.slh.9-aptosid-amd64 root=UUID=0c8b004c-67a4-45de-8be4-9be2d5e2ee37 ro vga=791 quiet
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-4.slh.9-aptosid-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.35-4.slh.9-aptosid-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set b9cd8ba2-c6d9-404e-9379-940ddd8946a4
   echo   'Loading Linux 2.6.35-4.slh.9-aptosid-amd64 ...'
   linux   /boot/vmlinuz-2.6.35-4.slh.9-aptosid-amd64 root=UUID=0c8b004c-67a4-45de-8be4-9be2d5e2ee37 ro single vga=791
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.35-4.slh.9-aptosid-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set b9cd8ba2-c6d9-404e-9379-940ddd8946a4
   linux16   /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set b9cd8ba2-c6d9-404e-9379-940ddd8946a4
   linux16   /memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set b9cd8ba2-c6d9-404e-9379-940ddd8946a4
   multiboot   /memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set b9cd8ba2-c6d9-404e-9379-940ddd8946a4
   multiboot   /memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows XP Professional x64 Edition (on /dev/sda2)" {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos2)'
   search --no-floppy --fs-uuid --set 9830c0a930c08fa4
   drivemap -s (hd0) ${root}
   chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

etorix - 23.10.2010, 10:45
Post subject:
kernel update does not HAVE to be done outside of X, thats not the issue here

hmm .. there was a initramfs-tools update too, as well as a grub-pc update recently + new kernel ..

question is: why is it not seeing the kernel for you, it seems pointed correctly
prozektor - 23.10.2010, 10:50
Post subject:
I am change from grub (select menu entries and press e):

      Code:
linux /boot/vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro single vga=791
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-7.slh.1-aptosid-amd64


on:

      Code:
linux /vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro single vga=791
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-7.slh.1-aptosid-amd64


and problem solved
devil - 23.10.2010, 10:54
Post subject:
prozektor, GdV87,
please put pastes ii the thread here, in a codebox. you get there by writing a first few characters and hitting 'Preview' please use the code tags there. thanks.
other than that i have no clue so far, why this happens to some, but not all. my 32-/64-bit boxes are fine after the upgrade.

greetz
devil
devil - 23.10.2010, 11:02
Post subject:
prozektor,
do you have a separate /boot partiton?

greetz
devil
GdV87 - 23.10.2010, 11:13
Post subject:
The solution posted by prozektor worked flawlessly for me too.
Thanks
GdV87

p.s. I've a separate boot partition
prozektor - 23.10.2010, 11:34
Post subject:
Yes ,i have a separate /boot partition
bmorency - 23.10.2010, 12:04
Post subject:
The solution posted by prozektor worked for me too.
Thanks


I also have a separate boot partition. And I do have the latest kernel. My inital post was a typo.
devil - 23.10.2010, 12:11
Post subject:
its kinda obvious (although i had overseen it)
/boot points to the boot directory on /
no initrd or kernel there.

greetz
devil
bmorency - 23.10.2010, 12:18
Post subject:
I do not know where to make this change so it will be permanent next time I reboot. Does anyone know what file I need to change?

Thanks
prozektor - 23.10.2010, 12:35
Post subject:
/boot/grub/grub.cfg
bmorency - 23.10.2010, 14:43
Post subject:
oh ok.I went to change that file but at the top it says not to change it as it is generated by other programs. if there is a kernel upgrade will it change back?
schlimm - 23.10.2010, 16:03
Post subject:
I changed grub.cfg, but a grub-update changed it back! Is there a lasting solution?

Greetings
dark_ray - 23.10.2010, 16:16
Post subject:
Yes, it will change back.
/boot/grub/grub.cfg is affected (during update-grub) by general settings in /etc/default/grub and various scripts in /etc/grub.d.
And in scripts there is "10_linux" witch "Locates kernels based on the distributor".
So u need to change (temporarily) this common script to generate correct lines
      Code:

/etc/grub.d/10_linux

105  rel_dirname=`make_system_path_relative_to_its_root $dirname`
to
105  rel_dirname=""

Then run as root update-grub. I have checked this solution but without reboot Smile
Use it on your own risk!
Granjow - 25.10.2010, 06:58
Post subject:
      prozektor wrote:
I am change from grub (select menu entries and press e):

      Code:
linux /boot/vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro single vga=791
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-7.slh.1-aptosid-amd64


on:

      Code:
linux /vmlinuz-2.6.35-7.slh.1-aptosid-amd64 root=UUID=73fc2ebd-ea3a-4169-b469-a14bd311f066 ro single vga=791
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-7.slh.1-aptosid-amd64


and problem solved


Man, thank you!
belze - 25.10.2010, 08:38
Post subject:
changing the boot option in grub at system start did not work for me. I had to use systemrescuecd to boot into my system and thanks to a grup update avaible today my system is now up and running.
darthwonka - 25.10.2010, 14:37
Post subject:
      GdV87 wrote:
The solution posted by prozektor worked flawlessly for me too.
Thanks
GdV87

p.s. I've a separate boot partition


Same problem here.. Separate /boot partition. How often will we need to hand fix the problem after fixing grub.cfg? What changed?
devil - 25.10.2010, 18:01
Post subject:
not at all, its fixed in grub-pc_1.98+20100804-7
in detail:
http://packages.debian.org/changelogs/p ... /changelog
it broke with:
      Code:
 zfs_fix_mkrelpath.patch: Fix grub-mkrelpath for non-root ZFS. (Closes: #600578)

and was fixed with:
      Code:
* zfs_fix_mkrelpath.patch: Replace with proper fix from upstream Bazaar. (Closes: #601087)


greetz
devil
All times are GMT - 12 Hours
Powered by PNphpBB2 © 2003-2010 The Zafenio Group
Credits