• 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] Neue Platte, grub bootet XP nicht mehr

AlGaN

Newbie
Hallo,

ich habe schon einige Zeit bzgl. obigen Problem gesucht, aber nichts Vergleichbares gefunden...

Ich habe in mein altes Notebook eine neue Platte eingebaut (60 GB auf 160 GB), die Partitionen der alten Platte mit der gparted-LiveCD kopiert (und glz. vergrößert).

Leider war auf der alten Platte die Partitionstabelle durcheinander, die XP-Systempartition war auf der 3. primären Partition, während die /boot-Partition von Suse 10.2 auf der 2. primären Partition war, auf der 1. Partition war ein "Überbleibsel" des "Recovery-Images" von XP, das ich nicht richtig löschen konnte...

Ich habe deshalb die Partitionen auf der neuen Platte mit gparted neu angeordnet:
Code:
fdisk -l

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        3853    30949191    7  HPFS/NTFS
/dev/hda2            3854       19457   125339130    5  Extended
/dev/hda5            3854       10227    51199123+   7  HPFS/NTFS
/dev/hda6           10228       10234       56196   83  Linux
/dev/hda7           10235       10638     3245098+  83  Linux
/dev/hda8           10639       10766     1028128+  82  Linux swap / Solaris
/dev/hda9           10767       11403     5116671   83  Linux
/dev/hda10          11404       13953    20482843+  83  Linux
/dev/hda11          13954       15483    12289693+  83  Linux
/dev/hda12          15484       19457    31921123+   b  W95 FAT32
d.h. die XP-Partitionen sind jetzt hda1 und als 1. logische Partition hda5, während die /boot-Partition von Suse 10.2 auf hda6 liegt...
Code:
df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda7              3194748   2532656    499804  84% /
udev                   1037724       132   1037592   1% /dev
/dev/hda6                54416     13283     38324  26% /boot
/dev/hda9              5038844   1687324   3095688  36% /home
/dev/hda10            20159288   8128952  11006196  43% /usr
/dev/hda11            12095972   2745460   8736028  24% /opt
/dev/hda12             8827072   8731112     95960  99% /xchange
Ich habe dann die fstab angepasst und Suse über die Installations-DVD starten können sowie den Bootloader zurückschreiben in den MBR.

Die menu.lst:
Code:
# cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Do Feb 14 17:10:40 CET 2008
default 0
timeout 8

title Kernel-2.6.20.2-ccj47-default
    root (hd0,5)
    kernel /vmlinuz-2.6.20.2-ccj47-default root=/dev/hda7 vga=0x317 resume=/dev/hda6 splash=silent  showopts
    initrd /initrd-2.6.20.2-ccj47-default

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

###Don't change this comment - YaST2 identifier: Original name: Vendor diagnostic###
title Vendor diagnostic
    rootnoverify (hd0,5)
    chainloader (hd0)+1

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
    rootnoverify (hd0,0)
    chainloader +1

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

###Don't change this comment - YaST2 identifier: Original name: memtest86###
title Speichertest
    kernel (hd0,5)/memtest.bin

###Don't change this comment - YaST2 identifier: Original name: xen###
title XEN
    kernel (hd0,1)/xen.gz
    module (hd0,1)/vmlinuz-xen root=/dev/hda6 vga=0x317 resume=/dev/hda7 splash=silent showopts
    module (hd0,1)/initrd-xen

grub.conf:
Code:
# cat /etc/grub.conf
setup --stage2=/boot/grub/stage2 (hd0) (hd0,5)
quit

device.map:
Code:
# cat device.map
(hd0)   /dev/hda

Ich habe von der Recovery WinXP-Version mit irgendeinem Tool eine XP-Installations-CD erstellt, so dass ich die Rettungskonsole booten konnte und mit
Code:
fixmbr
und
Code:
fixboot
die Dateien zurückschreiben konnte (vor der Installation von grub natürlich). Auch die boot.ini habe ich entsprechend angepasst:
Code:
cat boot.ini
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect

Während Linux wieder einwandfrei mit der neuen Platte bootet, bleibt grub bei Auswahl von Windows stehen, die Befehle
Code:
rootnoverify (hd0,0)
    chainloader +1
erscheinen zwar, danach tut sich aber leider nichts mehr...

Bin für jeden Tipp dankbar
AlGaN

P.S.
habe auch schon über die grub-shell zusätzlich
Code:
makeactive
boot
etc. probiert, bringt leider auch nichts

Ok, hab das Problem lösen können mit der Super Grub Disk, weiß leider nicht mehr so genau, wie...
 
Oben