MBR & Grub2 wiederherstellen

      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:

      AW: MBR & Grub2 wiederherstellen

      Hi
      Hier ist der Output vom BootInfoScript:

      Brainfuck-Quellcode

      1. Boot Info Script 0.61 [1 April 2012]
      2. ============================= Boot Info Summary: ===============================
      3. => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sda.
      4. => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.
      5. sda1: __________________________________________________________________________
      6. File system: vfat
      7. Boot sector type: Dell Utility: FAT16
      8. Boot sector info: No errors found in the Boot Parameter Block.
      9. Operating System:
      10. Boot files: /DELLBIO.BIN /DELLRMK.BIN /COMMAND.COM
      11. sda2: __________________________________________________________________________
      12. File system: ntfs
      13. Boot sector type: Windows Vista/7: NTFS
      14. Boot sector info: No errors found in the Boot Parameter Block.
      15. Operating System:
      16. Boot files: /bootmgr /Boot/BCD
      17. sda3: __________________________________________________________________________
      18. File system: ntfs
      19. Boot sector type: Windows Vista/7: NTFS
      20. Boot sector info: No errors found in the Boot Parameter Block.
      21. Operating System: Windows 7
      22. Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
      23. sdb1: __________________________________________________________________________
      24. File system: swap
      25. Boot sector type: -
      26. Boot sector info:
      27. sdb2: __________________________________________________________________________
      28. File system: ext4
      29. Boot sector type: Grub2 (v1.99)
      30. Boot sector info: Grub2 (v1.99) is installed in the boot sector of sdb2
      31. and looks at sector 34011936 of the same hard drive
      32. for core.img. core.img is at this location and looks
      33. in partition 98 for .
      34. Operating System:
      35. Boot files: /grub2/grub.cfg
      36. sdb3: __________________________________________________________________________
      37. File system: ext4
      38. Boot sector type: -
      39. Boot sector info:
      40. Operating System: Welcome to openSUSE 12.3
      41. "Dartmouth" - Kernel ().
      42. Boot files: /etc/fstab
      43. sdb4: __________________________________________________________________________
      44. File system: ext4
      45. Boot sector type: -
      46. Boot sector info:
      47. Operating System:
      48. Boot files:
      49. ============================ Drive/Partition Info: =============================
      50. Drive: sda _____________________________________________________________________
      51. Disk /dev/sda: 320.1 GB, 320072933376 bytes
      52. 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
      53. Units = sectors of 1 * 512 = 512 bytes
      54. Disk identifier: 0xf8000000
      55. Partition Boot Start Sector End Sector # of Sectors Id System
      56. /dev/sda1 63 417,689 417,627 12 Compaq diagnostics
      57. /dev/sda2 417,792 20,729,855 20,312,064 17 Hidden NTFS / HPFS
      58. /dev/sda3 20,729,856 623,933,439 603,203,584 7 NTFS / exFAT / HPFS
      59. Drive: sdb _____________________________________________________________________
      60. Disk /dev/sdb: 320.1 GB, 320072933376 bytes
      61. 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
      62. Units = sectors of 1 * 512 = 512 bytes
      63. Disk identifier: 0x04f75401
      64. Partition Boot Start Sector End Sector # of Sectors Id System
      65. /dev/sdb1 2,048 33,736,703 33,734,656 82 Linux swap / Solaris
      66. /dev/sdb2 * 33,736,704 35,839,999 2,103,296 83 Linux
      67. /dev/sdb3 35,840,000 316,866,559 281,026,560 83 Linux
      68. /dev/sdb4 316,866,560 625,141,759 308,275,200 83 Linux
      69. "blkid" output: ________________________________________________________________
      70. Device UUID TYPE LABEL
      71. /dev/cloop0 iso9660 KNOPPIX_FS
      72. /dev/sda1 07DA-0717 vfat DellUtility
      73. /dev/sda2 64B866BCB8668BFC ntfs RECOVERY
      74. /dev/sda3 2A6C56606C56273B ntfs OS
      75. /dev/sdb1 19e256b9-0891-4cf7-b4c8-4a8eae7ec553 swap
      76. /dev/sdb2 7b8ffeac-e28d-455a-afdd-dd0f36b933a2 ext4
      77. /dev/sdb3 9286a48c-2ac6-46f0-b58f-293ec53145ed ext4
      78. /dev/sdb4 319fed7f-d28b-46c4-b709-4584c17c1417 ext4
      79. ================================ Mount points: =================================
      80. Device Mount_Point Type Options
      81. /dev/cloop /KNOPPIX iso9660 (ro,relatime)
      82. /dev/sr0 /mnt-system iso9660 (ro,relatime)
      83. ============================= sdb2/grub2/grub.cfg: =============================
      84. --------------------------------------------------------------------------------
      85. #
      86. # DO NOT EDIT THIS FILE
      87. #
      88. # It is automatically generated by grub2-mkconfig using templates
      89. # from /etc/grub.d and settings from /etc/default/grub
      90. #
      91. ### BEGIN /etc/grub.d/00_header ###
      92. if [ -s $prefix/grubenv ]; then
      93. load_env
      94. fi
      95. set default="${saved_entry}"
      96. if [ x'${feature_menuentry_id}' = xy ]; then
      97. menuentry_id_option="--id"
      98. else
      99. menuentry_id_option=""
      100. fi
      101. export menuentry_id_option
      102. if [ '${prev_saved_entry}' ]; then
      103. set saved_entry="${prev_saved_entry}"
      104. save_env saved_entry
      105. set prev_saved_entry=
      106. save_env prev_saved_entry
      107. set boot_once=true
      108. fi
      109. function savedefault {
      110. if [ -z '${boot_once}' ]; then
      111. saved_entry="${chosen}"
      112. save_env saved_entry
      113. fi
      114. }
      115. function load_video {
      116. if [ x$feature_all_video_module = xy ]; then
      117. insmod all_video
      118. else
      119. insmod efi_gop
      120. insmod efi_uga
      121. insmod ieee1275_fb
      122. insmod vbe
      123. insmod vga
      124. insmod video_bochs
      125. insmod video_cirrus
      126. fi
      127. }
      128. if [ x$feature_default_font_path = xy ] ; then
      129. font=unicode
      130. else
      131. insmod part_msdos
      132. insmod ext2
      133. set root='hd0,msdos3'
      134. if [ x$feature_platform_search_hint = xy ]; then
      135. 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
      136. else
      137. search --no-floppy --fs-uuid --set=root 9286a48c-2ac6-46f0-b58f-293ec53145ed
      138. fi
      139. font="/usr/share/grub2/unicode.pf2"
      140. fi
      141. if loadfont $font ; then
      142. set gfxmode=auto
      143. load_video
      144. insmod gfxterm
      145. set locale_dir=$prefix/locale
      146. set lang=de_DE
      147. insmod gettext
      148. fi
      149. terminal_output gfxterm
      150. if [ x${boot_once} = xtrue ]; then
      151. set timeout=0
      152. elif sleep --interruptible 0 ; then
      153. set timeout=8
      154. fi
      155. ### END /etc/grub.d/00_header ###
      156. ### BEGIN /etc/grub.d/10_linux ###
      157. ### END /etc/grub.d/10_linux ###
      158. ### BEGIN /etc/grub.d/20_linux_xen ###
      159. ### END /etc/grub.d/20_linux_xen ###
      160. ### BEGIN /etc/grub.d/20_memtest86+ ###
      161. ### END /etc/grub.d/20_memtest86+ ###
      162. ### BEGIN /etc/grub.d/20_ppc_terminfo ###
      163. ### END /etc/grub.d/20_ppc_terminfo ###
      164. ### BEGIN /etc/grub.d/30_os-prober ###
      165. ### END /etc/grub.d/30_os-prober ###
      166. ### BEGIN /etc/grub.d/40_custom ###
      167. # This file provides an easy way to add custom menu entries. Simply type the
      168. # menu entries you want to add after this comment. Be careful not to change
      169. # the 'exec tail' line above.
      170. ### END /etc/grub.d/40_custom ###
      171. ### BEGIN /etc/grub.d/41_custom ###
      172. if [ -f ${config_directory}/custom.cfg ]; then
      173. source ${config_directory}/custom.cfg
      174. elif [ -z '${config_directory}' -a -f $prefix/custom.cfg ]; then
      175. source $prefix/custom.cfg;
      176. fi
      177. ### END /etc/grub.d/41_custom ###
      178. ### BEGIN /etc/grub.d/90_persistent ###
      179. ### END /etc/grub.d/90_persistent ###
      180. --------------------------------------------------------------------------------
      181. =================== sdb2: Location of files loaded by Grub: ====================
      182. GiB - GB File Fragment(s)
      183. 16.231563568 = 17.428508672 grub2/grub.cfg 1
      184. =============================== sdb3/etc/fstab: ================================
      185. --------------------------------------------------------------------------------
      186. /dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part1 swap swap defaults 0 0
      187. /dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part3 / ext4 acl,user_xattr 1 1
      188. /dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part2 /boot ext4 acl,user_xattr 1 2
      189. /dev/disk/by-id/ata-Hitachi_HTS725032A9A362_100611PCLC00VPK3MJAK-part4 /home ext4 acl,user_xattr 1 2
      190. proc /proc proc defaults 0 0
      191. sysfs /sys sysfs noauto 0 0
      192. debugfs /sys/kernel/debug debugfs noauto 0 0
      193. usbfs /proc/bus/usb usbfs noauto 0 0
      194. devpts /dev/pts devpts mode=0620,gid=5 0 0
      195. --------------------------------------------------------------------------------
      196. =============================== StdErr Messages: ===============================
      197. mdadm: No arrays found in config file or automatically


      EDIT
      SChon erledigt, habe alles neuinstalliert.

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „amara“ () aus folgendem Grund: update