Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 30/05/2013, à 10:17

malbo

[Tuto] Install Ubuntu 12.04.2 en dual-boot avec Windows 8 préinstallé

Préambule : dans quelques mois, la situation devrait s'améliorer avec la sortie de la version 12.04.3 pour laquelle la détection de Windows 8 et la gestion du dual-boot par Grub sera opérationnelle. Si tout se passe comme prévu, ce tuto sera donc obsolète à l'automne 2013. Pour l'heure, on est toujours dans la galère avec cette andouille d'installateur de Ubuntu et je donne ici quelques conseils à des étapes clés de l'installation 

- AVANT l'installation :
Il faut appliquer les consignes de la doc "Comment installer Ubuntu en cohabitation (double amorçage) avec Windows", ce qui implique une phase de "Repartitionnement de votre disque dur" afin de dégager un espace libre pour Ubuntu. Dans l'exemple d'installation ci-après, j'avais dégagé un espace libre de 10,6 Go en vue d'allouer 8 Go à la racine de Ubuntu et 2,6 Go à la swap. C'est un minimum. Si on a l'intention de stocker des documents dans une partition /home ou dans une partition de partage (voir post #5), il faut dégager énormément plus de place.

- INSTALLATION

Elle est lancée depuis une session live (choix "Essayer Ubuntu") afin de s'assurer que la connexion internet est opérationnelle (un petit tour sur le net avec Firefox suffit pour le savoir). Un double-clic sur l’icône de l'installateur qui est sur le bureau et ça démarre. A l'étape 1 de l'installation, on choisit la langue et à l'étape 2 de l'installation, comme on a vérifié que l'accès à internet est OK, on coche la case "Télécharger les mises à jour pendant l'installation" :
420061Capturedu20130530053256.png 

- ETAPE 3 de l'installation :
Comme l'installateur ne détecte pas correctement Windows 8, il affiche cette fenêtre inquiétante :
215718Capturedu20130530053449.png

Ne pas paniquer : comme il ne sait pas détecter Windows 8, l’installateur déclare qu'il n'y a aucun système d'exploitation. Le seul choix possible puisqu'on veut conserver Windows 8 est de cocher "Autre chose" et de faire le partitionnement en mode Manuel avec l'aide de la doc : http://doc.ubuntu-fr.org/tutoriel/parti … eur_ubuntu

EXEMPLE D'INSTALLATION DANS UN ESPACE LIBRE CRÉÉ AVANT INSTALLATION

Les deux seules partitions à créer dans cet exemple sont la partition racine de Ubuntu et la partition swap. La partition EFI existe déjà puisque Windows 8 est préinstallé, quant à la partition /boot, elle ne sert à rien (malgré ce que dit la doc) dans un ordi moderne préinstallé Windows 8 : donc il ne fait pas prévoir de partition /boot.
La procédure de création de partition est présentée dans la doc "Créer une nouvelle partition dans un espace libre". Je la détaille quand même parce que ça se présente un peu différemment dans le cas d'une installation de Windows 8 en mode UEFI (pas de partition "logique" : ça n'existe pas du fait que la table de partition du disque dur est du type GPT)

*Création de la partition racine (je fixe une taille de 8000 Mo pour laisser un peu de place à la swap). Il faut sélectionner la ligne espace libre et cliquer sur Ajouter pour pouvoir ouvrir la fenêtre qui permet le paramétrage de la partition :
886965Capturedu20130530054152.png
Après validation, on peut voir le résultat : la partition racine a été enregistrée et il reste juste de l'espace libre pour la création de la swap à l'étape d'après : 
843198Capturedu20130530054311.png

*Création de la partition swap
Même méthode : sélectionner la ligne "espace libre" et cliquer sur Ajouter afin de renseigner le paramétrage de la swap (pour la taille, tout l'espace libre restant est alloué) :
344171Capturedu20130530054422.png

On obtient alors la vue suivante et il n'y a plus qu'à cliquer sur Installer maintenant :
830436Capturedu20130530054532.png

A noter : il n'y a pas besoin de s'occuper de définir quoi que ce soit concernant la partition EFI : elle existe déjà et l'installateur sait ce qu'il doit faire avec une partition EFI préexistante. Il va installer dedans le chargeur d'amorçage de Grub. Pour la même raison, il n'y a pas besoin de sélectionner quoi que ce soit dans le champ "Périphérique où sera installé le programme de démarrage" : quoi qu'on sélectionne, cela ne sera pas pris en compte par l'installateur qui ne s'intéresse qu'à la partition EFI qu'il a déjà identifiée. En somme, on a créé deux partitions - la racine et la swap - et c'est tout ce qui est à réaliser.



- Au redémarrage après installation :

Si l'ordi démarre spontanément sous Ubuntu (ce qui dépend des cas), on s'aperçoit que l'ordi redémarre direct sur Ubuntu sans que le menu Grub soit affiché. C'est toujours une conséquence de la non-détection de Windows 8 par Grub. Il va falloir utiliser Boot-Repair (étape suivante) si on souhaite pouvoir disposer d'entrées pour Windows 8 dans le menu Grub. Attention, ce n'est pas une obligation de passer par Grub pour démarrer Windows puisqu'il est possible de passer par le système UEFI (le "Bios" nouveau) de l'ordi pour sélectionner Windows. C'est seulement que les utilisateurs de longue date de Ubuntu ont l'habitude de confier à Grub la gestion du dual-boot et donc de passer par le menu Grub pour démarrer Windows.

- Réparation avancée avec Boot-Repair

1) d'abord un état des lieux - avant réparation - avec un Boot-Info réalisé depuis une session normale du Ubuntu installé sur le disque dur. Je donne ici un exemple de ce matin fait dans une machine virtuelle avec VMWare Player :

 Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 12May2013]


============================= Boot Info Summary: ===============================

 => Windows 7/8/2012 is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /EFI/Boot/bootx64.efi /EFI/ubuntu/grubx64.efi 
                       /EFI/Microsoft/Boot/bootmgfw.efi 
                       /EFI/Microsoft/Boot/bootmgr.efi 
                       /EFI/Microsoft/Boot/memtest.efi

sda3: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8
    Boot files:        /bootmgr /Windows/System32/winload.exe

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 12.04.2 LTS 
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda6: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1   125,829,119   125,829,119  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048       616,447       614,400 Windows Recovery Environment (Windows)
/dev/sda2         616,448       821,247       204,800 EFI System partition
/dev/sda3         821,248     1,083,391       262,144 Microsoft Reserved Partition (Windows)
/dev/sda4       1,083,392   105,101,311   104,017,920 Data partition (Windows/Linux)
/dev/sda5     105,101,312   120,725,503    15,624,192 Data partition (Windows/Linux)
/dev/sda6     120,725,504   125,827,071     5,101,568 Swap partition (Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        1E42996842994605                       ntfs       Récupération
/dev/sda2        76A1-0C3C                              vfat       
/dev/sda4        621AB1441AB1164F                       ntfs       
/dev/sda5        5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf   ext4       
/dev/sda6        3b612111-f808-4085-a956-f51955edc9b2   swap       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda2        /boot/efi                vfat       (rw)
/dev/sda5        /                        ext4       (rw,errors=remount-ro)


=========================== sda5/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_gpt
  insmod ext2
  set root='(hd0,gpt5)'
  search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
  set locale_dir=($root)/boot/grub/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
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/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu, avec Linux 3.5.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	linux	/boot/vmlinuz-3.5.0-23-generic root=UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.5.0-23-generic
}
menuentry 'Ubuntu, avec Linux 3.5.0-23-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	echo	'Chargement de Linux 3.5.0-23-generic…'
	linux	/boot/vmlinuz-3.5.0-23-generic root=UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf ro recovery nomodeset 
	echo	'Chargement du disque mémoire initial…'
	initrd	/boot/initrd.img-3.5.0-23-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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    nodev,noexec,nosuid 0       0
# / was on /dev/sda5 during installation
UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=76A1-0C3C  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda6 during installation
UUID=3b612111-f808-4085-a956-f51955edc9b2 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
--------------------------------------------------------------------------------

=================== sda5: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

  52.455245972 = 56.323391488   boot/grub/grub.cfg                             1
  51.367137909 = 55.155044352   boot/vmlinuz-3.5.0-23-generic                  1
  51.367137909 = 55.155044352   vmlinuz                                        1
  53.302570343 = 57.233199104   boot/initrd.img-3.5.0-23-generic               1
  53.302570343 = 57.233199104   initrd.img                                     1


ADDITIONAL INFORMATION :
=================== log of boot-repair 2013-05-30__10h41 ===================
boot-repair version : 3.199~ppa3~precise
boot-sav version : 3.199~ppa3~precise
glade2script version : 3.2.2~ppa45~precise
boot-sav-extra version : 3.199~ppa3~precise
boot-repair is executed in installed-session (Ubuntu 12.04.2 LTS, precise, Ubuntu, x86_64)
CPU op-mode(s):        32-bit, 64-bit
BOOT_IMAGE=/boot/vmlinuz-3.5.0-23-generic root=UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf ro quiet splash vt.handoff=7
Windows is hibernated, refused to mount.
Failed to mount '/dev/sda4': Opération non permise
The NTFS partition is hibernated. Please resume and shutdown Windows
properly, or mount the volume read-only with the 'ro' mount option, or
mount the volume read-write with the 'remove_hiberfile' mount option.
For example type on the command line:

mount -t ntfs-3g -o remove_hiberfile /dev/sda4 /mnt/boot-sav/sda4

mount -t ntfs-3g -o remove_hiberfile /dev/sda4 /mnt/boot-sav/sda4

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== os-prober:
/dev/sda5:L'OS actuellement utilisé - Ubuntu 12.04.2 LTS CurrentSession:linux

=================== blkid:
/dev/sda1: LABEL="RM-CM-)cupM-CM-)ration" UUID="1E42996842994605" TYPE="ntfs"
/dev/sda2: UUID="76A1-0C3C" TYPE="vfat"
/dev/sda4: UUID="621AB1441AB1164F" TYPE="ntfs"
/dev/sda5: UUID="5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf" TYPE="ext4"
/dev/sda6: UUID="3b612111-f808-4085-a956-f51955edc9b2" TYPE="swap"


1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.

Windows not detected by os-prober on sda4.

Attention : identifiant de table de partitions GPT (GUID) détecté sur « /dev/sda » ! L'utilitaire fdisk ne prend pas GPT en charge. Utilisez GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

ls: impossible d'accéder à /dev/disk/by-id: Aucun fichier ou dossier de ce type


=================== /etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"




=================== /etc/grub.d/ :
drwxr-xr-x  2 root root     4096 févr. 13 23:10 grub.d
total 60
-rwxr-xr-x 1 root root 6743 janv. 22 20:18 00_header
-rwxr-xr-x 1 root root 5522 janv. 22 20:05 05_debian_theme
-rwxr-xr-x 1 root root 7780 janv. 22 20:18 10_linux
-rwxr-xr-x 1 root root 6335 janv. 22 20:18 20_linux_xen
-rwxr-xr-x 1 root root 1588 nov.  27  2011 20_memtest86+
-rwxr-xr-x 1 root root 7603 janv. 22 20:18 30_os-prober
-rwxr-xr-x 1 root root 1388 janv. 22 20:18 30_uefi-firmware
-rwxr-xr-x 1 root root  214 janv. 22 20:18 40_custom
-rwxr-xr-x 1 root root   95 janv. 22 20:18 41_custom
-rw-r--r-- 1 root root  483 janv. 22 20:18 README


/boot/efi detected in the fstab of sda5: UUID=76A1-0C3C   (sda2)
Presence of EFI/Microsoft file detected: /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/bootx64.efi
ls /sys/firmware/efi/vars : RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,new_var,MTC-eb704011-1402-11d3-8e77-00a0c969723b,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,HDDP-fab7e9e1-39dd-4f2b-8408-e20e906cb6de,del_var,ConsoleOutMode-793d9786-44dc-4709-b57f-85b8e8fdbfd2,ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0005-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,
Veuillez indiquer ce message à boot.repair@gmail.com
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot maybe enabled. (maybe sec-boot, Veuillez indiquer ce message à boot.repair@gmail.com)


=================== PARTITIONS & DISKS:
sda5	: sda,	not-sepboot,	grubenv-ok	grub2,	grub-efi ,	update-grub,	64,	with-boot,	is-os,	not--efi--part,	fstab-without-boot,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot,	apt-get,	grub-install,	with--usr,	fstab-without-usr,	not-sep-usr,	standard,	not-far,	.
sda1	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	no-os,	not--efi--part,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	/mnt/boot-sav/sda1.
sda2	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	no-os,	is-correct-EFI,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	/boot/efi.
sda4	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	is-os,	not--efi--part,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	/mnt/boot-sav/sda4.

sda	: GPT,	no-BIOS_boot,	has-correctEFI, 	not-usb,	has-os,	2048 sectors * 512 bytes


=================== parted -l:

Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
1      1049kB  316MB   315MB   ntfs            Basic data partition          hidden, diag
2      316MB   420MB   105MB   fat32           EFI system partition          boot
3      420MB   555MB   134MB                   Microsoft reserved partition  msftres
4      555MB   53.8GB  53.3GB  ntfs            Basic data partition
5      53.8GB  61.8GB  8000MB  ext4
6      61.8GB  64.4GB  2612MB  linux-swap(v1)

=================== parted -lm:

BYT;
/dev/sda:64.4GB:scsi:512:512:gpt:VMware, VMware Virtual S;
1:1049kB:316MB:315MB:ntfs:Basic data partition:hidden, diag;
2:316MB:420MB:105MB:fat32:EFI system partition:boot;
3:420MB:555MB:134MB::Microsoft reserved partition:msftres;
4:555MB:53.8GB:53.3GB:ntfs:Basic data partition:;
5:53.8GB:61.8GB:8000MB:ext4::;
6:61.8GB:64.4GB:2612MB:linux-swap(v1)::;


=================== mount:
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda2 on /boot/efi type vfat (rw)
gvfs-fuse-daemon on /home/malbo/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=malbo)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda4 on /mnt/boot-sav/sda4 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


=================== ls:
/sys/block/fd0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  agpgart alarm ashmem autofs binder block bsg btrfs-control cdrom cdrw char console core cpu cpu_dma_latency disk dri dvd dvdrw ecryptfs fb0 fd fd0 full fuse hpet input kmsg log lp0 mapper mcelog mem net network_latency network_throughput null oldmem parport0 port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uinput urandom vga_arbiter vhost-net zero
ls /dev/mapper:  control

=================== hexdump -n512 -C /dev/sda1
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 08 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 5f 09 00 00 00 00 00  |........._......|
00000030  00 64 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |.d..............|
00000040  f6 00 00 00 01 00 00 00  05 46 99 42 68 99 42 1e  |.........F.Bh.B.|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 45 72 72 65  |............Erre|
00000190  75 72 20 6c 65 63 74 75  72 65 20 64 69 73 71 75  |ur lecture disqu|
000001a0  65 00 0d 0a 42 4f 4f 54  4d 47 52 20 63 6f 6d 70  |e...BOOTMGR comp|
000001b0  72 65 73 73 82 00 0d 0a  43 74 72 6c 2b 41 6c 74  |ress....Ctrl+Alt|
000001c0  2b 53 75 70 70 72 20 70  6f 75 72 20 72 65 64 82  |+Suppr pour red.|
000001d0  6d 61 72 72 65 72 0d 0a  00 73 74 61 72 74 0d 0a  |marrer...start..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a2 01 b6 01 00 00 55 aa  |..............U.|
00000200
ls /boot/efi/efi : Boot
Microsoft
ubuntu  .Veuillez indiquer ce message à boot.repair@gmail.com

=================== hexdump -n512 -C /dev/sda2
00000000  eb 58 90 4d 53 44 4f 53  35 2e 30 00 02 02 fe 19  |.X.MSDOS5.0.....|
00000010  02 00 00 00 00 f8 00 00  3f 00 ff 00 00 68 09 00  |........?....h..|
00000020  00 20 03 00 01 03 00 00  00 00 00 00 02 00 00 00  |. ..............|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  80 00 29 3c 0c a1 76 4e  4f 20 4e 41 4d 45 20 20  |..)<..vNO NAME  |
00000050  20 20 46 41 54 33 32 20  20 20 33 c9 8e d1 bc f4  |  FAT32   3.....|
00000060  7b 8e c1 8e d9 bd 00 7c  88 56 40 88 4e 02 8a 56  |{......|.V@.N..V|
00000070  40 b4 41 bb aa 55 cd 13  72 10 81 fb 55 aa 75 0a  |@.A..U..r...U.u.|
00000080  f6 c1 01 74 05 fe 46 02  eb 2d 8a 56 40 b4 08 cd  |...t..F..-.V@...|
00000090  13 73 05 b9 ff ff 8a f1  66 0f b6 c6 40 66 0f b6  |.s......f...@f..|
000000a0  d1 80 e2 3f f7 e2 86 cd  c0 ed 06 41 66 0f b7 c9  |...?.......Af...|
000000b0  66 f7 e1 66 89 46 f8 83  7e 16 00 75 39 83 7e 2a  |f..f.F..~..u9.~*|
000000c0  00 77 33 66 8b 46 1c 66  83 c0 0c bb 00 80 b9 01  |.w3f.F.f........|
000000d0  00 e8 2c 00 e9 a8 03 a1  f8 7d 80 c4 7c 8b f0 ac  |..,......}..|...|
000000e0  84 c0 74 17 3c ff 74 09  b4 0e bb 07 00 cd 10 eb  |..t.<.t.........|
000000f0  ee a1 fa 7d eb e4 a1 7d  80 eb df 98 cd 16 cd 19  |...}...}........|
00000100  66 60 80 7e 02 00 0f 84  20 00 66 6a 00 66 50 06  |f`.~.... .fj.fP.|
00000110  53 66 68 10 00 01 00 b4  42 8a 56 40 8b f4 cd 13  |Sfh.....B.V@....|
00000120  66 58 66 58 66 58 66 58  eb 33 66 3b 46 f8 72 03  |fXfXfXfX.3f;F.r.|
00000130  f9 eb 2a 66 33 d2 66 0f  b7 4e 18 66 f7 f1 fe c2  |..*f3.f..N.f....|
00000140  8a ca 66 8b d0 66 c1 ea  10 f7 76 1a 86 d6 8a 56  |..f..f....v....V|
00000150  40 8a e8 c0 e4 06 0a cc  b8 01 02 cd 13 66 61 0f  |@............fa.|
00000160  82 74 ff 81 c3 00 02 66  40 49 75 94 c3 42 4f 4f  |.t.....f@Iu..BOO|
00000170  54 4d 47 52 20 20 20 20  00 00 00 00 00 00 00 00  |TMGR    ........|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 0d 0a 45 72  |..............Er|
000001b0  72 2e 20 64 69 73 71 75  65 ff 0d 0a 50 72 65 73  |r. disque...Pres|
000001c0  73 65 7a 20 75 6e 65 20  74 6f 75 63 68 65 20 70  |sez une touche p|
000001d0  6f 75 72 20 72 65 64 82  6d 61 72 72 65 72 0d 0a  |our red.marrer..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  ac 01 ba 01 00 00 55 aa  |..............U.|
00000200

=================== hexdump -n512 -C /dev/sda4
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 88 10 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 2f 33 06 00 00 00 00  |........./3.....|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  4f 16 b1 1a 44 b1 1a 62  |........O...D..b|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 45 72 72 65  |............Erre|
00000190  75 72 20 6c 65 63 74 75  72 65 20 64 69 73 71 75  |ur lecture disqu|
000001a0  65 00 0d 0a 42 4f 4f 54  4d 47 52 20 63 6f 6d 70  |e...BOOTMGR comp|
000001b0  72 65 73 73 82 00 0d 0a  43 74 72 6c 2b 41 6c 74  |ress....Ctrl+Alt|
000001c0  2b 53 75 70 70 72 20 70  6f 75 72 20 72 65 64 82  |+Suppr pour red.|
000001d0  6d 61 72 72 65 72 0d 0a  00 73 74 61 72 74 0d 0a  |marrer...start..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a2 01 b6 01 00 00 55 aa  |..............U.|
00000200

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== df -Th:

Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda5      ext4      7.4G  2.9G  4.2G  41% /
udev           devtmpfs  993M   12K  993M   1% /dev
tmpfs          tmpfs     401M  744K  400M   1% /run
none           tmpfs     5.0M     0  5.0M   0% /run/lock
none           tmpfs    1002M   80K 1002M   1% /run/shm
/dev/sda2      vfat       96M   25M   72M  26% /boot/efi
/dev/sda1      fuseblk   300M  218M   83M  73% /mnt/boot-sav/sda1
/dev/sda4      fuseblk    50G   15G   35G  31% /mnt/boot-sav/sda4

=================== fdisk -l:

Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcf93be72

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   125829119    62914559+  ee  GPT


EFI détecté. Veuillez vérifier les options.
=================== Final advice in case of recommended repair
N'oubliez pas de régler votre BIOS pour qu'il amorce sur le fichier sda2/efi/.../grub*.efi !

=================== Default settings
Recommended-Repair
This setting would reinstall the grub-efi of sda5, using the following options:        sda2/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s   fix-windows-boot backup-and-rename-efi-files

=================== Settings chosen by the user
Boot-Info
This setting will not act on the MBR.



Aucun changement n'a été effectué sur cet ordinateur.

Dans la partie "sda5/boot/grub/grub.cfg" de ce Boot-Info, on voit bien (pour ceux qui connaissent déjà Ubuntu et qui savent lire un fichier de configuration de Grub) qu'il n'y a aucune entrée pour Windows. C'est la raison pour laquelle aucun menu Grub n'est affiché au démarrage : le menu Grub ne s'affiche obligatoirement que quand il y a plusieurs OS ; si Ubuntu se croit tout seul dans l'ordi (ce qui est malheureusement le cas), ça démarre direct sur le Ubuntu par défaut, c'est à dire la première ligne du menu invisible.

2) réparation en utilisation avancée de Boot-Repair :

ATTENTION : la réparation est à faire selon moi depuis la session normale du Ubuntu installé en non pas depuis une session live de Ubuntu. Je ne dis pas que c'est impossible de le faire depuis une session live mais dans le cas ici, ce serait crétin d'opérer depuis une session live alors que le Ubuntu installé est fonctionnel et disponible pour faire ça.

Il faut décocher la case "Sauvegarder et renommer les fichiers EFI" qui est précochée pour que ça donne ceci :
444999Capturedu20130530104826.png
Puis cliquer sur Appliquer pour que la réparation commence.

A l'issue de la réparation, on obtient l'URL du rapport Boot-Info. Je donne ci-dessous celui que j'ai obtenu ce matin après réparation :

 Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 12May2013]


============================= Boot Info Summary: ===============================

 => Windows 7/8/2012 is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /EFI/Boot/bootx64.efi /EFI/ubuntu/grubx64.efi 
                       /EFI/Microsoft/Boot/bootmgfw.efi 
                       /EFI/Microsoft/Boot/bootmgr.efi 
                       /EFI/Microsoft/Boot/memtest.efi

sda3: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8
    Boot files:        /bootmgr /Windows/System32/winload.exe

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 12.04.2 LTS 
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda6: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1   125,829,119   125,829,119  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048       616,447       614,400 Windows Recovery Environment (Windows)
/dev/sda2         616,448       821,247       204,800 EFI System partition
/dev/sda3         821,248     1,083,391       262,144 Microsoft Reserved Partition (Windows)
/dev/sda4       1,083,392   105,101,311   104,017,920 Data partition (Windows/Linux)
/dev/sda5     105,101,312   120,725,503    15,624,192 Data partition (Windows/Linux)
/dev/sda6     120,725,504   125,827,071     5,101,568 Swap partition (Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        1E42996842994605                       ntfs       Récupération
/dev/sda2        76A1-0C3C                              vfat       
/dev/sda4        621AB1441AB1164F                       ntfs       
/dev/sda5        5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf   ext4       
/dev/sda6        3b612111-f808-4085-a956-f51955edc9b2   swap       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda5        /                        ext4       (rw,errors=remount-ro)


=========================== sda5/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_gpt
  insmod ext2
  set root='(hd0,gpt5)'
  search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
  set locale_dir=($root)/boot/grub/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=10
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/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.5.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	linux	/boot/vmlinuz-3.5.0-23-generic root=UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.5.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	echo	'Loading Linux 3.5.0-23-generic ...'
	linux	/boot/vmlinuz-3.5.0-23-generic root=UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.5.0-23-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/25_custom ###

menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 76A1-0C3C
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root 76A1-0C3C
chainloader (${root})/EFI/Boot/bootx64.efi
}
### END /etc/grub.d/25_custom ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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    nodev,noexec,nosuid 0       0
# / was on /dev/sda5 during installation
UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
#UUID=76A1-0C3C  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda6 during installation
UUID=3b612111-f808-4085-a956-f51955edc9b2 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
UUID=76A1-0C3C	/boot/efi	vfat	defaults	0	1
--------------------------------------------------------------------------------

=================== sda5: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

  54.247528076 = 58.247839744   boot/grub/grub.cfg                             1
  51.367137909 = 55.155044352   boot/vmlinuz-3.5.0-23-generic                  1
  51.367137909 = 55.155044352   vmlinuz                                        1
  53.302570343 = 57.233199104   boot/initrd.img-3.5.0-23-generic               1
  53.302570343 = 57.233199104   initrd.img                                     1


ADDITIONAL INFORMATION :
=================== log of boot-repair 2013-05-30__10h46 ===================
boot-repair version : 3.199~ppa3~precise
boot-sav version : 3.199~ppa3~precise
glade2script version : 3.2.2~ppa45~precise
boot-sav-extra version : 3.199~ppa3~precise
boot-repair is executed in installed-session (Ubuntu 12.04.2 LTS, precise, Ubuntu, x86_64)
CPU op-mode(s):        32-bit, 64-bit
BOOT_IMAGE=/boot/vmlinuz-3.5.0-23-generic root=UUID=5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf ro quiet splash vt.handoff=7

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== os-prober:
/dev/sda5:L'OS actuellement utilisé - Ubuntu 12.04.2 LTS CurrentSession:linux

=================== blkid:
/dev/sda1: LABEL="RM-CM-)cupM-CM-)ration" UUID="1E42996842994605" TYPE="ntfs"
/dev/sda2: UUID="76A1-0C3C" TYPE="vfat"
/dev/sda4: UUID="621AB1441AB1164F" TYPE="ntfs"
/dev/sda5: UUID="5a2cb5f6-12f3-4ce0-9bd5-f77e62f087cf" TYPE="ext4"
/dev/sda6: UUID="3b612111-f808-4085-a956-f51955edc9b2" TYPE="swap"


1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.

Windows not detected by os-prober on sda4.

Attention : identifiant de table de partitions GPT (GUID) détecté sur « /dev/sda » ! L'utilitaire fdisk ne prend pas GPT en charge. Utilisez GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

ls: impossible d'accéder à /dev/disk/by-id: Aucun fichier ou dossier de ce type


=================== /etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"




=================== /etc/grub.d/ :
drwxr-xr-x  2 root root     4096 févr. 13 23:10 grub.d
total 60
-rwxr-xr-x 1 root root 6743 janv. 22 20:18 00_header
-rwxr-xr-x 1 root root 5522 janv. 22 20:05 05_debian_theme
-rwxr-xr-x 1 root root 7780 janv. 22 20:18 10_linux
-rwxr-xr-x 1 root root 6335 janv. 22 20:18 20_linux_xen
-rwxr-xr-x 1 root root 1588 nov.  27  2011 20_memtest86+
-rwxr-xr-x 1 root root 7603 janv. 22 20:18 30_os-prober
-rwxr-xr-x 1 root root 1388 janv. 22 20:18 30_uefi-firmware
-rwxr-xr-x 1 root root  214 janv. 22 20:18 40_custom
-rwxr-xr-x 1 root root   95 janv. 22 20:18 41_custom
-rw-r--r-- 1 root root  483 janv. 22 20:18 README


/boot/efi detected in the fstab of sda5: UUID=76A1-0C3C   (sda2)
Presence of EFI/Microsoft file detected: /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Presence of EFI/Boot file detected: /boot/efi/EFI/Boot/bootx64.efi
ls /sys/firmware/efi/vars : RTC-378d7b65-8da9-4773-b6e4-a47826a833e1,PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c,new_var,MTC-eb704011-1402-11d3-8e77-00a0c969723b,MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa,LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c,Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c,HDDP-fab7e9e1-39dd-4f2b-8408-e20e906cb6de,del_var,ConsoleOutMode-793d9786-44dc-4709-b57f-85b8e8fdbfd2,ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c,ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c,BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0005-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c,Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c,
Veuillez indiquer ce message à boot.repair@gmail.com
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot maybe enabled. (maybe sec-boot, Veuillez indiquer ce message à boot.repair@gmail.com)


=================== PARTITIONS & DISKS:
sda5	: sda,	not-sepboot,	grubenv-ok	grub2,	grub-efi ,	update-grub,	64,	with-boot,	is-os,	not--efi--part,	fstab-without-boot,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot,	apt-get,	grub-install,	with--usr,	fstab-without-usr,	not-sep-usr,	standard,	not-far,	.
sda1	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	no-os,	not--efi--part,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	/mnt/boot-sav/sda1.
sda2	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	no-os,	is-correct-EFI,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	/boot/efi.
sda4	: sda,	not-sepboot,	no-grubenv	nogrub,	no-docgrub,	no-update-grub,	32,	no-boot,	is-os,	not--efi--part,	part-has-no-fstab,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	not-far,	/mnt/boot-sav/sda4.

sda	: GPT,	no-BIOS_boot,	has-correctEFI, 	not-usb,	has-os,	2048 sectors * 512 bytes


=================== parted -l:

Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 64.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
1      1049kB  316MB   315MB   ntfs            Basic data partition          hidden, diag
2      316MB   420MB   105MB   fat32           EFI system partition          boot
3      420MB   555MB   134MB                   Microsoft reserved partition  msftres
4      555MB   53.8GB  53.3GB  ntfs            Basic data partition
5      53.8GB  61.8GB  8000MB  ext4
6      61.8GB  64.4GB  2612MB  linux-swap(v1)

=================== parted -lm:

BYT;
/dev/sda:64.4GB:scsi:512:512:gpt:VMware, VMware Virtual S;
1:1049kB:316MB:315MB:ntfs:Basic data partition:hidden, diag;
2:316MB:420MB:105MB:fat32:EFI system partition:boot;
3:420MB:555MB:134MB::Microsoft reserved partition:msftres;
4:555MB:53.8GB:53.3GB:ntfs:Basic data partition:;
5:53.8GB:61.8GB:8000MB:ext4::;
6:61.8GB:64.4GB:2612MB:linux-swap(v1)::;


=================== mount:
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda2 on /boot/efi type vfat (rw)
gvfs-fuse-daemon on /home/malbo/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=malbo)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda4 on /mnt/boot-sav/sda4 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


=================== ls:
/sys/block/fd0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  agpgart alarm ashmem autofs binder block bsg btrfs-control cdrom cdrw char console core cpu cpu_dma_latency disk dri dvd dvdrw ecryptfs fb0 fd fd0 full fuse hpet input kmsg log lp0 mapper mcelog mem net network_latency network_throughput null oldmem parport0 port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sg0 sg1 shm snapshot snd sr0 stderr stdin stdout uinput urandom vga_arbiter vhost-net zero
ls /dev/mapper:  control

=================== hexdump -n512 -C /dev/sda1
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 08 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 5f 09 00 00 00 00 00  |........._......|
00000030  00 64 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |.d..............|
00000040  f6 00 00 00 01 00 00 00  05 46 99 42 68 99 42 1e  |.........F.Bh.B.|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 45 72 72 65  |............Erre|
00000190  75 72 20 6c 65 63 74 75  72 65 20 64 69 73 71 75  |ur lecture disqu|
000001a0  65 00 0d 0a 42 4f 4f 54  4d 47 52 20 63 6f 6d 70  |e...BOOTMGR comp|
000001b0  72 65 73 73 82 00 0d 0a  43 74 72 6c 2b 41 6c 74  |ress....Ctrl+Alt|
000001c0  2b 53 75 70 70 72 20 70  6f 75 72 20 72 65 64 82  |+Suppr pour red.|
000001d0  6d 61 72 72 65 72 0d 0a  00 73 74 61 72 74 0d 0a  |marrer...start..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a2 01 b6 01 00 00 55 aa  |..............U.|
00000200
ls /boot/efi/efi : Boot
Microsoft
ubuntu  .Veuillez indiquer ce message à boot.repair@gmail.com

=================== hexdump -n512 -C /dev/sda2
00000000  eb 58 90 4d 53 44 4f 53  35 2e 30 00 02 02 fe 19  |.X.MSDOS5.0.....|
00000010  02 00 00 00 00 f8 00 00  3f 00 ff 00 00 68 09 00  |........?....h..|
00000020  00 20 03 00 01 03 00 00  00 00 00 00 02 00 00 00  |. ..............|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  80 00 29 3c 0c a1 76 4e  4f 20 4e 41 4d 45 20 20  |..)<..vNO NAME  |
00000050  20 20 46 41 54 33 32 20  20 20 33 c9 8e d1 bc f4  |  FAT32   3.....|
00000060  7b 8e c1 8e d9 bd 00 7c  88 56 40 88 4e 02 8a 56  |{......|.V@.N..V|
00000070  40 b4 41 bb aa 55 cd 13  72 10 81 fb 55 aa 75 0a  |@.A..U..r...U.u.|
00000080  f6 c1 01 74 05 fe 46 02  eb 2d 8a 56 40 b4 08 cd  |...t..F..-.V@...|
00000090  13 73 05 b9 ff ff 8a f1  66 0f b6 c6 40 66 0f b6  |.s......f...@f..|
000000a0  d1 80 e2 3f f7 e2 86 cd  c0 ed 06 41 66 0f b7 c9  |...?.......Af...|
000000b0  66 f7 e1 66 89 46 f8 83  7e 16 00 75 39 83 7e 2a  |f..f.F..~..u9.~*|
000000c0  00 77 33 66 8b 46 1c 66  83 c0 0c bb 00 80 b9 01  |.w3f.F.f........|
000000d0  00 e8 2c 00 e9 a8 03 a1  f8 7d 80 c4 7c 8b f0 ac  |..,......}..|...|
000000e0  84 c0 74 17 3c ff 74 09  b4 0e bb 07 00 cd 10 eb  |..t.<.t.........|
000000f0  ee a1 fa 7d eb e4 a1 7d  80 eb df 98 cd 16 cd 19  |...}...}........|
00000100  66 60 80 7e 02 00 0f 84  20 00 66 6a 00 66 50 06  |f`.~.... .fj.fP.|
00000110  53 66 68 10 00 01 00 b4  42 8a 56 40 8b f4 cd 13  |Sfh.....B.V@....|
00000120  66 58 66 58 66 58 66 58  eb 33 66 3b 46 f8 72 03  |fXfXfXfX.3f;F.r.|
00000130  f9 eb 2a 66 33 d2 66 0f  b7 4e 18 66 f7 f1 fe c2  |..*f3.f..N.f....|
00000140  8a ca 66 8b d0 66 c1 ea  10 f7 76 1a 86 d6 8a 56  |..f..f....v....V|
00000150  40 8a e8 c0 e4 06 0a cc  b8 01 02 cd 13 66 61 0f  |@............fa.|
00000160  82 74 ff 81 c3 00 02 66  40 49 75 94 c3 42 4f 4f  |.t.....f@Iu..BOO|
00000170  54 4d 47 52 20 20 20 20  00 00 00 00 00 00 00 00  |TMGR    ........|
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 0d 0a 45 72  |..............Er|
000001b0  72 2e 20 64 69 73 71 75  65 ff 0d 0a 50 72 65 73  |r. disque...Pres|
000001c0  73 65 7a 20 75 6e 65 20  74 6f 75 63 68 65 20 70  |sez une touche p|
000001d0  6f 75 72 20 72 65 64 82  6d 61 72 72 65 72 0d 0a  |our red.marrer..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  ac 01 ba 01 00 00 55 aa  |..............U.|
00000200

=================== hexdump -n512 -C /dev/sda4
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 88 10 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 2f 33 06 00 00 00 00  |........./3.....|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  4f 16 b1 1a 44 b1 1a 62  |........O...D..b|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 52 11 16  68 09 00 66 53 66 53 66  |h...hR..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  0a 13 b9 f6 0c fc f3 aa  e9 fe 01 90 90 66 60 1e  |.............f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a1 f6 01 e8 09 00  |...u...fa.......|
00000170  a1 fa 01 e8 03 00 f4 eb  fd 8b f0 ac 3c 00 74 09  |............<.t.|
00000180  b4 0e bb 07 00 cd 10 eb  f2 c3 0d 0a 45 72 72 65  |............Erre|
00000190  75 72 20 6c 65 63 74 75  72 65 20 64 69 73 71 75  |ur lecture disqu|
000001a0  65 00 0d 0a 42 4f 4f 54  4d 47 52 20 63 6f 6d 70  |e...BOOTMGR comp|
000001b0  72 65 73 73 82 00 0d 0a  43 74 72 6c 2b 41 6c 74  |ress....Ctrl+Alt|
000001c0  2b 53 75 70 70 72 20 70  6f 75 72 20 72 65 64 82  |+Suppr pour red.|
000001d0  6d 61 72 72 65 72 0d 0a  00 73 74 61 72 74 0d 0a  |marrer...start..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 8a 01  a2 01 b6 01 00 00 55 aa  |..............U.|
00000200

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


=================== df -Th:

Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda5      ext4      7.4G  2.9G  4.2G  41% /
udev           devtmpfs  993M   12K  993M   1% /dev
tmpfs          tmpfs     401M  744K  400M   1% /run
none           tmpfs     5.0M     0  5.0M   0% /run/lock
none           tmpfs    1002M   80K 1002M   1% /run/shm
/dev/sda2      vfat       96M   25M   72M  26% /boot/efi
/dev/sda1      fuseblk   300M  218M   83M  73% /mnt/boot-sav/sda1
/dev/sda4      fuseblk    50G   15G   35G  31% /mnt/boot-sav/sda4

=================== fdisk -l:

Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcf93be72

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   125829119    62914559+  ee  GPT


EFI détecté. Veuillez vérifier les options.

=================== Default settings
Recommended-Repair
This setting would reinstall the grub-efi of sda5, using the following options:        sda2/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s   fix-windows-boot backup-and-rename-efi-files

=================== Settings chosen by the user
Custom-Repair
This setting will reinstall the grub-efi of sda5, using the following options:        sda2/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s   fix-windows-boot


/boot/efi added in sda5/fstab
Quantity of real Windows: 1
Mount sda2 on /boot/efi
ls /boot/efi/efi : Boot
Microsoft
ubuntu  .Veuillez indiquer ce message à boot.repair@gmail.com
Unhide GRUB boot menu in sda5/etc/default/grub
grub-install (GRUB) 1.99-21ubuntu3.9,grub-install (GRUB) 1.

Reinstall the grub-efi of sda5
grub-install : BootCurrent: 0000
BootOrder: 0004,0001,0002,0003,0005
Boot0001* EFI VMware Virtual SCSI CDROM Drive (0.0)
Boot0002* EFI Network
Boot0003* EFI Internal Shell (Unsupported option)
Boot0004* Windows Boot Manager
Boot0005* EFI VMware Virtual SCSI Hard Drive (1.0)
BootCurrent: 0000
BootOrder: 0000,0004,0001,0002,0003,0005
Boot0001* EFI VMware Virtual SCSI CDROM Drive (0.0)
Boot0002* EFI Network
Boot0003* EFI Internal Shell (Unsupported option)
Boot0004* Windows Boot Manager
Boot0005* EFI VMware Virtual SCSI Hard Drive (1.0)
Boot0000* ubuntu
Installation finished. No error reported.
exit code of grub-install :0
(debug) beglsefi1 ubuntu/grubx64.efi ; ubuntu , /boot/efi .
ls /boot/efi/efi : Boot
Microsoft
ubuntu  .Veuillez indiquer ce message à boot.repair@gmail.com
Add /boot/efi efi entries in /etc/grub.d/25_custom
Adding custom /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Adding custom /boot/efi/EFI/Boot/bootx64.efi
sda2//boot/efi/EFI/Boot/bootx64.efi already added
sda2//boot/efi/EFI/Microsoft/Boot/bootmgfw.efi already added

update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-23-generic
Found initrd image: /boot/initrd.img-3.5.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Unhide GRUB boot menu in sda5/boot/grub/grub.cfg

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de régler votre BIOS pour qu'il amorce sur le fichier sda2/EFI/ubuntu/grubx64.efi !

Dans cet extrait, on peut constater que le fichier de configuration de Grub (grub.cfg) s'est enrichi de nouvelles entrées pour Windows :

### BEGIN /etc/grub.d/25_custom ###

menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 76A1-0C3C
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root 76A1-0C3C
chainloader (${root})/EFI/Boot/bootx64.efi
}
### END /etc/grub.d/25_custom ###

A savoir : les fichiers bootmgfw.efi et bootx64.efi n'ont pas été trafiqués par la réparation : ce sont les fichiers d'origine de l'installation Windows 8 alors que si on avait laissé cochée la case "Sauvegarder et renommer les fichiers EFI" de Boot-Repair, ces fichiers auraient été remplacés par des lanceurs pour Ubuntu (c'est ce qu'aurait fait la "Réparation recommandée" de Boot-Repair

- Au redémarrage de l'ordi après réparation :

Cette fois le menu Grub apparaît, équipé de ses deux nouvelles entrées pour Windows (on peut utiliser indifféremment l'une ou l'autre, ça donne le même démarrage normal de Windows 8) :
430001Capturedu20130530110134.png

Bon, et bien après ça, le démarrage par le menu Grub est fonctionnel pour démarrer aussi bien Ubuntu que Windows 8. Il est à noter que comme les fichiers de démarrage de Windows n'ont pas été trafiqués, le démarrage direct sur Windows 8 sans passer par Grub est normalement toujours fonctionnel, c'est à dire qu'en passant par le menu Boot du système UEFI (le nouveau Bios), on peut toujours sélectionner Windows et démarrer direct dessus. Le passage par Grub n'est qu'une possibilité comme je l'ai expliqué plus haut.

Dernière modification par malbo (Le 28/06/2013, à 06:45)

Hors ligne

#2 Le 30/05/2013, à 14:03

straet

Re : [Tuto] Install Ubuntu 12.04.2 en dual-boot avec Windows 8 préinstallé

Super boulot malbo. Clair et pédagogique.


1 - Portable Asus N76V (SSD 120Go - I7 3610QM - GFORCE GT650M - 8Go) : Seven 64 & Debian 8 & Mint 17.1 cinamon
2 - Fixe (Gigabyte H67MA-USB3 - I5-2500K - ATI HD6450 - HD Rack - 8Go) : Voyager 14.04 - Mac OS Lion - Win 8
3 - Imprimantes Canon Pixma MP560 & Epson S22
Merci à GNU/Linux qui me pousse à réfléchir et me permet d'être créatif à 60 ans.

Hors ligne

#3 Le 30/05/2013, à 14:51

malbo

Re : [Tuto] Install Ubuntu 12.04.2 en dual-boot avec Windows 8 préinstallé

@straet,
Merci. Mais comme tu as pu le lire dans mon préambule du post #1, normalement à la sortie de Ubuntu 12.04.3 (prévue en Aout 2013) les novices pourront installer Precise sans peine (on croise les doigts) dans un ordi préinstallé Windows 8. Et pour ceux qui considèrent comme indispensable de démarrer Windows en passant par le menu Grub, ce sera la cerise sur le gâteau parce que l'installateur fera tout le boulot et il n'y aura même pas besoin de recourir à Boot-repair. A titre d'info, j'ai pu vérifier sur la version en développement de Ubuntu 13.10 (petit nom : "Saucy") que l'installateur fait déjà ce que je viens de décrire. Donc ce n'est pas du pipeau, c'est déjà implémenté et en cours de validation (ma source est Bug #807801 et en particulier le commentaire #17

Dernière modification par malbo (Le 30/05/2013, à 15:12)

Hors ligne

#4 Le 27/06/2013, à 19:19

Geeky

Re : [Tuto] Install Ubuntu 12.04.2 en dual-boot avec Windows 8 préinstallé

Bonjour,
Normalement il faut aussi créer une parttion (/home ) en ext4  pour ne pas tout perdre à l'installation d'une nouvelle version .

Hors ligne

#5 Le 28/06/2013, à 05:32

malbo

Re : [Tuto] Install Ubuntu 12.04.2 en dual-boot avec Windows 8 préinstallé

Geeky,
Je pense avoir fait le nécessaire dans cette partie du post #1 :

- AVANT l'installation :
Il faut appliquer les consignes de la doc "Comment installer Ubuntu en cohabitation (double amorçage) avec Windows", ce qui implique une phase de "Repartitionnement de votre disque dur" afin de dégager un espace libre pour Ubuntu. Dans l'exemple d'installation ci-après, j'avais dégagé un espace libre de 10,6 Go en vue d'allouer 8 Go à la racine de Ubuntu et 2,6 Go à la swap. C'est un minimum. Si on a l'intention de stocker des documents dans une partition /home ou dans une partition de partage, il faut dégager énormément plus de place.

Pour mon cas personnel, dans une cohabitation Windows/Ubuntu, je n'utilise jamais de partition /home mais une partition de partage en NTFS. Mais certains utilisateurs, soucieux de cloisonner étanche entre Windows et Ubuntu, préfèrent créer une partition /home.

Pour ceux qui auront suivi ce tuto et qui souhaiteraient après coup créer une partition de partage en NTFS pour à la fois stocker et sécuriser* leurs données, cela peut se faire entièrement depuis Windows 8 avec l'aide de la doc pour ce qui est de faire maigrir le disque C: de Windows afin de dégager une zone non allouée de taille très importante puisque la partition de partage est sensée pouvoir accueillir tous les doc de Windows et Ubuntu. Quand c'est fait, toujours avec la gestion des disques de Windows 8, on peut créer dans la zone libérée la partition NTFS qui deviendra la partition de partage. Il est à noter que cette partition devra être accessible en lecture et écriture depuis Windows (c'est une fonction "de base" de Windows donc il n'y a rien à faire de plus côté Windows) et depuis Ubuntu : là ce n'est pas fait de base et il conviendra ultérieurement d'utiliser ntfs-config depuis Ubuntu pour y parvenir.

* je veux dire que la réinstallation de Windows 8, de même que la réinstallation de Ubuntu ne porteront pas atteinte à la partition de partage. C'est en ce sens que je parle de mise en sécurité. Parce que s'agissant des virus informatiques, la partition de partage n'est pas sure par principe puisque c'est une mise en commun de données : des virus pouvant attaquer Windows peuvent être introduits par Ubuntu dans le pot commun.

Dernière modification par malbo (Le 28/06/2013, à 07:09)

Hors ligne

#6 Le 23/02/2014, à 23:14

x59xnatcf

Re : [Tuto] Install Ubuntu 12.04.2 en dual-boot avec Windows 8 préinstallé

Bonsoir,
Voici mon boot info
http://paste.ubuntu.com/6983663/

Merci de m'aider pour mettre le choix Linux/Windows 8 au démarrage smile
Bonne soirée.

Hors ligne

#7 Le 24/02/2014, à 06:36

malbo

Re : [Tuto] Install Ubuntu 12.04.2 en dual-boot avec Windows 8 préinstallé

x59xnatcf,
Je te prie de créer une nouvelle discussion pour ton problème. Pour initier une nouvelle discussion, les indications sont là : http://doc.ubuntu-fr.org/tutoriel/howto … discussion
Dès le premier post, en plus du Boot-Info, tu donneras le nom du modèle de ton ordi (le nom commercial complet, genre "UX31A-R4003P" et pas seulement "UX31A") ainsi que son fabricant.
Puis tu posteras ici pour indiquer le lien vers cette nouvelle discussion comme ça je serai prévenu.

Hors ligne