#26 Le 23/04/2020, à 19:10
- bruno
Re : Grub en azerty
Non la syntaxe c'est : ckbcomp XKBLAYOUT XBDVARIANT, donc plutôt :
grub-kbdcomp -o /boot/grub/layouts/fr.gkb fr oss
ou pour l'ancienne disposition :
grub-kbdcomp -o /boot/grub/layouts/fr.gkb fr latin9
Mais cela ne change rien pour les caractères accentuées et autres.
#27 Le 23/04/2020, à 19:16
- kamaris
Re : Grub en azerty
Les deux syntaxes fonctionnent chez moi, et donnent le même résultat
$ sdiff -s <(ckbcomp fr-latin9) <(ckbcomp fr latin9)
$
Pour les accents, ça m'arrange les choses dans les tty sous arch (en mettant KEYMAP=fr-latin9 au lieu de fr dans /etc/vconsole.conf), mais pour grub je ne garantie pas effectivement : j'avais dû essayer, mais je ne sais plus…
Pour info :
$ sdiff -s <(ckbcomp fr-latin9) <(ckbcomp fr)
keycode 2 = U+0026 U+0031 dead_acute U+00b7 U+0026 U+0031 dea | keycode 2 = U+0026 U+0031 U+00b9 U+00a1 U+0026 U+0031 U+00b9
keycode 3 = +U+00e9 U+0032 U+007e +U+00c9 Control_asciicircum | keycode 3 = +U+00e9 U+0032 U+007e U+215b Control_asciicircum
keycode 4 = U+0022 U+0033 U+0023 U+00b8 U+0022 U+0033 U+0023 | keycode 4 = U+0022 U+0033 U+0023 U+00a3 U+0022 U+0033 U+0023
keycode 5 = U+0027 U+0034 U+007b U+0027 Escape U+0034 Escape | keycode 5 = U+0027 U+0034 U+007b U+0024 Escape U+0034 Escape
keycode 6 = U+0028 U+0035 U+005b U+00a8 Escape U+0035 Escape | keycode 6 = U+0028 U+0035 U+005b U+215c Escape U+0035 Escape
keycode 7 = U+002d U+0036 U+007c U+00a6 Control_backslash U+0 | keycode 7 = U+002d U+0036 U+007c U+215d Control_backslash U+0
keycode 8 = +U+00e8 U+0037 dead_grave +U+00c8 +U+00e8 U+0037 | keycode 8 = +U+00e8 U+0037 U+0060 U+215e nul U+0037 nul nul M
keycode 9 = U+005f U+0038 U+005c U+00af Control_underscore Co | keycode 9 = U+005f U+0038 U+005c U+2122 Control_underscore Co
keycode 10 = +U+00e7 U+0039 U+005e +U+00c7 Control_asciicircu | keycode 10 = +U+00e7 U+0039 U+005e U+00b1 Control_asciicircum
keycode 11 = +U+00e0 U+0030 U+0040 +U+00c0 nul U+0030 nul nul | keycode 11 = +U+00e0 U+0030 U+0040 U+00b0 nul U+0030 nul nul
keycode 12 = U+0029 U+00b0 U+005d +U+00ff Control_bracketrigh | keycode 12 = U+0029 U+00b0 U+005d U+00bf Control_bracketright
keycode 13 = U+003d U+002b U+007d U+00b0 Control_bracketright | keycode 13 = U+003d U+002b U+007d dead_ogonek Control_bracket
keycode 16 = +U+0061 +U+0041 +U+00e2 +U+00e4 Control_a Contro | keycode 16 = +U+0061 +U+0041 +U+00e6 +U+00c6 Control_a Contro
keycode 17 = +U+007a +U+005a +U+00e5 +U+00c5 Control_z Contro | keycode 17 = +U+007a +U+005a U+00ab U+003c Control_z Control_
keycode 19 = +U+0072 +U+0052 +U+00e7 +U+00c7 Control_r Contro | keycode 19 = +U+0072 +U+0052 U+00b6 U+00ae Control_r Control_
keycode 20 = +U+0074 +U+0054 +U+00fe +U+00de Control_t Contro | keycode 20 = +U+0074 +U+0054 +U+0167 +U+0166 Control_t Contro
keycode 21 = +U+0079 +U+0059 +U+00fd +U+00dd Control_y Contro | keycode 21 = +U+0079 +U+0059 U+2190 U+00a5 Control_y Control_
keycode 22 = +U+0075 +U+0055 +U+00fb +U+00fc Control_u Contro | keycode 22 = +U+0075 +U+0055 U+2193 U+2191 Control_u Control_
keycode 23 = +U+0069 +U+0049 +U+00ee +U+00ef Tab Tab Tab Tab | keycode 23 = +U+0069 +U+0049 U+2192 +U+0131 Tab Tab Tab Tab M
keycode 24 = +U+006f +U+004f +U+00f4 +U+00f6 Control_o Contro | keycode 24 = +U+006f +U+004f +U+00f8 +U+00d8 Control_o Contro
keycode 25 = +U+0070 +U+0050 U+00b6 U+0060 Control_p Control_ | keycode 25 = +U+0070 +U+0050 +U+00fe +U+00de Control_p Contro
keycode 26 = dead_circumflex dead_diaeresis dead_tilde U+0027 | keycode 26 = dead_circumflex dead_diaeresis dead_diaeresis U+
keycode 27 = U+0024 U+00a3 +U+00ea +U+00eb U+0024 U+00a3 +U+0 | keycode 27 = U+0024 U+00a3 U+00a4 U+005f U+0024 Control_under
keycode 30 = +U+0071 +U+0051 +U+00c2 +U+00c4 Control_q Contro | keycode 30 = +U+0071 +U+0051 U+0040 +U+03a9 Control_q Control
keycode 31 = +U+0073 +U+0053 +U+00f8 +U+00d8 Control_s Contro | keycode 31 = +U+0073 +U+0053 +U+00df U+00a7 Control_s Control
keycode 32 = +U+0064 +U+0044 +U+00ca +U+00cb Control_d Contro | keycode 32 = +U+0064 +U+0044 +U+00f0 +U+00d0 Control_d Contro
keycode 33 = +U+0066 +U+0046 U+00b1 +U+00aa Control_f Control | keycode 33 = +U+0066 +U+0046 +U+0111 +U+00aa Control_f Contro
keycode 34 = +U+0067 +U+0047 +U+00e6 +U+00c6 Control_g Contro | keycode 34 = +U+0067 +U+0047 +U+014b +U+014a Control_g Contro
keycode 35 = +U+0068 +U+0048 +U+00f0 +U+00d0 BackSpace BackSp | keycode 35 = +U+0068 +U+0048 +U+0127 +U+0126 BackSpace BackSp
keycode 36 = +U+006a +U+004a +U+00db +U+00dc Linefeed Linefee | keycode 36 = +U+006a +U+004a U+0309 U+031b Linefeed Linefeed
keycode 37 = +U+006b +U+004b +U+00ce +U+00cf Control_k Contro | keycode 37 = +U+006b +U+004b +U+0138 U+0026 Control_k Control
keycode 38 = +U+006c +U+004c +U+00d4 +U+00d6 Control_l Contro | keycode 38 = +U+006c +U+004c +U+0142 +U+0141 Control_l Contro
keycode 39 = +U+006d +U+004d U+00b9 +U+00ba Return Return Ret | keycode 39 = +U+006d +U+004d +U+00b5 +U+00ba Return Return Re
keycode 40 = +U+00f9 U+0025 U+00b2 +U+00d9 +U+00f9 U+0025 U+0 | keycode 40 = +U+00f9 U+0025 dead_circumflex dead_caron +U+00f
keycode 41 = +U+0153 +U+0152 U+201c U+201d +U+0153 +U+0152 U+ | keycode 41 = U+00b2 U+007e U+00ac U+00ac Control_asciicircum
keycode 43 = U+002a +U+00b5 U+00b3 U+00a5 U+002a +U+00b5 U+00 | keycode 43 = U+002a +U+00b5 dead_grave dead_breve U+002a +U+0
keycode 44 = +U+0077 +U+0057 U+00ab U+003c Control_w Control_ | keycode 44 = +U+0077 +U+0057 +U+0142 +U+0141 Control_w Contro
keycode 46 = +U+0063 +U+0043 U+00a9 U+00a9 Control_c Control_ | keycode 46 = +U+0063 +U+0043 U+00a2 U+00a9 Control_c Control_
keycode 47 = +U+0076 +U+0056 U+00ae U+2018 Control_v Control_ | keycode 47 = +U+0076 +U+0056 U+201c U+2018 Control_v Control_
keycode 48 = +U+0062 +U+0042 +U+00df +U+1e9e Control_b Contro | keycode 48 = +U+0062 +U+0042 U+201d U+2019 Control_b Control_
keycode 49 = +U+006e +U+004e U+00ac +U+004e Control_n Control | keycode 49 = +U+006e +U+004e +U+006e +U+004e Control_n Contro
keycode 50 = U+002c U+003f U+00bf +U+00ba Delete Delete U+00b | keycode 50 = U+002c U+003f dead_acute dead_doubleacute Delete
keycode 51 = U+003b U+002e U+00d7 U+00d7 Compose Compose U+00 | keycode 51 = U+003b U+002e U+2500 U+00d7 Compose Compose U+25
keycode 52 = U+003a U+002f U+00f7 U+00f7 U+003a U+002f U+00f7 | keycode 52 = U+003a U+002f U+00b7 U+00f7 U+003a U+002f U+00b7
keycode 53 = U+0021 U+00a7 U+00a1 U+002e U+0021 Compose Compo | keycode 53 = U+0021 U+00a7 U+0323 U+002e U+0021 Compose Compo
keycode 57 = U+0020 U+0020 U+00a0 U+00a0 nul nul nul nul Meta | keycode 57 = U+0020 U+0020 U+0020 U+0020 nul nul nul nul Meta
$
Dernière modification par kamaris (Le 23/04/2020, à 19:23)
Hors ligne
#28 Le 23/04/2020, à 20:07
- giovanna89
Re : Grub en azerty
Alors en voilà une partie :
my@sony:~$ ls -l /boot/grub/layouts
total 4
-rw-r--r-- 1 root root 2572 avril 22 16:07 fr.gkb
my@sony:~$ df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev 1,9G 0 1,9G 0% /dev
tmpfs 394M 1,5M 393M 1% /run
/dev/mapper/ubuntu--vg-root 116G 49G 61G 45% /
tmpfs 2,0G 36M 1,9G 2% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 2,0G 0 2,0G 0% /sys/fs/cgroup
/dev/sda1 704M 247M 407M 38% /boot
tmpfs 8,0G 16K 8,0G 1% /tmp
tmpfs 394M 32K 394M 1% /run/user/1000
/dev/mmcblk0p1 15G 4,1G 11G 28% /media/my/1EB0-C96C
my@sony:~$
Dernière modification par giovanna89 (Le 23/04/2020, à 20:07)
Hors ligne
#29 Le 23/04/2020, à 22:34
- giovanna89
Re : Grub en azerty
Euh non…
Normalement la partition de boot est montée sur /boot
Non, ce que j'ai dit, c'est que j'ai un dossier "boot" sur la racine de ma partition principale (chiffrée) qui est l'image de ma partition /boot
Quand je suis sur mon liveCD, j'ai renommé le mauvais "grub.cfg" en "old3.grub.cfg". Une fois que j'ai pu me reconnecter sur ma machine réelle, ce fichier "old3.grub.cfg" était présent dans le dossier /boot.
grub.cfg plutôt.
exacte c'est ce fichier
Hors ligne
#30 Le 23/04/2020, à 22:36
- giovanna89
Re : Grub en azerty
Voici le contenu du dossier /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# 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.
# Clavier fr
keymap $prefix/layouts/fr.gkb
Hors ligne
#31 Le 23/04/2020, à 22:54
- giovanna89
Re : Grub en azerty
Voilà le mauvais 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
}
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
if loadfont /grub/fonts/UbuntuMono16.pf2 ; then
set gfxmode=1280x800
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_input at_keyboard
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
insmod gfxmenu
insmod png
set theme=($root)/grub/themes/ubuntu/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
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
### 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=1
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 18.04' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
initrd /initrd.img-5.3.0-46-generic
}
submenu 'Options avancées pour Ubuntu 18.04' $menuentry_id_option 'gnulinux-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
menuentry 'Ubuntu 18.04, avec Linux 5.3.0-46-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-46-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-46-generic…'
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-46-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.3.0-46-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-46-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root 6eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-46-generic…'
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-46-generic
}
menuentry 'Ubuntu 18.04, avec Linux 5.3.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-45-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-45-generic…'
linux /vmlinuz-5.3.0-45-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-45-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.3.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-45-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-45-generic…'
linux /vmlinuz-5.3.0-45-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-45-generic
}
menuentry 'Ubuntu 18.04, avec Linux 5.0.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.0.0-32-generic…'
linux /vmlinuz-5.0.0-32-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.0.0-32-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.0.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.0.0-32-generic…'
linux /vmlinuz-5.0.0-32-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.0.0-32-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_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 62d2a5ed-7550-4172-bb63-b8751b13b700
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
knetbsd /memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 62d2a5ed-7550-4172-bb63-b8751b13b700
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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.
# Clavier fr
keymap $prefix/layouts/fr.gkb
### 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 ###
Dernière modification par bruno (Le 24/04/2020, à 07:27)
Hors ligne
#32 Le 24/04/2020, à 07:33
- bruno
Re : Grub en azerty
Je ne vois rien d'anormal concernant GRU lui-même si ce n'est qu'il manque la ligne :
insmod keylayouts
mais cela ne devrait pas bloquer le démarrage.
Pour le dossier /boot ce n'est pas une copie mais le point de montage de ta partition de boot. / est le point de montage de ta partition chiffrée et dans / tu peux avoir d'autres point de montage pour d'autres partitions, comme /boot, ou /home, ou /srv. Autrement dit ce que tu vois dans un gestionnaire de fichiers ou en ligne de commande ne montre pas les partitions mais uniquement l’organisation des fichiers.
#33 Le 24/04/2020, à 09:01
- giovanna89
Re : Grub en azerty
Je tourne avec le clavier français (variante, Latin-9 uniquement) une fois le PC lancé.
Est-ce que ça peut gêner ?
Faut-il que je rajoute
insmod keylayouts
?
Hors ligne
#34 Le 24/04/2020, à 09:10
- bruno
Re : Grub en azerty
Non les dispositions du clavier dans GRUB et dans le système sont totalement indépendantes.
Et oui il faut l'ajouter sinon le module GRUB en charge de la disposition du clavier ne sera pas chargé.
Est-ce que tu peux poster le grub.cfg qui fonctionne ?
#35 Le 24/04/2020, à 10:06
- giovanna89
Re : Grub en azerty
Je viens de relire les post précédents :
A ma question :
J'enlève
insmod keylayouts
à laquelle tu as répondu :
Non tu modifies juste cette ligne de /etc/grub.d/40_custom :
keymap $prefix/layouts/fr.gkb
et tu liasse le reste.
J'ai compris de travers. Je l'ai enlevé au lieu de le laisser.
Je ré essai et vous tien au courant.
Hors ligne
#36 Le 24/04/2020, à 10:46
- giovanna89
Re : Grub en azerty
Cela n'a pas fonctionné. Je vous poste le fichier dès que possible
Hors ligne
#37 Le 24/04/2020, à 11:15
- giovanna89
Re : Grub en azerty
voilà le grub.cfg qui fonctionne :
#
# 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
}
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
if loadfont /grub/fonts/UbuntuMono16.pf2 ; then
set gfxmode=1280x800
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
insmod gfxmenu
insmod png
set theme=($root)/grub/themes/ubuntu/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
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
### 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=1
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 18.04' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
initrd /initrd.img-5.3.0-46-generic
}
submenu 'Options avancées pour Ubuntu 18.04' $menuentry_id_option 'gnulinux-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
menuentry 'Ubuntu 18.04, avec Linux 5.3.0-46-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-46-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-46-generic…'
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-46-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.3.0-46-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-46-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-46-generic…'
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-46-generic
}
menuentry 'Ubuntu 18.04, avec Linux 5.3.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-45-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-45-generic…'
linux /vmlinuz-5.3.0-45-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-45-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.3.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-45-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-45-generic…'
linux /vmlinuz-5.3.0-45-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-45-generic
}
menuentry 'Ubuntu 18.04, avec Linux 5.0.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.0.0-32-generic…'
linux /vmlinuz-5.0.0-32-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.0.0-32-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.0.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.0.0-32-generic…'
linux /vmlinuz-5.0.0-32-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.0.0-32-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_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
knetbsd /memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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.
# Clavier fr
#insmod keylayouts
#keymap $prefix/layouts/fr.gkb
### 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 ###
Hors ligne
#38 Le 24/04/2020, à 11:16
- giovanna89
Re : Grub en azerty
Voilà le dernier grub.cfg que j'ai généré :
#
# 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
}
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
if loadfont /grub/fonts/UbuntuMono16.pf2 ; then
set gfxmode=1280x800
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_input at_keyboard
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
insmod gfxmenu
insmod png
set theme=($root)/grub/themes/ubuntu/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
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
### 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=1
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 18.04' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
initrd /initrd.img-5.3.0-46-generic
}
submenu 'Options avancées pour Ubuntu 18.04' $menuentry_id_option 'gnulinux-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
menuentry 'Ubuntu 18.04, avec Linux 5.3.0-46-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-46-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-46-generic…'
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-46-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.3.0-46-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-46-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-46-generic…'
linux /vmlinuz-5.3.0-46-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-46-generic
}
menuentry 'Ubuntu 18.04, avec Linux 5.3.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-45-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-45-generic…'
linux /vmlinuz-5.3.0-45-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-45-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.3.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-45-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.3.0-45-generic…'
linux /vmlinuz-5.3.0-45-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.3.0-45-generic
}
menuentry 'Ubuntu 18.04, avec Linux 5.0.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-advanced-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.0.0-32-generic…'
linux /vmlinuz-5.0.0-32-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash zswap.enabled=1 $vt_handoff
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.0.0-32-generic
}
menuentry 'Ubuntu 18.04, with Linux 5.0.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.0-32-generic-recovery-876bf1e9-da76-445c-a8d8-f548db99b58a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
echo 'Chargement de Linux 5.0.0-32-generic…'
linux /vmlinuz-5.0.0-32-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset
echo 'Chargement du disque mémoire initial…'
initrd /initrd.img-5.0.0-32-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_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
knetbsd /memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 eg54h1sh-5378-3864-cc33-hks37fgdg740
else
search --no-floppy --fs-uuid --set=root eg54h1sh-5378-3864-cc33-hks37fgdg740
fi
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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.
# Clavier fr
insmod keylayouts
keymap $prefix/layouts/fr.gkb
### 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 ###
Hors ligne
#39 Le 24/04/2020, à 11:18
- giovanna89
Re : Grub en azerty
Je précise que quand je suis sur cette page noire, je ne peux même pas faire un ctrl+alt+suppr pour redémarrer le PC. Je suis obligé de l'éteindre brusquement en restant appuyé sur le bouton power
Hors ligne
#40 Le 24/04/2020, à 11:24
- ylag
Re : Grub en azerty
Bonjour,
Sous toute réserve, si on essaie en donnant le chemin absolu /boot/grub/layouts/fr.gkb dans /etc/grub.d/40_custom:
# Clavier fr
insmod keylayouts
keymap /boot/grub/layouts/fr.gkb
?
Hors ligne
#41 Le 24/04/2020, à 11:30
- giovanna89
Re : Grub en azerty
Je ne peux plus modifier, mais mon post 38 est le dernier mauvais grub.cfg
Ok j'essaie
Hors ligne
#42 Le 24/04/2020, à 11:35
- ylag
Re : Grub en azerty
Re,
Si pas déjà tenté, peut-être aussi essayer avec cette syntaxe:
# Clavier fr
insmod keylayouts
keymap fr
...c'est ce que préconise la doc citée dans ton commentaire #1.
A+
Dernière modification par ylag (Le 24/04/2020, à 11:36)
Hors ligne
#43 Le 24/04/2020, à 11:50
- giovanna89
Re : Grub en azerty
Au commencement, j'ai tout fais comme dans la doc
Hors ligne
#44 Le 24/04/2020, à 11:57
- giovanna89
Re : Grub en azerty
Bonjour,
Sous toute réserve, si on essaie en donnant le chemin absolu /boot/grub/layouts/fr.gkb dans /etc/grub.d/40_custom:
# Clavier fr insmod keylayouts keymap /boot/grub/layouts/fr.gkb
?
ne fonctionne pas non plus
Hors ligne
#45 Le 24/04/2020, à 12:01
- bruno
Re : Grub en azerty
À tout hasard :
ls -l /boot/grub/i386-pc/at_keyboard.mod
ls -l /boot/grub/i386-pc/keylayouts.mod
Et le contenu de /etc/default/grub
#46 Le 24/04/2020, à 12:05
- maxire
Re : Grub en azerty
Je crois je j'ai ou nous avons mal évalué le problème, modifier un clavier ne peut pas provoquer l'affichage d'un écran noir, c'est autre chose.
Seul le contenu du grub.cfg fonctionnel devrait nous permettre d'y voir plus clair, comme demandé par bruno.
Pour l'instant pas la peine de tenter quoi que ce soit tant que nous ne comprenons pas pourquoi la génération de grub.cfg donne un grub non fonctionnel.
giovanna89, lorque tu écris cela ne fonctionne pas, c'est bien toujours un affichage noir que tu obtiens ?
Est-il possible d'utiliser le clavier ?
Comment finis-tu par démarrer le système, via un live cd/usb ou autre chose ?
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#47 Le 24/04/2020, à 12:13
- bruno
Re : Grub en azerty
@maxire : entièrement d'accord. Je ne vois aucune différence entre les deux grub.cfg en #37 et #38, si ce n'est les lignes commentées concernant le clavier.
#48 Le 24/04/2020, à 12:37
- maxire
Re : Grub en azerty
@bruno, giovanna89 s'est trompée en nous fournissant le grub.cfg en #38, elle le précise en #41.
@giovanna89, je récapitule nos demandes d'information :
- le grub.cfg fonctionnel
- le contenu de /etc/default/grub
et en question subsidiaire, comment le grub.cfg fonctionnel a-t-il été créé ?
L'as-tu généré toi-même?
Est-ce celui datant de l'installation initiale du système ou une copie provenant de je ne sais où ?
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#49 Le 24/04/2020, à 13:38
- giovanna89
Re : Grub en azerty
Alors :
Le grub que j'ai en sauvegarde et qui fonctionne a été donné en #37
L'avant dernier grub qui n'a pas fonctionné a été donné en #38 (suite au post #35 où je me suis aperçu que j'avais enlevé par erreur "insmod keylayouts")
Voici le retour des commandes demandées :
my@sony:~$ ls -l /boot/grub/i386-pc/at_keyboard.mod
-rw-r--r-- 1 root root 4284 avril 21 19:20 /boot/grub/i386-pc/at_keyboard.mod
my@sony:~$ ls -l /boot/grub/i386-pc/keylayouts.mod
-rw-r--r-- 1 root root 5008 avril 21 19:20 /boot/grub/i386-pc/keylayouts.mod
my@sony:~$
Voici le contenu du fichier /etc/defaut/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_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zswap.enabled=1"
GRUB_CMDLINE_LINUX=""
GRUB_TERMINAL_INPUT=at_keyboard
# 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=1280x800
# 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"
Je fais toujours mes modif sur mon système réel via nano.
Ensuite je fais
sudo update-grub
Puis je redemarre le PC
Là normalement si je laisse faire le PC, sans rien toucher, il lance l'OS. Orj'ai une page grise très foncée/noire, le ventilo tourne plus que d'hab et le PC ne répond à rien, même pas au Ctrl+Alt+Suppr qui normalement redémarre le PC.
Je reste donc appuyé sur le bouton power pour forcer l'extinction.
Je lance un liveusb, où je me rends dans la partition boot. Ici, clique-droit ouvrir l'explorateur en tant que super-utilisateur et F2 sur :
grub.cfg => old4.grub.cfg
copier/coller grub.cfg.bak
et F2 sur grub.cfg.bak (copie) => grub.cfg
et je redémarre.
De nouveau sur mon OS réel, avec nano, je commente (#) les lignes qui font merdées dans /etc/defaut/grub et /etc/grug.d/40_custom
Puis je re-génère mon grub.cfg
Par contre, je vais vous expliquer comment j'en suis arrivé à vouloir le clavier en azerty.
Tout a commencé quand j'ai voulu mettre un mot de passe au grub. Toute la partie config s'est bien passée. Sauf qu'au redémarrage, impossible de me connecter. Je pense que cela était dû au fait que mon mdp comportait un "_". Quand je rentrais le mot de passe, le système me mettais (visuellement) un espace à la place d'un "_". Je précise que le "_" sur un clavier azerty est "maj+)". Je ne sais pas pourquoi.
Bref j'ai réussi a trouver un tuto pour régénéré le grub lorsqu'on a une partition chiffrée car à ce moment là je n'avais pas de sauvegarde de mon fichier grub.cfg
http://www.planet-libre.org/index.php?post_id=22197
Croyez-moi j'en ai trouvé qu'un seul tuto!!
Cela a très bien fonctionné.
Du coup j'ai refait un test de mettre un mot de passe sur le grub avec un nouvel id et mdpe très simples, et cela a fonctionné.
C'est à ce moment là que je me suis dit, pour éviter de me faire ch..., je vais passer le grub avec un clavier azerty.
J'ai virer toutes les lignes concernant le mot de passe, pour repartir sur une base "saine ?"
La suite vous la connaissez.
Après au moment où j'ai posté sur le problème du clavier, pour moi les deux problèmes étaient décorrélés, raison pour laquelle je n'en ai pas parlé.
Hors ligne
#50 Le 24/04/2020, à 14:07
- bruno
Re : Grub en azerty
Merci pour toutes ces informations.
Je ne vois vraiment pas ce qui cloche, pour moi tout est correct et les deux fichiers grub.cfg ne différente que par les trois lignes qui gérent la disposition du clavier.
Une dernière chance peut-être serait d'afficher par défaut le menu de grub en modifiant /etc/default/grub :
GRUB_TIMEOUT_STYLE=menu
et
sudo update-grub
Cela permettrait peut-être de voir les éventuels messages d'erreur.
Et si tu fais un nouvel essai, plutôt que de redémarrer le PC, l'éteindre complètement puis l'allumer.