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 06/03/2014, à 14:13

mayladon

Suppression accidentelle Partition EFI sur Macbook Pro

Bonjour

J'ai récemment installé Ubuntu 12.04 sur un macbook Pro 6,2 en suivant les indications de rodsmith.

Ensuite j'ai eu pas mal de problème et j'ai essayé des tas d'indications sur divers forums pour que Ubuntu installe le menu grub et détecte parfaitement les logiciels propriétaires des cartes graphiques.
Par contre après tout çà, la machine reste bloquée  au démarrage sur l'écran noir (comme signalé dans plusieurs forums), juste après le menu grub et l'affichage du logo ubuntu.
Mais si je lance Ubuntu à partir du cd Super Grub2 je trouve un fichier grub.cfg dans /boot/grub qui permet de me connecter à ma session.
J'ai aussi remarqué Super Grub2 ne détecte aucun fichier grub installé.

J'ai donc pensé que le problème est lié au mode démarrage (Bios ou EFI) et j'ai suivi ce tuto UEFI.

 Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 31Jan2013]


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

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 
    294646144 of the same hard drive for core.img. core.img is at this 
    location and looks for (,gpt4)/grub on this drive.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Unknown
    Boot sector info:  According to the info in the boot sector, sda1 starts 
                       at sector 0. But according to the info from fdisk, 
                       sda1 starts at sector 40.
    Operating System:  
    Boot files:        /EFI/BOOT/bootx64.efi /EFI/ubuntu/grubx64.efi

sda2: __________________________________________________________________________

    File system:       hfsplus
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda3: __________________________________________________________________________

    File system:       hfsplus
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       reiserfs
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 12.04.4 LTS 
    Boot files:        /etc/fstab

sda6: __________________________________________________________________________

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

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
256 heads, 63 sectors/track, 60563 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1   976,773,167   976,773,167  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1              40       409,639       409,600 EFI System partition
/dev/sda2         409,640   293,378,383   292,968,744 Hierarchical File System Plus (HFS+) partition (Mac OS X)
/dev/sda3     293,378,384   294,646,143     1,267,760 Apple Boot partition (Mac OS X)
/dev/sda4     294,909,952   295,884,799       974,848 Data partition (Windows/Linux)
/dev/sda5     295,884,800   491,196,415   195,311,616 Data partition (Windows/Linux)
/dev/sda6     491,196,416   499,009,535     7,813,120 Swap partition (Linux)
/dev/sda7     499,009,536   781,459,455   282,449,920 Data partition (Windows/Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        70D6-1701                              vfat       EFI
/dev/sda2        db1b144f-5c1b-3f3e-9656-d7c1d53368d7   hfsplus    MACOS
/dev/sda3        61c0ff26-abf1-30e3-be95-f414393e3bd5   hfsplus    Recovery HD
/dev/sda4        6443cc85-3e90-464c-bef9-2bbd45ff990e   reiserfs   
/dev/sda5        1ff6c6b4-fd55-4d68-bd13-877024955a5f   ext4       
/dev/sda6        0efcf965-517e-4687-a7ba-c3e776204234   swap       
/dev/sda7        41215e1e-c179-44b8-9a09-84ef64f00efe   ext4       
/dev/sr0                                                iso9660    Boot-Repair-Disk 64bit

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

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sr0         /cdrom                   iso9660    (ro,noatime)


============================= sda4/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 1ff6c6b4-fd55-4d68-bd13-877024955a5f
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_gpt
  insmod reiserfs
  set root='(hd0,gpt4)'
  search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
  set locale_dir=($root)/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, with Linux 3.5.0-47-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_gpt
	insmod reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	linux	/vmlinuz-3.5.0-47-generic root=UUID=1ff6c6b4-fd55-4d68-bd13-877024955a5f ro   quiet splash $vt_handoff
	initrd	/initrd.img-3.5.0-47-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-47-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_gpt
	insmod reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	echo	'Loading Linux 3.5.0-47-generic ...'
	linux	/vmlinuz-3.5.0-47-generic root=UUID=1ff6c6b4-fd55-4d68-bd13-877024955a5f ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.5.0-47-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.5.0-46-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_gpt
	insmod reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	linux	/vmlinuz-3.5.0-46-generic root=UUID=1ff6c6b4-fd55-4d68-bd13-877024955a5f ro   quiet splash $vt_handoff
	initrd	/initrd.img-3.5.0-46-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-46-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_gpt
	insmod reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	echo	'Loading Linux 3.5.0-46-generic ...'
	linux	/vmlinuz-3.5.0-46-generic root=UUID=1ff6c6b4-fd55-4d68-bd13-877024955a5f ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.5.0-46-generic
}
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 reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	linux	/vmlinuz-3.5.0-23-generic root=UUID=1ff6c6b4-fd55-4d68-bd13-877024955a5f ro   quiet splash $vt_handoff
	initrd	/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 reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	echo	'Loading Linux 3.5.0-23-generic ...'
	linux	/vmlinuz-3.5.0-23-generic root=UUID=1ff6c6b4-fd55-4d68-bd13-877024955a5f ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/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 reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod reiserfs
	set root='(hd0,gpt4)'
	search --no-floppy --fs-uuid --set=root 6443cc85-3e90-464c-bef9-2bbd45ff990e
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Mac OS X (32-bit) (on /dev/sda2)" --class osx --class darwin --class os {
	insmod part_gpt
	insmod hfsplus
	set root='(hd0,gpt2)'
	search --no-floppy --fs-uuid --set=root 975127839d5de82a
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid 975127839d5de82a uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
           if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
              xnu_mkext /System/Library/Extensions.mkext
           else
              xnu_kextdir /System/Library/Extensions
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
menuentry "Mac OS X (64-bit) (on /dev/sda2)" --class osx --class darwin --class os {
	insmod part_gpt
	insmod hfsplus
	set root='(hd0,gpt2)'
	search --no-floppy --fs-uuid --set=root 975127839d5de82a
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid 975127839d5de82a uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
           if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
              xnu_mkext /System/Library/Extensions.mkext
           else
              xnu_kextdir /System/Library/Extensions
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
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 ###
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             grub/grub.cfg                                  2
            ?? = ??             vmlinuz-3.5.0-23-generic                       1
            ?? = ??             vmlinuz-3.5.0-46-generic                       1
            ?? = ??             vmlinuz-3.5.0-47-generic                       1
            ?? = ??             initrd.img-3.5.0-23-generic                    2
            ?? = ??             initrd.img-3.5.0-46-generic                    2
            ?? = ??             initrd.img-3.5.0-47-generic                    2

=============================== 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=1ff6c6b4-fd55-4d68-bd13-877024955a5f /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda4 during installation
#UUID=6443cc85-3e90-464c-bef9-2bbd45ff990e /boot           reiserfs notail          0       2
# /home was on /dev/sda7 during installation
UUID=41215e1e-c179-44b8-9a09-84ef64f00efe /home           ext4    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=0efcf965-517e-4687-a7ba-c3e776204234 none            swap    sw              0       0
UUID=6443cc85-3e90-464c-bef9-2bbd45ff990e	/boot	reiserfs	defaults	0	2
--------------------------------------------------------------------------------

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda1

00000000  eb 58 90 42 53 44 20 20  34 2e 34 00 02 01 20 00  |.X.BSD  4.4... .|
00000010  02 00 00 00 00 f0 00 00  20 00 10 00 00 00 00 00  |........ .......|
00000020  00 40 06 00 4f 0c 00 00  00 00 00 00 02 00 00 00  |.@..O...........|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 29 01 17 d6 70 45  46 49 20 20 20 20 20 20  |..)...pEFI      |
00000050  20 20 46 41 54 33 32 20  20 20 fa 31 c0 8e d0 bc  |  FAT32   .1....|
00000060  00 7c fb 8e d8 e8 00 00  5e 83 c6 19 bb 07 00 fc  |.|......^.......|
00000070  ac 84 c0 74 06 b4 0e cd  10 eb f5 30 e4 cd 16 cd  |...t.......0....|
00000080  19 0d 0a 4e 6f 6e 2d 73  79 73 74 65 6d 20 64 69  |...Non-system di|
00000090  73 6b 0d 0a 50 72 65 73  73 20 61 6e 79 20 6b 65  |sk..Press any ke|
000000a0  79 20 74 6f 20 72 65 62  6f 6f 74 0d 0a 00 00 00  |y to reboot.....|
000000b0  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  00 00 00 00 00 00 55 aa  |..............U.|
00000200


========= Devices which don't seem to have a corresponding hard drive: =========

sdb 

=============================== StdErr Messages: ===============================

File descriptor 8 (/proc/2682/mounts) leaked on lvscan invocation. Parent PID 15194: bash
  No volume groups found

ADDITIONAL INFORMATION :
=================== log of boot-repair 2014-03-06__07h25 ===================
boot-repair version : 3.198~ppa16~raring
boot-sav version : 3.198~ppa16~raring
glade2script version : 3.2.2~ppa45~raring
boot-sav-extra version : 3.198~ppa16~raring
File descriptor 8 (/proc/2682/mounts) leaked on lvs invocation. Parent PID 4286: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 64bit 24avr2013, raring, Ubuntu, x86_64)
ls: cannot access /home/usr/.config: No such file or directory
CPU op-mode(s):        32-bit, 64-bit
file=/cdrom/preseed/lubuntu.seed boot=casper initrd=/casper/initrd.lz noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal -- debian-installer/language=fr keyboard-configuration/layoutcode?=fr keyboard-configuration/variantcode?=oss
mount: warning: /mnt/boot-sav/sda2 seems to be mounted read-only.
mount: warning: /mnt/boot-sav/sda3 seems to be mounted read-only.

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


=================== os-prober:
/dev/sda2:Mac OS X:MacOSX:macosx
/dev/sda5:Ubuntu 12.04.4 LTS (12.04):Ubuntu:linux

=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat"
/dev/sda2: UUID="db1b144f-5c1b-3f3e-9656-d7c1d53368d7" LABEL="MACOS" TYPE="hfsplus"
/dev/sda3: UUID="61c0ff26-abf1-30e3-be95-f414393e3bd5" LABEL="Recovery HD" TYPE="hfsplus"
/dev/sda4: UUID="6443cc85-3e90-464c-bef9-2bbd45ff990e" TYPE="reiserfs"
/dev/sda5: UUID="1ff6c6b4-fd55-4d68-bd13-877024955a5f" TYPE="ext4"
/dev/sda6: UUID="0efcf965-517e-4687-a7ba-c3e776204234" TYPE="swap"
/dev/sda7: UUID="41215e1e-c179-44b8-9a09-84ef64f00efe" TYPE="ext4"
/dev/sr0: LABEL="Boot-Repair-Disk 64bit" TYPE="iso9660"


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

mkdir: cannot create directory ‘/mnt/boot-sav/sda2/boot-sav’: Read-only file system
sda2 is Read-only or full

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


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

Presence of EFI/Boot file detected: /mnt/boot-sav/sda1/EFI/Boot/bootx64.efi
Presence of MacEFI file detected: /mnt/boot-sav/sda1/EFI/APPLE/EXTENSIONS/Firmware.scap


=================== sda5/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"




=================== sda5/etc/grub.d/ :
drwxr-xr-x  2 root root    4096 févr. 25 19:33 grub.d
total 60
-rwxr-xr-x 1 root root 7806 déc.   6 10:06 00_header
-rwxr-xr-x 1 root root 5522 janv. 22  2013 05_debian_theme
-rwxr-xr-x 1 root root 7877 déc.   6 10:06 10_linux
-rwxr-xr-x 1 root root 6449 déc.   6 10:06 20_linux_xen
-rwxr-xr-x 1 root root 1588 nov.  27  2011 20_memtest86+
-rwxr-xr-x 1 root root 6675 déc.   6 10:06 30_os-prober
-rwxr-xr-x 1 root root 1388 janv. 22  2013 30_uefi-firmware
-rwxr-xr-x 1 root root  214 janv. 22  2013 40_custom
-rwxr-xr-x 1 root root   95 janv. 22  2013 41_custom
-rw-r--r-- 1 root root  483 janv. 22  2013 README


/boot detected in the fstab of sda5: UUID=6443cc85-3e90-464c-bef9-2bbd45ff990e  (sda4)
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, but it is not setup in EFI-mode for this live-session.
SecureBoot maybe enabled.


=================== PARTITIONS & DISKS:
sda1	: 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,	/mnt/boot-sav/sda1.
sda2	: 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,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	with--usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	/mnt/boot-sav/sda2.
sda3	: sda,	maybesepboot,	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,	no-recov-nor-hid,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	/mnt/boot-sav/sda3.
sda4	: sda,	is-sepboot,	grubenv-ok	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,	no-recov-nor-hid,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	/mnt/boot-sav/sda4.
sda5	: sda,	not-sepboot,	no-grubenv	grub2,	grub-pc grub-efi ,	update-grub,	64,	no-boot,	is-os,	not--efi--part,	fstab-has-goodBOOT,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot,	apt-get,	grub-install,	with--usr,	fstab-without-usr,	not-sep-usr,	standard,	farbios,	/mnt/boot-sav/sda5.
sda7	: sda,	maybesepboot,	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,	no-recov-nor-hid,	no-bmgr,	notwinboot,	nopakmgr,	nogrubinstall,	no---usr,	part-has-no-fstab,	not-sep-usr,	standard,	farbios,	/mnt/boot-sav/sda7.

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


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

Model: ATA HGST HTS545050A7 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End    Size    File system     Name                  Flags
1      20.5kB  210MB  210MB   fat32           EFI System Partition  boot
2      210MB   150GB  150GB   hfs+            MACOS
3      150GB   151GB  649MB   hfs+            Recovery HD
4      151GB   151GB  499MB   reiserfs
5      151GB   251GB  100GB   ext4
6      251GB   255GB  4000MB  linux-swap(v1)
7      255GB   400GB  145GB   ext4



                                                                          
Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.

                                                                          
Error: /dev/sr0: unrecognised disk label

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

BYT;
/dev/sda:500GB:scsi:512:4096:gpt:ATA HGST HTS545050A7;
1:20.5kB:210MB:210MB:fat32:EFI System Partition:boot;
2:210MB:150GB:150GB:hfs+:MACOS:;
3:150GB:151GB:649MB:hfs+:Recovery HD:;
4:151GB:151GB:499MB:reiserfs::;
5:151GB:251GB:100GB:ext4::;
6:251GB:255GB:4000MB:linux-swap(v1)::;
7:255GB:400GB:145GB:ext4::;


                                                                          
Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.

                                                                          
Error: /dev/sr0: unrecognised disk label


=================== mount:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
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)
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/cgroup type tmpfs (rw)
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)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
gvfsd-fuse on /run/user/lubuntu/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=lubuntu)
/dev/sda1 on /mnt/boot-sav/sda1 type vfat (rw)
/dev/sda2 on /mnt/boot-sav/sda2 type hfsplus (ro)
/dev/sda3 on /mnt/boot-sav/sda3 type hfsplus (ro)
/dev/sda4 on /mnt/boot-sav/sda4 type reiserfs (rw)
/dev/sda5 on /mnt/boot-sav/sda5 type ext4 (rw)
/dev/sda7 on /mnt/boot-sav/sda7 type ext4 (rw)


=================== ls:
/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 sda7 size slaves stat subsystem trace uevent
/sys/block/sdb (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/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):  alarm ashmem autofs binder block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency disk dvd dvdrw ecryptfs fd full fuse fw0 hidraw0 hidraw1 hidraw2 hpet input kmsg kvm log mapper mem net network_latency network_throughput null oldmem port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sdb sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout uinput urandom usb v4l vga_arbiter vhost-net video0 zero
ls /dev/mapper:  control
ls /mnt/boot-sav/sda1: BOOTLOG
EFI  . Veuillez indiquer ce message à boot.repair@gmail.com

=================== hexdump -n512 -C /dev/sda1
00000000  eb 58 90 42 53 44 20 20  34 2e 34 00 02 01 20 00  |.X.BSD  4.4... .|
00000010  02 00 00 00 00 f0 00 00  20 00 10 00 00 00 00 00  |........ .......|
00000020  00 40 06 00 4f 0c 00 00  00 00 00 00 02 00 00 00  |.@..O...........|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 29 01 17 d6 70 45  46 49 20 20 20 20 20 20  |..)...pEFI      |
00000050  20 20 46 41 54 33 32 20  20 20 fa 31 c0 8e d0 bc  |  FAT32   .1....|
00000060  00 7c fb 8e d8 e8 00 00  5e 83 c6 19 bb 07 00 fc  |.|......^.......|
00000070  ac 84 c0 74 06 b4 0e cd  10 eb f5 30 e4 cd 16 cd  |...t.......0....|
00000080  19 0d 0a 4e 6f 6e 2d 73  79 73 74 65 6d 20 64 69  |...Non-system di|
00000090  73 6b 0d 0a 50 72 65 73  73 20 61 6e 79 20 6b 65  |sk..Press any ke|
000000a0  79 20 74 6f 20 72 65 62  6f 6f 74 0d 0a 00 00 00  |y to reboot.....|
000000b0  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  00 00 00 00 00 00 55 aa  |..............U.|
00000200
ls /mnt/boot-sav/sda4: abi-3.5.0-23-generic
abi-3.5.0-46-generic
abi-3.5.0-47-generic
config-3.5.0-23-generic
config-3.5.0-46-generic
config-3.5.0-47-generic
efi
grub
initrd.img-3.5.0-23-generic
initrd.img-3.5.0-46-generic
initrd.img-3.5.0-47-generic
memtest86+.bin
memtest86+_multiboot.bin
System.map-3.5.0-23-generic
System.map-3.5.0-46-generic
System.map-3.5.0-47-generic
vmlinuz-3.5.0-23-generic
vmlinuz-3.5.0-46-generic
vmlinuz-3.5.0-47-generic  . Veuillez indiquer ce message à boot.repair@gmail.com

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
/cow           overlayfs  1.9G   19M  1.9G   1% /
udev           devtmpfs   1.9G   12K  1.9G   1% /dev
tmpfs          tmpfs      382M  844K  381M   1% /run
/dev/sr0       iso9660    508M  508M     0 100% /cdrom
/dev/loop0     squashfs   435M  435M     0 100% /rofs
none           tmpfs      4.0K     0  4.0K   0% /sys/fs/cgroup
tmpfs          tmpfs      1.9G  8.0K  1.9G   1% /tmp
none           tmpfs      5.0M     0  5.0M   0% /run/lock
none           tmpfs      1.9G     0  1.9G   0% /run/shm
none           tmpfs      100M   12K  100M   1% /run/user
/dev/sda1      vfat       197M   17M  181M   9% /mnt/boot-sav/sda1
/dev/sda2      hfsplus    140G   65G   76G  46% /mnt/boot-sav/sda2
/dev/sda3      hfsplus    620M  498M  122M  81% /mnt/boot-sav/sda3
/dev/sda4      reiserfs   476M  107M  370M  23% /mnt/boot-sav/sda4
/dev/sda5      ext4        92G  7.1G   80G   9% /mnt/boot-sav/sda5
/dev/sda7      ext4       133G  9.4G  117G   8% /mnt/boot-sav/sda7

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

Disk /dev/sda: 500.1 GB, 500107862016 bytes
256 heads, 63 sectors/track, 60563 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   976773167   488386583+  ee  GPT
Partition 1 does not start on physical sector boundary.


/boot détecté. Veuillez vérifier les options.

=================== Recommended repair
Recommended-Repair
This setting will reinstall the grub2 of sda5 into the PBR of sda5, using the following options:        sda4/boot,
Grub-efi will not be selected by default because: no-win-efi mac-os
Additional repair will be performed: unhide-bootmenu-10s


/boot added in sda5/fstab
Mount sda4 on /mnt/boot-sav/sda5/boot
Unhide GRUB boot menu in sda5/etc/default/grub
grub-install (GRUB) 1.99-21ubuntu3.14,grub-install (GRUB) 1.

Reinstall the GRUB of sda5 into the sda5 partition
grub-install --force /dev/sda5: Installation finished. No error reported.
exit code of grub-install /dev/sda5:0

chroot /mnt/boot-sav/sda5 update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-47-generic
Found initrd image: /boot/initrd.img-3.5.0-47-generic
Found linux image: /boot/vmlinuz-3.5.0-46-generic
Found initrd image: /boot/initrd.img-3.5.0-46-generic
Found linux image: /boot/vmlinuz-3.5.0-23-generic
Found initrd image: /boot/initrd.img-3.5.0-23-generic
Found memtest86+ image: /memtest86+.bin
Found Mac OS X on /dev/sda2
mount: warning: /mnt/boot-sav/sda2 seems to be mounted read-only.

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

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de mettre à jour votre chargeur d'amorçage principal !

Vous souhaiterez peut-être aussi installer Refind. (https://help.ubuntu.com/community/ubuntupreciseon2011imac)
Le démarrage de l'ordinateur a été correctement réparé.

Écrivez sur un papier l'URL suivante :
http://paste.ubuntu.com/7042902/

Si vous avez toujours des problèmes de démarrage, indiquez cette URL à :
boot.repair@gmail.com ou sur votre forum favori.

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de mettre à jour votre chargeur d'amorçage principal !

Suite à cette manipulation je me suis retrouvé avec plusieurs systèmes de démarrage dans le menu grub.
menu grub
J'ai donc pensé à supprimer la partition /dev/sda1 parce que j'ai eu l'impression que Super Grub2 avait recréer un autre. Sauf qu'après je n'arrive pas réinstaller cette partition à partir de OS X.

Maintenant lorsque je démarre directement à partir de la machine, elle bloque à l'écran noir. Par contre avec Super Grub 2 ça me signale:

Le disque dur /boot/efi n'est pas encore prêt ou présent. Continuer à attendre, ou à appuyer sur S pour ignorer le montage ou M pour la récupération manuelle. 

Si j'appuie sur S ma session s'ouvre normalement.

Je pense que j'ai un peu foutu le bazar sur ma machine donc j'aimerais savoir si je pourrais recevoir l'aide de quelqu'un pour la remettre au propre et pouvoir ouvrir directement ma session directement à la partir du menu Grub et non à partir de Super Grub2.

J'ai toujours utilisé Ubuntu sur PC mais avec un mac je pense que c'est un peu compliqué.

Hors ligne