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

2 SATA Platten. Grub auf 1.Platte, Windows auf der 2. Platte

TOBI--

Member
Hallo Forum,

ich weiß es gibt viel zu lesen für mein Problem, doch nachdem ich schon seit Wochen keine Lösung finde die funktioniert und ich schon mehrmals mein System neu installieren musste weil ich mir Grub zerschossen habe öffne ich jetzt diesen Thread.

Problem:
Ich habe 2 SATA Platten in meiner Büchse. Laut Bios ist es SATA Port 2 (Linux Platte) und Port 3 (Win Platte). Im Moment kann ich beide Systeme über die Bios Einstellung (boote von Blatte N) fehlerfrei booten.

Benutze ich Yast und wähle "neuen Vorschlag übernehmen" (oder so ähnlich)
Fügt Yast die Windows Platte in menu.lst hinzu
Code:
title Windows XP Home
    rootnoverify (hd0,0)
    chainloader (hd1,0)+1

Wenn ich dann auf OK gehe und Grub neu geschrieben werden soll erscheint nach einiger Zeit ein Fenster
grub>setup --stage2=/boot/grub/stage2 (hd0) (hd0,0) error 21: selected disk does not exist
.... aber es ist doch da?

zum Schluss noch ein paar System infos:

Code:
linbox:/home/user # fdisk -l

Platte /dev/sda: 250.0 GByte, 250000000000 Byte
255 heads, 63 sectors/track, 30394 cylinders
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1        3917    31463271   83  Linux
/dev/sda2            6790       30156   187695427+  83  Linux
/dev/sda3           30157       30394     1911735   82  Linux Swap / Solaris
/dev/sda4            3918        6789    23069340   83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge

Platte /dev/sdb: 160.0 GByte, 160041885696 Byte
255 heads, 63 sectors/track, 19457 cylinders
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1   *           1       12748   102398278+   7  HPFS/NTFS
/dev/sdb2           12749       19456    53882010    f  W95 Erw. (LBA)
/dev/sdb5           12749       19456    53881978+   7  HPFS/NTFS
linbox:/home/user # cat /boot/grub.menu.lst
cat: /boot/grub.menu.lst: Datei oder Verzeichnis nicht gefunden was soll das? die Datei ist doch genau da zu finden?
path: /boot/grub/menu.lst
Code:
# Modified by YaST2. Last modification on Do Aug 30 08:30:23 CEST 2007
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,0)/boot/message
##YaST - activate

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
    root (hd0,0)
    kernel /boot/vmlinuz root=/dev/sda1 showopts ide=nodma apm=off acpi=off noresume edd=off 3
    initrd /boot/initrd
Code:
linbox:/home/user # cat /boot/grub/device.map
(hd0)   /dev/sda
(hd1)   /dev/sdb
linbox:/home/user #
Ich hab irgendwo gelesen das Windows nicht von der zweiten platte booten mag und man das ganze tauschen soll

rootnoverify (hd1,1)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

danach ging bei mir gar nix mehr

Wenn ich mich irgendwo unklar ausgedrückt habe bitte nochmal fragen.
Danke!
Gruß
Toby
 

vixt

Member
Versuch doch mal folgenden Eintrag in /boot/grub/menu.lst:

Code:
title Windows
    rootnoverify (hd0,0)
    map (hd0) (hd1)
    map (hd1) (hd0)
    makeactive
    chainloader (hd1,0)+1

Ich habe eine SATA (sda) und eine PATA (hda) Platte. Auf der PATA Platte ist WinXP installiert. Bei mir funktioniert's so.
 
OP
T

TOBI--

Member
Meine menu.lst sieht jetzt so aus. und ob es klappt werde ich nach dem neustart sehen.

# Modified by YaST2. Last modification on Do Aug 30 08:30:23 CEST 2007
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,0)/boot/message
##YaST - activate

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

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

title Windows XP Home
rootnoverify (hd0,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader (hd1,0)+1
 
OP
T

TOBI--

Member
Forum, Vixt,

ES HAT GEKLAPPT!!

Vielen Dank an Linus Towalds, den Linux-club, and den Vixt und an meinen Computer , ohne den ich das Problem gar nicht erst gehabt hätte....
 
Oben