MBR & Grub2 wiederherstellen

amara

New Member
MBR & Grub2 wiederherstellen

Hallo zusammen
Ich habe OpenSuse auf meinem BIOS-Laptop auf sdb installiert, während sich auf sda ein win7 befindet. Die Idee ist, das jeweillige OS per One-Time-Bootmenü zu starten.
Der erste Neustart endete mit einer Fehlermeldung: no such partition.
In der Zwischenzeit habe ich alles mögliche ausprobiert(...) dabei aus versehen die Bootpartition (sdb2) formatiert. Wenn ich es richtig verstehe, muss Grub2 in der Bootpartition wieder neuinstalliert werden und der MBR (auf sdb) aktualisiert, sodaß er Grub zum starten bringen kann.
Kann jemand so nett sein und mir verraten welche Terminal-Befehle dafür nötig sind?
:confused:
 

glako

Member
Teammitglied
AW: MBR & Grub2 wiederherstellen

Wie sieht denn die Partitionierung aus?
Hast Du tatsächlich 2 Festplatten im Laptop?
 

amara

New Member
AW: MBR & Grub2 wiederherstellen

Hi
Hier ist der Output vom BootInfoScript:
Code:
Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sda.
 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Dell Utility: FAT16
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /DELLBIO.BIN /DELLRMK.BIN /COMMAND.COM

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sdb1: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sdb2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sdb2 
                       and looks at sector 34011936 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       in partition 98 for .
    Operating System:  
    Boot files:        /grub2/grub.cfg

sdb3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Welcome to openSUSE 12.3 
                       "Dartmouth" - Kernel ().
    Boot files:        /etc/fstab

sdb4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xf8000000

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                  63       417,689       417,627  12 Compaq diagnostics
/dev/sda2             417,792    20,729,855    20,312,064  17 Hidden NTFS / HPFS
/dev/sda3          20,729,856   623,933,439   603,203,584   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x04f75401

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1               2,048    33,736,703    33,734,656  82 Linux swap / Solaris
/dev/sdb2    *     33,736,704    35,839,999     2,103,296  83 Linux
/dev/sdb3          35,840,000   316,866,559   281,026,560  83 Linux
/dev/sdb4         316,866,560   625,141,759   308,275,200  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/cloop0                                             iso9660    KNOPPIX_FS
/dev/sda1        07DA-0717                              vfat       DellUtility
/dev/sda2        64B866BCB8668BFC                       ntfs       RECOVERY
/dev/sda3        2A6C56606C56273B                       ntfs       OS
/dev/sdb1        19e256b9-0891-4cf7-b4c8-4a8eae7ec553   swap       
/dev/sdb2        7b8ffeac-e28d-455a-afdd-dd0f36b933a2   ext4       
/dev/sdb3        9286a48c-2ac6-46f0-b58f-293ec53145ed   ext4       
/dev/sdb4        319fed7f-d28b-46c4-b709-4584c17c1417   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/cloop       /KNOPPIX                 iso9660    (ro,relatime)
/dev/sr0         /mnt-system              iso9660    (ro,relatime)


============================= sdb2/grub2/grub.cfg: =============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-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="${saved_entry}"

if [ x'${feature_menuentry_id}' = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 --hint='hd0,msdos3'  9286a48c-2ac6-46f0-b58f-293ec53145ed
else
  search --no-floppy --fs-uuid --set=root 9286a48c-2ac6-46f0-b58f-293ec53145ed
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ x${boot_once} = xtrue ]; then
  set timeout=0
elif sleep --interruptible 0 ; then
  set timeout=8
fi
### END /etc/grub.d/00_header ###

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

### 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+ ###
### END /etc/grub.d/20_memtest86+ ###

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

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z '${config_directory}' -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
--------------------------------------------------------------------------------

=================== sdb2: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

  16.231563568 = 17.428508672   grub2/grub.cfg                                 1

=============================== sdb3/etc/fstab: ================================

--------------------------------------------------------------------------------
/dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part3 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part2 /boot                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part4 /home                ext4       acl,user_xattr        1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
--------------------------------------------------------------------------------

=============================== StdErr Messages: ===============================

mdadm: No arrays found in config file or automatically
EDIT
SChon erledigt, habe alles neuinstalliert.
 
Oben