Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

pb avec grub et dual boot

4 réponses
Avatar
Gabriel
Bonjour,

j'ai une machine en dual boot W2K / Linux Fedora et ai du réinstaller W2K.
Il a écrasé mon mbr avec grub, normal. mais il boote sans pb.

Mes disques :
/dev/hda

Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 974 7823623+ 7 HPFS/NTFS
/dev/hda2 975 4865 31254457+ f Win95 Etdue (LBA)
/dev/hda5 975 4865 31254426 b Win95 FAT32



/dev/hdd disque linux
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdd1 * 1 203 102280+ 83 Linux
/dev/hdd2 204 16457 8192016 83 Linux
/dev/hdd3 16458 20520 2047752 83 Linux
/dev/hdd4 20521 77545 28740600 f Win95 Etdue (LBA)
/dev/hdd5 20521 22600 1048288+ 82 Echange Linux

A l'occasion j'enlèvera le flag bootable de la partition hdd1 :)

je reboote sous linux à partir du cd,
su
#chroot /mnt/sysimage
# /sbin/grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdd

oui, tout est correct.
Ensuite
cat /boot/grub/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdd2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2188.nptl)
root (hd1,0)
kernel /vmlinuz-2.4.22-1.2188.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2188.nptl.img
title Windows
rootnoverify (hd0,0)
chainloader +1

Quane je boote sur Windows, Grub réaffiche le menu mais boote sans pb
sous Linux.

Je sèche :(

4 réponses

Avatar
Gabriel
Gabriel wrote:
Bonjour,

j'ai une machine en dual boot W2K / Linux Fedora et ai du réinstaller W2K.
Il a écrasé mon mbr avec grub, normal. mais il boote sans pb.

Mes disques :
/dev/hda

Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 974 7823623+ 7 HPFS/NTFS
/dev/hda2 975 4865 31254457+ f Win95 Etdue (LBA)
/dev/hda5 975 4865 31254426 b Win95 FAT32



/dev/hdd disque linux
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdd1 * 1 203 102280+ 83 Linux
/dev/hdd2 204 16457 8192016 83 Linux
/dev/hdd3 16458 20520 2047752 83 Linux
/dev/hdd4 20521 77545 28740600 f Win95 Etdue (LBA)
/dev/hdd5 20521 22600 1048288+ 82 Echange Linux

A l'occasion j'enlèvera le flag bootable de la partition hdd1 :)

je reboote sous linux à partir du cd,
su
#chroot /mnt/sysimage
# /sbin/grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdd

oui, tout est correct.
Ensuite
cat /boot/grub/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdd2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout
splashimage=(hd1,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2188.nptl)
root (hd1,0)
kernel /vmlinuz-2.4.22-1.2188.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2188.nptl.img
title Windows
rootnoverify (hd0,0)
chainloader +1

Quane je boote sur Windows, Grub réaffiche le menu mais boote sans pb
sous Linux.

Je sèche :(

Bon ca inspire personne ?

Moi non plus hélàs :)

Avatar
Jean-Yves LENHOF
Le Sun, 30 May 2004 21:56:13 +0200, Gabriel a écrit :

Gabriel wrote:
Bonjour,

j'ai une machine en dual boot W2K / Linux Fedora et ai du réinstaller W2K.
Il a écrasé mon mbr avec grub, normal. mais il boote sans pb.

Mes disques :
/dev/hda

Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 974 7823623+ 7 HPFS/NTFS
/dev/hda2 975 4865 31254457+ f Win95 Etdue (LBA)
/dev/hda5 975 4865 31254426 b Win95 FAT32



/dev/hdd disque linux
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdd1 * 1 203 102280+ 83 Linux
/dev/hdd2 204 16457 8192016 83 Linux
/dev/hdd3 16458 20520 2047752 83 Linux
/dev/hdd4 20521 77545 28740600 f Win95 Etdue (LBA)
/dev/hdd5 20521 22600 1048288+ 82 Echange Linux

A l'occasion j'enlèvera le flag bootable de la partition hdd1 :)

je reboote sous linux à partir du cd,
su
#chroot /mnt/sysimage
# /sbin/grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdd

oui, tout est correct.
Ensuite
cat /boot/grub/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdd2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout
splashimage=(hd1,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2188.nptl)
root (hd1,0)
kernel /vmlinuz-2.4.22-1.2188.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2188.nptl.img
title Windows
rootnoverify (hd0,0)
chainloader +1

Quane je boote sur Windows, Grub réaffiche le menu mais boote sans pb
sous Linux.

Je sèche :(




Je te conseille la lecture de http://fedoranews.org

Ton pb est connu et à priori il s'agit d'un bug mickeysoft...

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id5980

Cdlt,

Jean-Yves LENHOF


Avatar
Stephane Wirtel
title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1


Essaie ceci :-)
Avatar
Gabriel
Ah oui, je me sens moins seul maintenant, faut dire qu'après avoir :
essayé de restaurer un ghost d'une autre machine B 2 fois, W2K boote pas
réinstallé W2K 4 fois,
booté sur le cd de Fedora 10ne fois,

Je commençais à perdre un peu patience ....

Finalement,

voici ce qui a marché, pour ceux que ca interesse :
Backup des data
destruction de toutes les partitions du disque A
Install de W2K
creer partition A NTFS
creer partition B FAT32
On configurera W2K complètement + tard (au cas où .... :) )
Reboot sur le cd de Fedora
chroot /mnt/sysimage
grub
root(hd1,0) -> Linux est sur un disque à part, quelle chance, j'ai juste
perdu W2K comme ca :)
setup (hd0) -> Grub va dans le MBR
editer grub.conf pour vérifier que la partition W2K boote bien en (hd0,0)

Reboote (croisage de doigts)
grub apparaît -> windows -> OK

Victoire après de longues heures perdues :)

Mon système W2K est de nouveau opérationnel, bon, ok, je passe 80% de
mon temps sur Linux mais bon, j'en avais besoin :)