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

[gelöst] grubkonfiguration für suse 11.4 und ubuntu 10.10 ??

Hein06

Member
Hallo
Ich habe auf dem Pc zunächst ubuntu installiert und anschliessend opensuse 11.4 . suse wollte zunächst ubuntu unbedingt formatieren und bot mir später keinen grub Eintrag für ubuntu an. grub erkannte aber die richtige Konfiguration für suse , ich habe einen Eintrag für ubuntu hinzugefügt, habe aber keine Ahnung wie der Befehl lauten muß. ubuntu ist auf sda6 und bootet aus dem mbr.

Heinz
 

spoensche

Moderator
Teammitglied
Poste mal die Ausgabe von
Code:
fdisk -l
und die /boot/grub/menu.lst, in der du Ubuntu eingetragen hst.
 
OP
H

Hein06

Member
Hallo spoensche

suse hat meine EIntrag wieder entfernt. ich bin mir auch nicht sicher , ob hd(0,7) richtig ist sda8 für suse root.

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,7)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 2.6.37.1-1.2
root (hd0,7)
kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-SAMSUNG_HM400LI_S1PSJ10S303721-part8 resume=/dev/disk/by-id/ata-SAMSUNG_HM400LI_S1PSJ10S303721-part5 splash=silent quiet showopts vga=0x317
initrd /boot/initrd-2.6.37.1-1.2-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.1-1.2
root (hd0,7)
kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-SAMSUNG_HM400LI_S1PSJ10S303721-part8 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317
initrd /boot/initrd-2.6.37.1-1.2-desktop


fdisk -l
htpc:/boot/grub # fdisk -l

Disk /dev/sda: 400.1 GB, 400088457216 bytes
255 Köpfe, 63 Sektoren/Spur, 48641 Zylinder, zusammen 781422768 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006c0bc

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 2046 82229247 41113601 5 Erweiterte
/dev/sda2 82229248 781422591 349596672 83 Linux
/dev/sda5 2048 4102143 2050048 82 Linux Swap / Solaris
/dev/sda6 4104192 23633919 9764864 83 Linux
/dev/sda7 23635968 43165695 9764864 83 Linux
/dev/sda8 43167744 62697471 9764864 83 Linux
/dev/sda9 62699520 82229247 9764864 83 Linux

Heinz
 
OP
H

Hein06

Member
Hallo spoensche

Das ist die menu.lst.old
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,7)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.4
root (hd0,7)
kernel /boot/vmlinuz root=/dev/sda8 resume=/dev/sda5 splash=silent quiet showopts vga=0x317
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4
root (hd0,7)
kernel /boot/vmlinuz root=/dev/sda8 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: linux###
title Ubuntu
root (hd0,7)
kernel /boot/vmlinux root=/dev/sda6 vga=0x317
initrd /boot/initrd

Aber das kann so nicht funktionieren. Ich habe ubuntu noch auf einen anderen PC mit virtualbox , verstehe aber nicht wie der bootet.

Heinz
 
OP
H

Hein06

Member
Hallo
Ich habe mal die ubuntu Partition gemounted
htpc:/home/htpc/ubuntu/boot # ls -al
insgesamt 34980
drwxr-xr-x 3 root root 4096 24. Apr 09:21 .
drwxr-xr-x 22 root root 4096 24. Apr 09:15 ..
-rw-r--r-- 1 root root 705737 17. Okt 2010 abi-2.6.35-22-generic
-rw-r--r-- 1 root root 706021 19. Mär 01:36 abi-2.6.35-28-generic
-rw-r--r-- 1 root root 128592 17. Okt 2010 config-2.6.35-22-generic
-rw-r--r-- 1 root root 128604 19. Mär 01:36 config-2.6.35-28-generic
drwxr-xr-x 3 root root 4096 24. Apr 09:16 grub
-rw-r--r-- 1 root root 10758601 24. Apr 09:14 initrd.img-2.6.35-22-generic
-rw-r--r-- 1 root root 10767645 24. Apr 09:21 initrd.img-2.6.35-28-generic
-rw-r--r-- 1 root root 165084 24. Sep 2010 memtest86+.bin
-rw-r--r-- 1 root root 167264 24. Sep 2010 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 1830809 17. Okt 2010 System.map-2.6.35-22-generic
-rw-r--r-- 1 root root 1832012 19. Mär 01:36 System.map-2.6.35-28-generic
-rw-r--r-- 1 root root 1192 17. Okt 2010 vmcoreinfo-2.6.35-22-generic
-rw-r--r-- 1 root root 1192 19. Mär 01:39 vmcoreinfo-2.6.35-28-generic
-rw-r--r-- 1 root root 4289616 17. Okt 2010 vmlinuz-2.6.35-22-generic
-rw-r--r-- 1 root root 4295344 19. Mär 01:36 vmlinuz-2.6.35-28-generic
htpc:/home/htpc/ubuntu/boot #

Heinz
 

spoensche

Moderator
Teammitglied
Der Ubuntu- Eintrag stimmt so nicht ganz.

Code:
title Ubuntu
root (hd0,5)
kernel /vmlinux root=/dev/sda6 vga=0x317
initrd /initrd.img

Da bei 0 angefangen wird hochzuzählen, kannst du nicht root(hd0,7) verwenden, weil hd0,7 /dev/sda8 entspricht und dein Ubuntu aber auf /dev/sda6.
 
Oben