Superbe script, ça m'aide aussi à y voir un peu plus claire.
J'ai retenté de restaurer le MBR de windows avec mon CD de backup mais cela ne fonctionne plus du tout, je me retrouve toujours avec cette invite de commande
"grub>"
Voila le résultat d'une session live CD :
============================= Boot Info Summary: ==============================
=> Grub 0.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #2 for /boot/grub/stage2 and /boot/grub/menu.lst.
=> Windows is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sda2: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda3: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda6: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sda4: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdc1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disque /dev/sda: 500.1 Go, 500107862016 octets
255 têtes, 63 secteurs/piste, 60801 cylindres, total 976773168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Identifiant de disque : 0x000d33ac
Partition Boot Start End Size Id System
/dev/sda1 * 63 245,762,369 245,762,307 7 HPFS/NTFS
/dev/sda2 245,762,370 269,201,204 23,438,835 83 Linux
/dev/sda3 269,201,205 302,407,559 33,206,355 5 Extended
/dev/sda5 269,201,268 273,104,999 3,903,732 82 Linux swap / Solaris
/dev/sda6 273,105,063 302,407,559 29,302,497 83 Linux
/dev/sda4 302,407,560 976,768,064 674,360,505 7 HPFS/NTFS
Drive: sdb ___________________ _____________________________________________________
Disque /dev/sdb: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres, total 312581808 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Identifiant de disque : 0x41944193
Partition Boot Start End Size Id System
Drive: sdc ___________________ _____________________________________________________
Disque /dev/sdc: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres, total 156301488 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Identifiant de disque : 0x2d7d2d7c
Partition Boot Start End Size Id System
/dev/sdc1 * 63 156,280,319 156,280,257 7 HPFS/NTFS
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 7EB0D54AB0D50A13 ntfs Windows
/dev/sda2 aaff1f84-ff59-4fc3-845c-e0f7f26cf379 ext4
/dev/sda4 A2804FE4804FBE13 ntfs Stockage
/dev/sda5 cab50bdf-c2e5-4428-b3e2-c8c23114f4f9 swap
/dev/sda6 6a02cbff-5244-463a-9bbe-efb375e710f3 ext4
/dev/sdc1 364812BF48127E35 ntfs Docs
============================ "mount | grep ^/ output: ===========================
Device Mount Point Type Options
/dev/sda2 / ext4 (rw,errors=remount-ro)
/dev/sda6 /home ext4 (rw)
/dev/sr0 /media/cdrom0 iso9660 (ro,nosuid,nodev,utf8,user=oopinou)
================================ sda1/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 Professionnel" /noexecute=optin /fastdetect /usepmtimer
=========================== sda2/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set aaff1f84-ff59-4fc3-845c-e0f7f26cf379
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set aaff1f84-ff59-4fc3-845c-e0f7f26cf379
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=aaff1f84-ff59-4fc3-845c-e0f7f26cf379 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set aaff1f84-ff59-4fc3-845c-e0f7f26cf379
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=aaff1f84-ff59-4fc3-845c-e0f7f26cf379 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set aaff1f84-ff59-4fc3-845c-e0f7f26cf379
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=aaff1f84-ff59-4fc3-845c-e0f7f26cf379 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set aaff1f84-ff59-4fc3-845c-e0f7f26cf379
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=aaff1f84-ff59-4fc3-845c-e0f7f26cf379 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professionnel (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 7eb0d54ab0d50a13
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
=============================== sda2/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda2 during installation
UUID=aaff1f84-ff59-4fc3-845c-e0f7f26cf379 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=6a02cbff-5244-463a-9bbe-efb375e710f3 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=cab50bdf-c2e5-4428-b3e2-c8c23114f4f9 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
=================== sda2: Location of files loaded by Grub: ===================
125.8GB: boot/grub/core.img
125.8GB: boot/grub/grub.cfg
125.8GB: boot/grub/stage2
125.8GB: boot/initrd.img-2.6.31-14-generic
125.8GB: boot/initrd.img-2.6.31-17-generic
125.8GB: boot/vmlinuz-2.6.31-14-generic
125.8GB: boot/vmlinuz-2.6.31-17-generic
125.8GB: initrd.img
125.8GB: initrd.img.old
125.8GB: vmlinuz
125.8GB: vmlinuz.old