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.

#26 Le 20/05/2014, à 13:27

Bougron

Re : [Résolu] GRUB et UBUNTU 14.04

maxire a écrit :

Tu peux utiliser grub~ pour recréer grub:

sudo cp /etc/default/grub~ /etc/default/grub

Puis nettoyage des entrées grub:

sudo rm -rv /boot/efi/EFI/grub
sudo efibootmgr -b 0004 -B

En prenant l'hypothèse que c'est toujours l'entrée boot0004 de EFI qui pointe sur grub, à toi de vérifier.
Au final:

sudo grub-install --recheck --debug /dev/sda
sudo update-grub

Voila qui est fait. C'était l'entrée boot0000 qui pointait sur grub.
Le dual-boot est parfait. Trois arrêts-relances pour tout vérifier.
Puis lancement de boot-repair  (que j'ai supprimé puis récupéré depuis le dépot officiel et non le document) qui me dit:
'Attention: ceci installera les paquets nécessaires depuis les dépots Ubuntu-13.10.
Veuillez sauvegarder vos données avant cette opération.'

Je choisis de créer le rapport bootinfo que voici:  http:/paste.ubuntu.com/7492520/
Je pense qu'on est dans la même situation qu'au 09/05/2014 post #28 de cette discussion http://forum.ubuntu-fr.org/viewtopic.php?id=1567941&p=2

Hors ligne

#27 Le 20/05/2014, à 14:03

maxire

Re : [Résolu] GRUB et UBUNTU 14.04

Ton boot-info:

Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 23Dec2013]


============================= 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/bootmgfw.efi /EFI/Boot/bootx64.efi 
                       /EFI/ubuntu/MokManager.efi /EFI/ubuntu/grubx64.efi 
                       /EFI/ubuntu/shimx64.efi 
                       /EFI/Microsoft/Boot/bootmgfw.efi 
                       /EFI/Microsoft/Boot/bootmgr.efi 
                       /EFI/Microsoft/Boot/bootx64.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:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

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

sda7: __________________________________________________________________________

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

sda8: __________________________________________________________________________

    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:        /bootmgr /Windows/System32/winload.exe

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 1,953,525,167 1,953,525,167  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048     2,099,199     2,097,152 Windows Recovery Environment (Windows)
/dev/sda2       2,099,200     2,631,679       532,480 EFI System partition
/dev/sda3       2,631,680     2,893,823       262,144 Microsoft Reserved Partition (Windows)
/dev/sda4       2,893,824 1,436,493,823 1,433,600,000 Data partition (Windows/Linux)
/dev/sda5   1,929,738,240 1,953,523,711    23,785,472 Windows Recovery Environment (Windows)
/dev/sda6   1,641,293,824 1,653,630,975    12,337,152 Swap partition (Linux)
/dev/sda7   1,653,630,976 1,929,738,239   276,107,264 Data partition (Linux)
/dev/sda8   1,436,493,824 1,641,293,823   204,800,000 Data partition (Windows/Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        666234DF6234B621                       ntfs       System
/dev/sda2        A838-0AC7                              vfat       DISKBOOT
/dev/sda4        B8F03ABEF03A8324                       ntfs       TI31141400A
/dev/sda5        5A703CFF703CE403                       ntfs       Recovery
/dev/sda6        2e3b7c4e-296c-4885-9e72-1e0c38eac171   swap       
/dev/sda7        e3f50e8d-646b-4ee0-8ce0-7c130361f0d2   ext4       Ubuntu
/dev/sda8        7AEC3462EC341AB9                       ntfs       WindowsEntreprise

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

Device           Mount_Point              Type       Options

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


=========================== sda7/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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
else
  search --no-floppy --fs-uuid --set=root e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e3f50e8d-646b-4ee0-8ce0-7c130361f0d2' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
	else
	  search --no-floppy --fs-uuid --set=root e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
	fi
	linux	/boot/vmlinuz-3.13.0-24-generic.efi.signed root=UUID=e3f50e8d-646b-4ee0-8ce0-7c130361f0d2 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.13.0-24-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-e3f50e8d-646b-4ee0-8ce0-7c130361f0d2' {
	menuentry 'Ubuntu, avec Linux 3.13.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-advanced-e3f50e8d-646b-4ee0-8ce0-7c130361f0d2' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
		else
		  search --no-floppy --fs-uuid --set=root e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
		fi
		echo	'Chargement de Linux 3.13.0-24-generic…'
		linux	/boot/vmlinuz-3.13.0-24-generic.efi.signed root=UUID=e3f50e8d-646b-4ee0-8ce0-7c130361f0d2 ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.13.0-24-generic
	}
	menuentry 'Ubuntu, with Linux 3.13.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-recovery-e3f50e8d-646b-4ee0-8ce0-7c130361f0d2' {
		recordfail
		load_video
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
		else
		  search --no-floppy --fs-uuid --set=root e3f50e8d-646b-4ee0-8ce0-7c130361f0d2
		fi
		echo	'Chargement de Linux 3.13.0-24-generic…'
		linux	/boot/vmlinuz-3.13.0-24-generic.efi.signed root=UUID=e3f50e8d-646b-4ee0-8ce0-7c130361f0d2 ro recovery nomodeset 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-3.13.0-24-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/30_os-prober ###
menuentry 'Windows Boot Manager (sur /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-A838-0AC7' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  A838-0AC7
	else
	  search --no-floppy --fs-uuid --set=root A838-0AC7
	fi
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
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 ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda7/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>
# / was on /dev/sda7 during installation
UUID=e3f50e8d-646b-4ee0-8ce0-7c130361f0d2 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
#UUID=A838-0AC7  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda6 during installation
UUID=2e3b7c4e-296c-4885-9e72-1e0c38eac171 none            swap    sw              0       0
UUID=A838-0AC7	/boot/efi	vfat	defaults	0	1
#
#ajout du 07/05/2014
tmpfs     tmp                    tmpfs  defaults,size=1g                         0 0
tmpfs     var/log                tmpfs  defaults,nosuid,noatime,mode=0755,size=5 0 0
tmpfs     var/cache/apt/archives tmpfs  defaults,size=4g                         0 0












--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)


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

cat: /tmp/BootInfo-9Whhyoz6/Tmp_Log: No such file or directory

ADDITIONAL INFORMATION :

Je note que 2 windows sont installés respectivement en /dev/sda4 et /dev/sda8, alors lequel est démarré avec grub?
J'imagine que Windows au démarrage te propose de choisir entre ces 2 windows.

Effectivement nous sommes dans la même situation que le 09 mai avec un boot-info incomplet.

Pour moi grub est réparé, c'est un problème résolu même si je ne comprends pas comment le paramétrage de grub a été cassé.
C'est impossible à savoir.

Je te conseille de rester dans cette situation, et si tu as un problème, interviens manuellement, tu sais maintenant comment démarrer et réparer ubuntu sans boot-repair (en éventuellement adaptant les commandes).

Dernière modification par maxire (Le 20/05/2014, à 14:04)


Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail

Hors ligne

#28 Le 20/05/2014, à 14:43

Bougron

Re : [Résolu] GRUB et UBUNTU 14.04

Lorsque j'ai installé, windows 8.1 version entreprise, il a détecté qu'il existait déja un windows 8.0 sur le disque (bien que l'O.S. soit encore en mauvais état).
Il a donc fabriqué un fichier (comme le grub) qui me propose de choisir entre diverses possibilités.
                       Windows 8.1 Enterprise Evaluation 
                       Windows 8
                       NeoSmart Linux
                       Neosmart Linux sans grub
                       Diagnostics mémoire Windows

Le grub me propose
                   Ubuntu
                   Options avancées pour ubuntu
                   Windows boot manager (sur/dev/sda2)
                   System setup

Pour l'instant, j'en reste là. Le rapport boot-info restera incomplet.
Je suis en train de rapatrier sur mon micro windows XP tous les logs de ce boot-info avant de faire un arrêt de ubuntu.

Dernière modification par Bougron (Le 20/05/2014, à 15:24)

Hors ligne

#29 Le 20/05/2014, à 14:54

maxire

Re : [Résolu] GRUB et UBUNTU 14.04

Le jour où tu supprimeras un des windows, je suis curieux de voir ce qui va se passer.
Peut-être rien.
En fait tu n'as plus besoin de boot-repair.

Salut.


Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail

Hors ligne