• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[umgangen]Nach der Installation von Ubuntu ist Grub zerstört

A

Anonymous

Gast
Hallo,
heute habe ich mir auf einer 2. Festplatte Ubuntu 7.04 installiert.
Leider habe ich damit auch den Bootlader zerstört.
Anbei meine Protokolle.
Wer kann mir helfen, Grub zu reparieren ?

# Modified by YaST2. Last modification on Sa Aug 4 18:46:15 CEST 2007
default 0
timeout 8
gfxmenu (hd0,4)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5 vga=0x317 resume=/dev/hda1 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd

title Windows XP
rootnoverify (hd0,0)
chainloader (hd0,2)+1
linux-du2j:~ #

Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 64 514048+ 82 Linux swap / Solaris
/dev/hda2 * 65 7713 61440592+ f W95 Ext'd (LBA)
/dev/hda3 7714 9732 16217617+ 7 HPFS/NTFS
/dev/hda5 65 2675 20972826 83 Linux
/dev/hda6 2676 7713 40467703+ 83 Linux

Disk /dev/hdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 2350 18876343+ 6 FAT16
/dev/hdb2 2351 4179 14683410 83 Linux
/dev/hdb3 4179 4793 4931924 83 Linux
/dev/hdb4 4793 4870 626534+ 82 Linux swap / Solaris

Disk /dev/sda: 127 MB, 127876608 bytes
255 heads, 63 sectors/track, 15 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 124848 b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(14, 254, 63) logical=(15, 139, 27)

Auf der 1. Festplatte ist Opensuser 10.2 und Windows XP.
Auf der 2. Festplatte ist Ubuntu 7.04 und ein Leerraum, den ich für
Windows zur Sicherung nutzen möchte.
Gruß
Sonja Kurtenbach
 
OP
A

Anonymous

Gast
Hallo,
ich möchte mich nochmal melden.
So weit es möglich war, habe ich grub wieder repariert.
Leider kann ich trotzdem Ubuntu nicht öffnen.
Der Verweis auf die Partition = /dev/hdb3 läßt sich nicht
öffnen.
Es stellt sich aber für mich die Frage, ob bei der Installation
etwas schief gelaufen ist.
Ich wurde nicht nach einer Bootkonfiguration gefragt.
Wie kann ich denn trotzdem die Partition wieder öffnen ?

Gruß
Sonja Kurtenbach
 

misiu

Moderator
Teammitglied
Ich gehe davon aus, dass du wieder auf openSuSE Zugriff hast.
In diesem Fall, vorausgesetzt das Dateisystem auf /dev/hdb richtig
geschrieben wurde, kannst du von SuSE aus die Ubuntu-Partitionen
anhängen und schauen, ob überhaupt was installiert wurde.
Am einfachstem über YaST->System->Partitionieren Anhängepunkte
definieren. So kannst du feststellen , wo sich der Ubuntu-Linux-Kernel
überhaupt befindet und im Anschluss im "Yast->System->Konfiguration
des Bootloaders" einen entsprechenden Abschnitt für Ubuntu definieren.
Möglicherweise findest du in einer der Ubuntu-Partitionen das /boot-Verzeichnis
, wo sich auch die Grub-Dateien befinden, sollte sich da bereits die
menu.ist befinden, brauchst du da nur den Abschnitt herauszukopieren
und im SuSE-menu.ist reinkopieren. Wichtig ist das "root (hdx,y)", sollte
bei dir root (hd1,3) oder root (hd1,4) sein .

MfG
misiu
 
OP
A

Anonymous

Gast
Hallo Misiu,

ich habe es leider erst heute geschafft, meine Antwort im Linux-Club
nachzuschauen.
Also ich komme wieder komplett in Opensuse.
Zwischenzeitlich habe ich Ubuntu noch mal komplett neu installiert, aber
es funktioniert immer noch nicht.
- Im Grub von Opensuse ist Ubuntu eingetragen, aber auf den Verweis
öffnet Ubuntu leider nicht.
- Die Ubuntu Datei menu.ist kann ich von Opensuse aus lesen, aber
welchen Abschnitt muss ich kopieren, und bei Suse-menu.ist reinkopieren ?
- Kannst du mir bitte erklären, wo ich nachsehen kann, ob "root(hdx,y)
root(hd1,3) oder root(hd1,4) dort steht ?
Ich hoffe, das du mir hierbei weiterhelfen kannst.

Danke im Voraus

Gruß
Sonja
 

admine

Ultimate Guru
Sonja47 schrieb:
- Im Grub von Opensuse ist Ubuntu eingetragen, aber auf den Verweis
öffnet Ubuntu leider nicht.
Welche Fehlermeldung kommt?

Sonja47 schrieb:
- Die Ubuntu Datei menu.ist kann ich von Opensuse aus lesen, aber
welchen Abschnitt muss ich kopieren, und bei Suse-menu.ist reinkopieren ?
Bitte poste diese menu.lst von Ubuntu.
 
OP
A

Anonymous

Gast
Hallo,

zu 1. Die Fehlermeldung sagt Error 21.

zu 2. Hier der Post:

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=dcce5e4c-63c2-4a63-bdfc-08583a2d559c ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Ubuntu, kernel 2.6.20-15-generic
root (hd1,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=dcce5e4c-63c2-4a63-bdfc-08583a2d559c ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd1,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=dcce5e4c-63c2-4a63-bdfc-08583a2d559c ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd1,2)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda3
title Windows NT/2000/XP
root (hd0,2)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title openSUSE 10.2 (on /dev/hda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18.8-0.5-bigsmp root=/dev/hda5 vga=0x317 resume=/dev/hda1 splash=silent showopts elevator=
initrd /boot/initrd-2.6.18.8-0.5-bigsmp
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title Failsafe -- openSUSE 10.2 (on /dev/hda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18.8-0.5-bigsmp root=/dev/hda5 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off
initrd /boot/initrd-2.6.18.8-0.5-bigsmp
savedefault
boot

Gruß
Sonja
 

misiu

Moderator
Teammitglied
Code:
Diesen Abschnitt müsstest du eigentlich in Susis menu.ist reinkopieren:
title Ubuntu, kernel 2.6.20-15-generic
root (hd1,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=dcce5e4c-63c2-4a63-bdfc-08583a2d559c ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

allerdings würde ich die UUID einfach durch /dev/hdb2 ersetzen :

Code:
title Ubuntu, kernel 2.6.20-15-generic
root (hd1,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=/dev/hdb3 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
Ist der Ubuntu -Kernel auf /dev/hdb3?
savedefault
 
Oben