Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bmorencyOffline
15 Post subject: grub broken after D-U oct 22, 2010  PostPosted: 22.10.2010, 23:36



Joined: 2010-10-22
Posts: 71

Status: Offline
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.


Last edited by bmorency on 25.10.2010, 23:48; edited 3 times in total
 
 View user's profile Send private message  
Reply with quote Back to top
GdV87Offline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 22.10.2010, 23:58



Joined: 2010-10-11
Posts: 63
Location: Italy
Status: Offline
I've the same identical problem.

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

GdV87
 
 View user's profile Send private message  
Reply with quote Back to top
hopimetOffline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 23.10.2010, 06:15



Joined: 2010-10-13
Posts: 62
Location: France
Status: Offline
Did you log out of KDE and close X before D-U ?
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 23.10.2010, 06:59



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
      Quote:

Loading linux 2.6.30-0

we are currently at 2.6.36, 2.6.30 is ancient.

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
hopimetOffline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 23.10.2010, 08:03



Joined: 2010-10-13
Posts: 62
Location: France
Status: Offline
Ooops, I read 2.6.36

I woke up too early this morning. Better return to bed.
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 23.10.2010, 09:52



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
GdV87Offline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 23.10.2010, 10:00



Joined: 2010-10-11
Posts: 63
Location: Italy
Status: Offline
My kernel is 2.6.35 and it is the only one I've installed.

GdV87
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 23.10.2010, 10:02



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
prozektorOffline
Post subject: RE: grub broken after D-U oct 22, 2010  PostPosted: 23.10.2010, 10:24



Joined: 2010-10-23
Posts: 4
Location: Russia, Lipetsk
Status: Offline
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 ###


Last edited by prozektor on 23.10.2010, 11:01; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
GdV87Offline
Post subject:   PostPosted: 23.10.2010, 10:31



Joined: 2010-10-11
Posts: 63
Location: Italy
Status: Offline
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 ###


Last edited by GdV87 on 23.10.2010, 11:10; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
etorixOffline
Post subject:   PostPosted: 23.10.2010, 10:45
Team Member


Joined: 2010-08-26
Posts: 137

Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
prozektorOffline
Post subject:   PostPosted: 23.10.2010, 10:50



Joined: 2010-10-23
Posts: 4
Location: Russia, Lipetsk
Status: Offline
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


Last edited by prozektor on 23.10.2010, 10:59; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject:   PostPosted: 23.10.2010, 10:54



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject:   PostPosted: 23.10.2010, 11:02



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
prozektor,
do you have a separate /boot partiton?

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
GdV87Offline
Post subject:   PostPosted: 23.10.2010, 11:13



Joined: 2010-10-11
Posts: 63
Location: Italy
Status: Offline
The solution posted by prozektor worked flawlessly for me too.
Thanks
GdV87

p.s. I've a separate boot partition
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio