[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Aw: Re: Wheezy ohne Grub, aber mit Grub2 starten {JB}



Manne hatte recht
 

>Manfred Schmitt schrieb:
>Error 15 ist auf jeden Fall noch grub 1:

>Aber eigentlich sollte grub 1 ja auch nicht mehr im Bootsektor sein...
>Ins Blaue geraten ist grub wohl in sda und grub2 in sda1, also in der
>Partition, installiert. 

Die Rettungs-CD SuperGrub hat problemlos die grub.cfg gefunden und normal gestartet.
Das System lief problemlos also:
***
server:~# dpkg --list | grep grub
ii  grub         0.97-64         i386  GRand Unified Bootloader (dummy package)
ii  grub-common  1.99-27+deb7u1  i386  GRand Unified Bootloader (common files)
ii  grub-pc      1.99-27+deb7u1  i386  GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin  1.99-27+deb7u1  i386  GRand Unified Bootloader, version 2 (PC/BIOS binaries)
ii  grub2-common 1.99-27+deb7u1  i386  GRand Unified Bootloader (common files for version 2)
***
server:~# grub-setup /dev/sda
***
server:~# update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.26-1-686
Found initrd image: /boot/initrd.img-2.6.26-1-686
done  
***
server:~# reboot
***
GRUB loading ...
Welcome to GRUB!
error invalid file name ´?└/normal.mod´ 
Entering rescue mode
grub rescue>
****
grub rescue> ls (hd0,msdos2)  'hier sind /root und /boot zuhause
***
grub rescue>set prefix=(hd0,msdos2)/boot/grub
***
grub rescue>set root=(hd0,msdos2)
***
grub rescue>insmod linux
***
grub rescue>insmod normal
***
grub rescue>normal            'das Bootmenue erscheint, der Rechner booten normal
****
....
****
server:~# reboot
GRUB loading ...
Welcome to GRUB!
error invalid file name ´?└/normal.mod´ 
Entering rescue mode
grub rescue>
****
Was nun?
Hier noch die grub.cfg, an der es aber nicht liegen dürfte oder doch[set root='(hd2,msdos2)']:
server:~# cat /boot/grub/grub.cfg
#
# 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='(hd2,msdos2)'
search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd2,msdos2)'
  search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
  set locale_dir=($root)/boot/grub/locale
  set lang=de_DE@euro
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### 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, mit Linux 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
        echo    'Linux 3.2.0-4-686-pae wird geladen ...'
        linux   /boot/vmlinuz-3.2.0-4-686-pae root=UUID=6b23cf43-05fc-4d05-8e52-c9c09723fe26 ro  quiet
        echo    'Initiale Ramdisk wird geladen ...'
        initrd  /boot/initrd.img-3.2.0-4-686-pae
}
menuentry 'Debian GNU/Linux, mit Linux 3.2.0-4-686-pae (Wiederherstellungsmodus)' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
        echo    'Linux 3.2.0-4-686-pae wird geladen ...'
        linux   /boot/vmlinuz-3.2.0-4-686-pae root=UUID=6b23cf43-05fc-4d05-8e52-c9c09723fe26 ro single
        echo    'Initiale Ramdisk wird geladen ...'
        initrd  /boot/initrd.img-3.2.0-4-686-pae
}
menuentry 'Debian GNU/Linux, mit Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
        echo    'Linux 2.6.32-5-686 wird geladen ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=6b23cf43-05fc-4d05-8e52-c9c09723fe26 ro  quiet
        echo    'Initiale Ramdisk wird geladen ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, mit Linux 2.6.32-5-686 (Wiederherstellungsmodus)' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
        echo    'Linux 2.6.32-5-686 wird geladen ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=6b23cf43-05fc-4d05-8e52-c9c09723fe26 ro single
        echo    'Initiale Ramdisk wird geladen ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, mit Linux 2.6.26-1-686' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
        echo    'Linux 2.6.26-1-686 wird geladen ...'
        linux   /boot/vmlinuz-2.6.26-1-686 root=UUID=6b23cf43-05fc-4d05-8e52-c9c09723fe26 ro  quiet
        echo    'Initiale Ramdisk wird geladen ...'
        initrd  /boot/initrd.img-2.6.26-1-686
}
menuentry 'Debian GNU/Linux, mit Linux 2.6.26-1-686 (Wiederherstellungsmodus)' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos2)'
        search --no-floppy --fs-uuid --set=root 6b23cf43-05fc-4d05-8e52-c9c09723fe26
        echo    'Linux 2.6.26-1-686 wird geladen ...'
        linux   /boot/vmlinuz-2.6.26-1-686 root=UUID=6b23cf43-05fc-4d05-8e52-c9c09723fe26 ro single
        echo    'Initiale Ramdisk wird geladen ...'
        initrd  /boot/initrd.img-2.6.26-1-686
}
### END /etc/grub.d/10_linux ###

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

### 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 ###
 
Gruß aus der Stadt der CeBIT
Jochen


Reply to: