OS par défaut avec GRUB2
Résolu
Mayot35
Messages postés
534
Date d'inscription
Statut
Membre
Dernière intervention
-
Mayot35 Messages postés 534 Date d'inscription Statut Membre Dernière intervention -
Mayot35 Messages postés 534 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Je suis sous Fedora 16 Verne, j'étais sous Ubuntu 11.04 mais on perd le charme de GNOME et on se rapporche dangereusement de Apple ...
Donc mon problème est le suivant, j'ai Windows 7 (pour l'ipod, la musique et les jeux) et Fedora (qui démarre par défaut), j'aimerai pouvoir mettre windows 7 en démarrage par défaut.
Je précise que c'est pas GRUB 1 !
_____________________________________________________________________________________________
le etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 quiet LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 KEYTABLE=fr-latin9"
_____________________________________________________________________________________________
le boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-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="${saved_entry}"
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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8f99e7af-ccf9-439d-b65e-6948d6222cd0
echo 'Loading Linux 3.1.0-7.fc16.x86_64 ...'
linux /vmlinuz-3.1.0-7.fc16.x86_64 root=UUID=bd65a086-2a4e-4e3a-921e-78a67f513d08 ro rd.md=0 rd.lvm=0 rd.dm=0 quiet LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 KEYTABLE=fr-latin9
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8f99e7af-ccf9-439d-b65e-6948d6222cd0
echo 'Loading Linux 3.1.0-7.fc16.x86_64 ...'
linux /vmlinuz-3.1.0-7.fc16.x86_64 root=UUID=bd65a086-2a4e-4e3a-921e-78a67f513d08 ro single rd.md=0 rd.lvm=0 rd.dm=0 quiet LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 KEYTABLE=fr-latin9
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.x86_64.img
}
### 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 7 (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root D892003E9200241A
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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
_____________________________________________________________________________________________
je vous demande ce que je dois modifier :)
Merci de votre aide.
<config>Linux / Firefox 7.0.1</config>
Je suis sous Fedora 16 Verne, j'étais sous Ubuntu 11.04 mais on perd le charme de GNOME et on se rapporche dangereusement de Apple ...
Donc mon problème est le suivant, j'ai Windows 7 (pour l'ipod, la musique et les jeux) et Fedora (qui démarre par défaut), j'aimerai pouvoir mettre windows 7 en démarrage par défaut.
Je précise que c'est pas GRUB 1 !
_____________________________________________________________________________________________
le etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 quiet LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 KEYTABLE=fr-latin9"
_____________________________________________________________________________________________
le boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-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="${saved_entry}"
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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8f99e7af-ccf9-439d-b65e-6948d6222cd0
echo 'Loading Linux 3.1.0-7.fc16.x86_64 ...'
linux /vmlinuz-3.1.0-7.fc16.x86_64 root=UUID=bd65a086-2a4e-4e3a-921e-78a67f513d08 ro rd.md=0 rd.lvm=0 rd.dm=0 quiet LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 KEYTABLE=fr-latin9
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 8f99e7af-ccf9-439d-b65e-6948d6222cd0
echo 'Loading Linux 3.1.0-7.fc16.x86_64 ...'
linux /vmlinuz-3.1.0-7.fc16.x86_64 root=UUID=bd65a086-2a4e-4e3a-921e-78a67f513d08 ro single rd.md=0 rd.lvm=0 rd.dm=0 quiet LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 KEYTABLE=fr-latin9
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.x86_64.img
}
### 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 7 (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root D892003E9200241A
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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
_____________________________________________________________________________________________
je vous demande ce que je dois modifier :)
Merci de votre aide.
<config>Linux / Firefox 7.0.1</config>
A voir également:
- OS par défaut avec GRUB2
- Mac os 15 - Accueil - MacOS
- Reinstaller mac os - Guide
- Ouvrir avec par défaut - Guide
- Dns par defaut - Guide
- Google page d'accueil par défaut - Guide
1 réponse
Salut,
OS sélectionné par défaut ;-))
OS sélectionné par défaut ;-))
Mayot35
Messages postés
534
Date d'inscription
Statut
Membre
Dernière intervention
60
Merci j'hésitais à le faire maintenant c'est bon ;)