alex7532 | Bonjour,
j'ai un petit soucis de configuration de grub, je souhaiterais configurer un triple boot : ubuntu + mac + seven
Répartition des systèmes :
Disque 0 : Ubuntu 10.04 et mac OS
Disque 1+2 : Windows 7 (raid0 250go + 250go)
Selon les priorités de démarrage du bios je peux booter - soit sur grub et je peux choisir ubuntu ou mac - soit sur le raid et windows se lance
Pour m'éviter de devoir changer les priorités de bios à chaque démarrage je souhaiterais avoir directement le choix entre les 3 systèmes dans le grub.
/boot/grub/grub.cfg :
Code :
- #
- # 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,3)'
- search --no-floppy --fs-uuid --set 0ef14578-de9d-47da-8054-0860801405d7
- 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,3)'
- search --no-floppy --fs-uuid --set 0ef14578-de9d-47da-8054-0860801405d7
- set locale_dir=($root)/boot/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 10.04 LTS' --class ubuntu --class gnu-linux --class gnu --class os {
- recordfail
- insmod ext2
- set root='(hd0,3)'
- search --no-floppy --fs-uuid --set 0ef14578-de9d-47da-8054-0860801405d7
- linux /boot/vmlinuz-2.6.32-31-generic root=UUID=0ef14578-de9d-47da-8054-0860801405d7 ro quiet splash
- initrd /boot/initrd.img-2.6.32-31-generic
- }
- #menuentry 'Ubuntu, with Linux 2.6.32-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
- # recordfail
- # insmod ext2
- # set root='(hd0,3)'
- # search --no-floppy --fs-uuid --set 0ef14578-de9d-47da-8054-0860801405d7
- # echo 'Loading Linux 2.6.32-31-generic ...'
- # linux /boot/vmlinuz-2.6.32-31-generic root=UUID=0ef14578-de9d-47da-8054-0860801405d7 ro single
- # echo 'Loading initial ramdisk ...'
- # initrd /boot/initrd.img-2.6.32-31-generic
- #}
- ### END /etc/grub.d/10_linux ###
- ### BEGIN /etc/grub.d/20_memtest86+ ###
- #menuentry "Memory test (memtest86+)" {
- # insmod ext2
- # set root='(hd0,3)'
- # search --no-floppy --fs-uuid --set 0ef14578-de9d-47da-8054-0860801405d7
- # linux16 /boot/memtest86+.bin
- #}
- #menuentry "Memory test (memtest86+, serial console 115200)" {
- # insmod ext2
- # set root='(hd0,3)'
- # search --no-floppy --fs-uuid --set 0ef14578-de9d-47da-8054-0860801405d7
- # linux16 /boot/memtest86+.bin console=ttyS0,115200n8
- #}
- ### END /etc/grub.d/20_memtest86+ ###
- ### BEGIN /etc/grub.d/30_os-prober ###
- menuentry "HackOS X, chameleon" {
- insmod hfsplus
- set root=(hd0,2)
- multiboot /boot
- }
- #menuentry "Mac OS X (32-bit) (on /dev/sda2)" {
- # insmod hfsplus
- # set root='(hd0,2)'
- # search --no-floppy --fs-uuid --set 57dcb5a8f0fe65b4
- # insmod vbe
- # 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 57dcb5a8f0fe65b4 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)" {
- # insmod hfsplus
- # set root='(hd0,2)'
- # search --no-floppy --fs-uuid --set 57dcb5a8f0fe65b4
- # insmod vbe
- # 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 57dcb5a8f0fe65b4 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
- #}
- ### 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 ###
|
sudo fdisk -l :
Code :
- Disque /dev/sda: 251.0 Go, 251000193024 octets
- 255 têtes, 63 secteurs/piste, 30515 cylindres
- Unités = cylindres de 16065 * 512 = 8225280 octets
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Identifiant de disque : 0x2b3be507
- Le disque /dev/sda ne contient pas une table de partition valide
- Disque /dev/sdb: 250.1 Go, 250059350016 octets
- 255 têtes, 63 secteurs/piste, 30401 cylindres
- Unités = cylindres de 16065 * 512 = 8225280 octets
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Identifiant de disque : 0x0cb20cb2
- Périphérique Amorce Début Fin Blocs Id Système
- /dev/sdb1 * 1 13 102400 7 HPFS/NTFS
- La partition 1 ne se termine pas sur une frontière de cylindre.
- /dev/sdb2 13 60802 488286208 7 HPFS/NTFS
- ATTENTION : identifiant de table de partitions GPT (GUID) detecté sur "/dev/sdc" ! L'utilitaire fdisk ne supporte pas GPT. Utilisez GNU Parted.
- Disque /dev/sdc: 320.1 Go, 320072933376 octets
- 255 têtes, 63 secteurs/piste, 38913 cylindres
- Unités = cylindres de 16065 * 512 = 8225280 octets
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Identifiant de disque : 0x00000000
- Périphérique Amorce Début Fin Blocs Id Système
- /dev/sdc1 1 38914 312571223+ ee GPT
|
/etc/default/grub :
Code :
- # If you change this file, run 'update-grub' afterwards to update
- # /boot/grub/grub.cfg.
- 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 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_LINUX_RECOVERY="true"
- # Uncomment to get a beep at grub start
- #GRUB_INIT_TUNE="480 440 1"
|
infos supplémentaires :
1. gparted ne reconnait pas le raid
2. par contre le disque raid est bien monté, reconnu comme un seul disque ntfs et est directement accessible dans le poste de travail.
3. un update de grub ne résoud pas le problème.
Voila j'espère que je n'ai rien oublié
Je remercie tous ceux qui pourront m'aider ^^ |