Pages : 1
#1 Le 21/04/2020, à 23:12
- m.s0
[Résolu] update-grub
bonjour,
j'ai un problème avec update-grub
# update-grub
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: : Permission denied
# ls -l /etc/default/grub
-rw-r--r-- 1 root root 1241 avril 21 23:56 /etc/default/grub
#cat /etc/default/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=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT= ""
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# 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=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_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
quelqu'un a une idée?
Dernière modification par Ayral (Le 05/01/2021, à 14:35)
Hors ligne
#2 Le 21/04/2020, à 23:33
- Compte supprimé
Re : [Résolu] update-grub
Bonsoir.
Tu aurais dû faire une recherche avant de poster et tu aurais trouvé :
sudo update-grub
Cordialement.
#3 Le 22/04/2020, à 00:06
- m.s0
Re : [Résolu] update-grub
n'as-tu pas remarqué que mes lignes de commandes commencent par '#'?
ces commandes ont été tapés après avoir tapé "sudo su"
$ sudo update-grub
[sudo] Mot de passe de mathieu :
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: : Permission denied
quelqu'un a une idée?
Dernière modification par m.s0 (Le 22/04/2020, à 00:08)
Hors ligne
#4 Le 22/04/2020, à 00:20
- kamaris
Re : [Résolu] update-grub
GRUB_CMDLINE_LINUX_DEFAULT= ""
Pas d'espace dans les affectations de variable en shell.
Hors ligne
#5 Le 22/04/2020, à 00:24
- alh54
Re : [Résolu] update-grub
Mathieu est-il dans le groupe sudo? pour le savoir poste
id mathieu
Hors ligne
#6 Le 22/04/2020, à 00:25
- m.s0
Re : [Résolu] update-grub
merci Kamaris, tu as trouvé le problème
$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-46-generic
Found initrd image: /boot/initrd.img-5.3.0-46-generic
Found linux image: /boot/vmlinuz-5.3.0-45-generic
Found initrd image: /boot/initrd.img-5.3.0-45-generic
Adding boot menu entry for EFI firmware configuration
done
discussion résolue
Hors ligne
Pages : 1