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 01/06/2011, à 13:15

Erlen

installation ubuntu grub2 et partition fantome

Bonjour,

J'ai aidé une amie à installer ubuntu son disque était partitionnée de la facon suivante :
une partition fantome sauvegarde du système. sda1
une partition windows vista sda1
une partition data. sda3

Sous windows j'ai redimensionné la partition data et j'ai installé ubuntu dans la place vide.
Le problème c'est que quand on boute sur window (normale pas sans échec) le grub utilise la partition fantome de restauration (sda1) et non sda2)
Quand on boot sur windows en mode sans échec et que l'on demande démarrage normale la tout ce passe normalement.
comment résoudre le problème ?

Merci


Ubuntu 12.04 intel i5-2450m/intel HD graphic family/ Radeon HD 7470m

Hors ligne

#2 Le 01/06/2011, à 14:37

malbo

Re : installation ubuntu grub2 et partition fantome

Si tu réponds à cette demande ( bootinfoscript ) j'y verrai plus clair : http://forum.ubuntu-fr.org/viewtopic.php?pid=3534285

Hors ligne

#3 Le 01/06/2011, à 20:02

Erlen

Re : installation ubuntu grub2 et partition fantome

Oki merci il faudra attendre un petit peu vu que la c'est le pont mais j'essaierai la semaine prochaine.


Ubuntu 12.04 intel i5-2450m/intel HD graphic family/ Radeon HD 7470m

Hors ligne

#4 Le 07/06/2011, à 20:06

Erlen

Re : installation ubuntu grub2 et partition fantome

Voila pour l'information demandée :

                  Boot Info Script 0.60    from 17 May 2011


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

 => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector 
    1 of the same hard drive for core.img. core.img is at this location and 
    looks in partition 5 for /grub.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:   No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /BOOTMGR /BOOT/BCD

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:  

sda5: __________________________________________________________________________

    File system:       ext2
    Boot sector type:  -
    Boot sector info:  
    Operating System:  
    Boot files:        /grub/grub.cfg /grub/core.img

sda6: __________________________________________________________________________

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

sda7: __________________________________________________________________________

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

sda8: __________________________________________________________________________

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

sda9: __________________________________________________________________________

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

sda10: _________________________________________________________________________

    File system:       vfat
    Boot sector type:  -
    Boot sector info:   No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda11: _________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disque /dev/sda: 320.1 Go, 320072933376 octets
255 têtes, 63 secteurs/piste, 38913 cylindres, total 625142448 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1               2,048    20,973,567    20,971,520  27 Hidden NTFS (Recovery Environment)
/dev/sda2    *     20,973,568   323,055,615   302,082,048   7 NTFS / exFAT / HPFS
/dev/sda3         323,055,616   474,210,295   151,154,680   7 NTFS / exFAT / HPFS
/dev/sda4         474,210,302   625,141,759   150,931,458   5 Extended
/dev/sda5         474,210,304   475,209,727       999,424  83 Linux
/dev/sda6         475,211,776   494,741,503    19,529,728  83 Linux
/dev/sda7         494,743,552   500,600,831     5,857,280  83 Linux
/dev/sda8         500,602,880   520,132,607    19,529,728  83 Linux
/dev/sda9         520,134,656   598,257,663    78,123,008  83 Linux
/dev/sda10        598,259,712   621,135,871    22,876,160   b W95 FAT32
/dev/sda11        621,142,016   625,141,759     3,999,744  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        2812927812924AA8                       ntfs       PQSERVICE
/dev/sda10       1B3E-11B0                              vfat       
/dev/sda11       76d56bb6-4c66-4ebd-b6d5-2e6b9a7e5326   swap       
/dev/sda2        3E4475354474F0CF                       ntfs       ACER
/dev/sda3        CA2C52212C5208B9                       ntfs       DATA
/dev/sda5        cdc55998-6bc9-4b1e-84e3-ff0cf3c65186   ext2       
/dev/sda6        6d21139f-0c99-46a9-9651-0dcca770f1de   ext4       
/dev/sda7        a230391e-8a66-4cb7-80ec-37453f7203cf   ext4       
/dev/sda8        2711ec39-5137-4565-b2b6-ee3841a46d62   ext4       
/dev/sda9        87dd8568-f66e-4c07-ac7c-523d0421a974   ext4       

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

Device           Mount_Point              Type       Options

/dev/sda5        /boot                    ext2       (rw)
/dev/sda6        /                        ext4       (rw,errors=remount-ro)
/dev/sda7        /var                     ext4       (rw)
/dev/sda8        /usr/local               ext4       (rw)
/dev/sda9        /home                    ext4       (rw)


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

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  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
}
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 6d21139f-0c99-46a9-9651-0dcca770f1de
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
set locale_dir=($root)/grub/locale
set lang=fr
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    linux    /vmlinuz-2.6.32-21-generic root=UUID=6d21139f-0c99-46a9-9651-0dcca770f1de ro   quiet splash
    initrd    /initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic (mode de récupération)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    echo    'Chargement de Linux 2.6.32-21-generic ...'
    linux    /vmlinuz-2.6.32-21-generic root=UUID=6d21139f-0c99-46a9-9651-0dcca770f1de ro single 
    echo    'Chargement du disque mémoire initial...'
    initrd    /initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    linux16    /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    linux16    /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 2812927812924aa8
    chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 3e4475354474f0cf
    drivemap -s (hd0) ${root}
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 226.557207108 = 243.263948800  grub/core.img                                  2
 226.551439285 = 243.257755648  grub/grub.cfg                                  2
 226.149981499 = 242.826693632  initrd.img-2.6.32-21-generic                  34
 226.128771782 = 242.803919872  vmlinuz-2.6.32-21-generic                     17

=========================== sda6/boot/grub/grub.cfg: ===========================

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  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
}
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 6d21139f-0c99-46a9-9651-0dcca770f1de
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
set locale_dir=($root)/grub/locale
set lang=fr
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    linux    /vmlinuz-2.6.32-21-generic root=UUID=6d21139f-0c99-46a9-9651-0dcca770f1de ro   quiet splash
    initrd    /initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, avec Linux 2.6.32-21-generic (mode de récupération)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    echo    'Chargement de Linux 2.6.32-21-generic ...'
    linux    /vmlinuz-2.6.32-21-generic root=UUID=6d21139f-0c99-46a9-9651-0dcca770f1de ro single 
    echo    'Chargement du disque mémoire initial...'
    initrd    /initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    linux16    /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod ext2
    set root='(hd0,5)'
    search --no-floppy --fs-uuid --set cdc55998-6bc9-4b1e-84e3-ff0cf3c65186
    linux16    /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 2812927812924aa8
    chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 3e4475354474f0cf
    drivemap -s (hd0) ${root}
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda6 during installation
UUID=6d21139f-0c99-46a9-9651-0dcca770f1de /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda5 during installation
UUID=cdc55998-6bc9-4b1e-84e3-ff0cf3c65186 /boot           ext2    defaults        0       2
# /home was on /dev/sda10 during installation
UUID=87dd8568-f66e-4c07-ac7c-523d0421a974 /home           ext4    defaults        0       2
# /usr/local was on /dev/sda8 during installation
UUID=2711ec39-5137-4565-b2b6-ee3841a46d62 /usr/local      ext4    defaults        0       2
# /var was on /dev/sda7 during installation
UUID=a230391e-8a66-4cb7-80ec-37453f7203cf /var            ext4    defaults        0       2
# swap was on /dev/sda9 during installation
UUID=76d56bb6-4c66-4ebd-b6d5-2e6b9a7e5326 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 227.034746170 = 243.776702464  boot/grub/core.img                             2
 227.028978348 = 243.770509312  boot/grub/grub.cfg                             2
 226.627520561 = 243.339447296  boot/initrd.img-2.6.32-21-generic             34
 226.606310844 = 243.316673536  boot/vmlinuz-2.6.32-21-generic                17
 226.627520561 = 243.339447296  initrd.img                                    34
 226.606310844 = 243.316673536  vmlinuz                                       17

Ubuntu 12.04 intel i5-2450m/intel HD graphic family/ Radeon HD 7470m

Hors ligne

#5 Le 07/06/2011, à 21:38

malbo

Re : installation ubuntu grub2 et partition fantome

C'est vrai que Ubuntu a un défaut de détection de ton installation : il considère que ta partition sda2 est la partition de restauration comme on le voit dans cet extrait alors que c'est sda1 ta partition de restauration :

menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 3e4475354474f0cf
    drivemap -s (hd0) ${root}
    chainloader +1

Moi, je te conseille de laisser les choses en l'état en gardant à l'esprit qu'il faut choisir de démarrer sur l'entrée qui se termine par sda2

Hors ligne

#6 Le 08/06/2011, à 09:59

Erlen

Re : installation ubuntu grub2 et partition fantome

Si je devais faire une modification il faudrait faire quoi ?
Parce que le problème lors du boot sur le deuxième item c'est que windows demande tout le temps si on veut démarrer en mode sans échec, ce qui est pénible.

Dernière modification par Erlen (Le 08/06/2011, à 10:16)


Ubuntu 12.04 intel i5-2450m/intel HD graphic family/ Radeon HD 7470m

Hors ligne

#7 Le 08/06/2011, à 11:25

malbo

Re : installation ubuntu grub2 et partition fantome

Erlen a écrit :

le problème lors du boot sur le deuxième item c'est que windows demande tout le temps si on veut démarrer en mode sans échec, ce qui est pénible.

Si Windows te propose de démarrer en mode sans échec, ce n'est pas la faute de Ubuntu ni de grub, c'est un problème de Windows. Après démarrage sur Windows, demande une vérification du système de fichier car il est possible que tu aies un souci de ce côté là. Si ça ne résout pas, demande de l'aide sur un forum Windows.

Dernière modification par malbo (Le 08/06/2011, à 11:26)

Hors ligne