No kernel nuovi nella lista GRUB
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
No kernel nuovi nella lista GRUB
Comunque ho un problema con la lista del grub, in pratica non ci sono gli ultimi aggrionamenti del kernel, mentre ci sono alcuni che ho già eliminato.
Guardando nel wiki sembrerebbe che dovrei modificare (magari provare) il file /etc/grub.d/10_linux, solo che nel mio caso non c'è ma ho questo /etc/grub.d/20_linux_xen.
Cosa potrei fare per risolvere il problema?
- ilovelinux
- Entusiasta Emergente
- Messaggi: 1590
- Iscrizione: lunedì 22 luglio 2013, 8:49
- Desktop: Awesome
- Distribuzione: Archlinux x86_64
- Sesso: Maschile
- Località: Sicilia, Italia
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
sudo update-grub
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
Generating grub.cfg ...
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Found linux image: /boot/vmlinuz-3.2.0-60-generic
Found initrd image: /boot/initrd.img-3.2.0-60-generic
Found linux image: /boot/vmlinuz-3.2.0-59-generic
Found initrd image: /boot/initrd.img-3.2.0-59-generic
Found linux image: /boot/vmlinuz-3.2.0-58-generic
Found initrd image: /boot/initrd.img-3.2.0-58-generic
Found linux image: /boot/vmlinuz-3.2.0-60-generic
Found initrd image: /boot/initrd.img-3.2.0-60-generic
Found linux image: /boot/vmlinuz-3.2.0-59-generic
Found initrd image: /boot/initrd.img-3.2.0-59-generic
Found linux image: /boot/vmlinuz-3.2.0-58-generic
Found initrd image: /boot/initrd.img-3.2.0-58-generic
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
error: line no: 220
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
- ilovelinux
- Entusiasta Emergente
- Messaggi: 1590
- Iscrizione: lunedì 22 luglio 2013, 8:49
- Desktop: Awesome
- Distribuzione: Archlinux x86_64
- Sesso: Maschile
- Località: Sicilia, Italia
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
cat /boot/grub/grub.cfg
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
#
# 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
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
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
set locale_dir=($root)/boot/grub/locale
set lang=it_IT
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry "Ubuntu, con Linux 3.2.0-58-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux /boot/vmlinuz-3.2.0-58-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-58-generic
}
menuentry "Ubuntu, con Linux 3.2.0-58-generic (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
echo 'Caricamento Linux 3.2.0-58-generic...'
linux /boot/vmlinuz-3.2.0-58-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro recovery nomodeset
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.2.0-58-generic
}
menuentry "Ubuntu, con Linux 3.2.0-56-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux /boot/vmlinuz-3.2.0-56-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-56-generic
}
### END /etc/grub.d/10_linux_proxy ###
### BEGIN /etc/grub.d/11_linux_proxy ###
menuentry "Ubuntu, con Linux 3.2.0-54-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux /boot/vmlinuz-3.2.0-54-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-54-generic
}
### END /etc/grub.d/11_linux_proxy ###
### BEGIN /etc/grub.d/12_linux_proxy ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
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
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
### END /etc/grub.d/12_linux_proxy ###
### BEGIN /etc/grub.d/13_linux_proxy ###
menuentry "Ubuntu, con Linux 3.2.0-58-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux /boot/vmlinuz-3.2.0-58-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-58-generic
}
menuentry "Ubuntu, con Linux 3.2.0-58-generic (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
echo 'Caricamento Linux 3.2.0-58-generic...'
linux /boot/vmlinuz-3.2.0-58-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro recovery nomodeset
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.2.0-58-generic
}
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
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
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
submenu "Previous Linux versions"{
menuentry "Ubuntu, con Linux 3.2.0-57-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux /boot/vmlinuz-3.2.0-57-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-57-generic
}
menuentry "Ubuntu, con Linux 3.2.0-57-generic (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
echo 'Caricamento Linux 3.2.0-57-generic...'
linux /boot/vmlinuz-3.2.0-57-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro recovery nomodeset
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.2.0-57-generic
}
menuentry "Ubuntu, con Linux 3.2.0-56-generic (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
echo 'Caricamento Linux 3.2.0-56-generic...'
linux /boot/vmlinuz-3.2.0-56-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro recovery nomodeset
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.2.0-56-generic
}
menuentry "Ubuntu, con Linux 3.2.0-55-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux /boot/vmlinuz-3.2.0-55-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-55-generic
}
menuentry "Ubuntu, con Linux 3.2.0-55-generic (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
echo 'Caricamento Linux 3.2.0-55-generic...'
linux /boot/vmlinuz-3.2.0-55-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro recovery nomodeset
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.2.0-55-generic
}
menuentry "Ubuntu, con Linux 3.2.0-54-generic (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
echo 'Caricamento Linux 3.2.0-54-generic...'
linux /boot/vmlinuz-3.2.0-54-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro recovery nomodeset
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.2.0-54-generic
}
}
### END /etc/grub.d/13_linux_proxy ###
### BEGIN /etc/grub.d/14_linux_xen ###
### END /etc/grub.d/14_linux_xen ###
### BEGIN /etc/grub.d/15_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/15_memtest86+ ###
### BEGIN /etc/grub.d/16_os-prober ###
menuentry "Windows Recovery Environment (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod fat
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4C8B-2392
drivemap -s (hd0) ${root}
chainloader +1
}
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 BC008F1B008EDBB0
chainloader +1
}
### END /etc/grub.d/16_os-prober ###
### BEGIN /etc/grub.d/17_uefi-firmware ###
### END /etc/grub.d/17_uefi-firmware ###
### BEGIN /etc/grub.d/18_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/18_custom ###
### BEGIN /etc/grub.d/19_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/19_custom ###
### BEGIN /etc/grub.d/20_linux_proxy ###
menuentry "Ubuntu, con Linux 3.2.0-57-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
linux /boot/vmlinuz-3.2.0-57-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-57-generic
}
menuentry "Ubuntu, con Linux 3.2.0-57-generic (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 9230ce37-bc67-4722-8f9e-7de17991cf76
echo 'Caricamento Linux 3.2.0-57-generic...'
linux /boot/vmlinuz-3.2.0-57-generic root=UUID=9230ce37-bc67-4722-8f9e-7de17991cf76 ro recovery nomodeset
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.2.0-57-generic
}
### END /etc/grub.d/20_linux_proxy ###
- ilovelinux
- Entusiasta Emergente
- Messaggi: 1590
- Iscrizione: lunedì 22 luglio 2013, 8:49
- Desktop: Awesome
- Distribuzione: Archlinux x86_64
- Sesso: Maschile
- Località: Sicilia, Italia
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
cat /etc/default/grub
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
# 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_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 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="800x600x8"
# 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"
GRUB_SAVEDEFAULT="false"
- ilovelinux
- Entusiasta Emergente
- Messaggi: 1590
- Iscrizione: lunedì 22 luglio 2013, 8:49
- Desktop: Awesome
- Distribuzione: Archlinux x86_64
- Sesso: Maschile
- Località: Sicilia, Italia
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
sudo gedit /etc/default/grub
Codice: Seleziona tutto
# 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_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 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="800x600x8"
# 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"
#GRUB_SAVEDEFAULT="false"
Codice: Seleziona tutto
sudo grub-update
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
Generating grub.cfg ...
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Found linux image: /boot/vmlinuz-3.2.0-60-generic
Found initrd image: /boot/initrd.img-3.2.0-60-generic
Found linux image: /boot/vmlinuz-3.2.0-59-generic
Found initrd image: /boot/initrd.img-3.2.0-59-generic
Found linux image: /boot/vmlinuz-3.2.0-58-generic
Found initrd image: /boot/initrd.img-3.2.0-58-generic
Found linux image: /boot/vmlinuz-3.2.0-60-generic
Found initrd image: /boot/initrd.img-3.2.0-60-generic
Found linux image: /boot/vmlinuz-3.2.0-59-generic
Found initrd image: /boot/initrd.img-3.2.0-59-generic
Found linux image: /boot/vmlinuz-3.2.0-58-generic
Found initrd image: /boot/initrd.img-3.2.0-58-generic
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
errore: Incorrect command.
errore: syntax error.
error: line no: 220
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
-
- Rampante Reduce
- Messaggi: 6658
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Budgie
- Distribuzione: 20.04 LTS; 22.04 LTS
- Sesso: Maschile
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
cat /etc/grub.d/20_linux_xen
c'è un errore alla linea/riga 220... ma di che file? potrebbe essere nel grub.cfg
- ilovelinux
- Entusiasta Emergente
- Messaggi: 1590
- Iscrizione: lunedì 22 luglio 2013, 8:49
- Desktop: Awesome
- Distribuzione: Archlinux x86_64
- Sesso: Maschile
- Località: Sicilia, Italia
Re: No kernel nuovi nella lista GRUB
File: grub.cfgivantu [url=http://forum.ubuntu-it.org/viewtopic.php?p=4606577#p4606577][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:come fai a capire che sia quel file il problema? postami il contenutodomanda stupida, a cosa ti servono tutti quei kernel vecchi? consiglio tenersi solamente gli ultimi due massimo tre. prova a fare una puliziaCodice: Seleziona tutto
cat /etc/grub.d/20_linux_xen
c'è un errore alla linea/riga 220... ma di che file? potrebbe essere nel grub.cfg
Linea: 220
Testo: set root='(hd0,msdos3)'
- steff
- Moderatore Globale
- Messaggi: 40299
- Iscrizione: domenica 18 febbraio 2007, 19:48
- Desktop: LXQt+labwc
- Distribuzione: Arch; Debian; Ubuntu Server
- Sesso: Maschile
- Località: Toscana
- Contatti:
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
cat /boot/grub/grub.cfg.new
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
-
- Rampante Reduce
- Messaggi: 6658
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Budgie
- Distribuzione: 20.04 LTS; 22.04 LTS
- Sesso: Maschile
Re: No kernel nuovi nella lista GRUB
nella mia 12.04 c'è, dovrebbe esistere il file 10_linuxsket [url=http://forum.ubuntu-it.org/viewtopic.php?p=4606203#p4606203][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Salve, scusate non so se è la sezione giusta.
Comunque ho un problema con la lista del grub, in pratica non ci sono gli ultimi aggrionamenti del kernel, mentre ci sono alcuni che ho già eliminato.
Guardando nel wiki sembrerebbe che dovrei modificare (magari provare) il file /etc/grub.d/10_linux, solo che nel mio caso non c'è ma ho questo /etc/grub.d/20_linux_xen.
Cosa potrei fare per risolvere il problema?
postami anche
Codice: Seleziona tutto
ls -l /etc/grub.d
oppure mi sono fatto una ricerca, sapete se centra il file 30_os_prober i kernel vengono trovati con questo file. Il problema dell'errore sembra tutto da lì, non trova tutti i kernel.
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
Semi-risolto perchè se provo a modificare qualcosa esce fuori un casino, doppie, triple, quadruple voci. Comunque ora mi vede tutti i kernel ed un passo è fatto.
L'attuale sudo update-grub (ci sono voci doppie):
Codice: Seleziona tutto
@notebook2:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-60-generic
Found initrd image: /boot/initrd.img-3.2.0-60-generic
Found linux image: /boot/vmlinuz-3.2.0-59-generic
Found initrd image: /boot/initrd.img-3.2.0-59-generic
Found linux image: /boot/vmlinuz-3.2.0-58-generic
Found initrd image: /boot/initrd.img-3.2.0-58-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Found linux image: /boot/vmlinuz-3.2.0-60-generic
Found initrd image: /boot/initrd.img-3.2.0-60-generic
Found linux image: /boot/vmlinuz-3.2.0-59-generic
Found initrd image: /boot/initrd.img-3.2.0-59-generic
Found linux image: /boot/vmlinuz-3.2.0-58-generic
Found initrd image: /boot/initrd.img-3.2.0-58-generic
done
Codice: Seleziona tutto
@notebook2:~$ ls -l /etc/grub.d
totale 76
-rwxr-xr-x 1 root root 6743 set 12 2012 00_header
-rwxr-xr-x 1 root root 5522 mag 17 2012 05_debian_theme
-rwxr-xr-x 1 root root 754 giu 26 19:20 10_linux_proxy
-rwxr-xr-x 1 root root 1388 dic 10 2012 17_uefi-firmware
-rwxr-xr-x 1 root root 6335 mag 17 2012 20_linux_xen
-rwxr-xr-x 1 root root 265 giu 26 19:20 20_memtest86+_proxy
-rwxr-xr-x 1 root root 7603 mag 17 2012 30_os-prober
-rwxr-xr-x 1 root root 214 mag 17 2012 40_custom
-rwxr-xr-x 1 root root 95 mag 17 2012 41_custom
-rwxr-xr-x 1 root root 7407 mag 17 2012 50_linux
drwxr-xr-x 4 root root 4096 gen 9 22:04 backup
drwxr-xr-x 2 root root 4096 nov 22 2012 bin
drwxr-xr-x 2 root root 4096 giu 26 19:20 proxifiedScripts
-rw-r--r-- 1 root root 483 mag 17 2012 README
Codice: Seleziona tutto
@notebook2:~$ cat /etc/grub.d/20_linux_xen
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
prefix="/usr"
exec_prefix="${prefix}"
datarootdir="${prefix}/share"
. "${datarootdir}/grub/grub-mkconfig_lib"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
CLASS="--class gnu-linux --class gnu --class os --class xen"
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
OS=GNU/Linux
else
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
fi
# loop-AES arranges things so that /dev/loop/X can be our root device, but
# the initrds that Linux uses don't like that.
case ${GRUB_DEVICE} in
/dev/loop/*|/dev/loop[0-9])
GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
# We can't cope with devices loop-mounted from files here.
case ${GRUB_DEVICE} in
/dev/*) ;;
*) exit 0 ;;
esac
;;
esac
if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
|| ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
|| uses_abstraction "${GRUB_DEVICE}" lvm; then
LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
fi
# Allow overriding GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT.
if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE}" ]; then
GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}"
fi
if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
fi
if [ "x`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`" = xbtrfs ] \
|| [ "x`stat -f --printf=%T /`" = xbtrfs ]; then
rootsubvol="`make_system_path_relative_to_its_root /`"
rootsubvol="${rootsubvol#/}"
if [ "x${rootsubvol}" != x ]; then
GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
fi
fi
linux_entry ()
{
os="$1"
version="$2"
xen_version="$3"
recovery="$4"
args="$5"
xen_args="$6"
if ${recovery} ; then
title="$(gettext_quoted "%s, with Xen %s and Linux %s (recovery mode)")"
else
title="$(gettext_quoted "%s, with Xen %s and Linux %s")"
fi
printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${xen_version}" "${version}"
if ! ${recovery} ; then
save_default_entry | sed -e "s/^/\t/"
fi
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
fi
printf '%s\n' "${prepare_boot_cache}"
xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
cat << EOF
echo '$xmessage'
multiboot ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args}
echo '$lmessage'
module ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
EOF
if test -n "${initrd}" ; then
message="$(gettext_printf "Loading initial ramdisk ...")"
cat << EOF
echo '$message'
module ${rel_dirname}/${initrd}
EOF
fi
cat << EOF
}
EOF
}
linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
if grub_file_is_not_garbage "$i"; then
basename=$(basename $i)
version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
dirname=$(dirname $i)
config=
for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
if test -e "${j}" ; then
config="${j}"
break
fi
done
if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then echo -n "$i " ; fi
fi
done`
if [ "x${linux_list}" = "x" ] ; then
exit 0
fi
xen_list=`for i in /boot/xen*; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
done`
prepare_boot_cache=
while [ "x${xen_list}" != "x" ] ; do
list="${linux_list}"
current_xen=`version_find_latest $xen_list`
xen_basename=`basename ${current_xen}`
xen_dirname=`dirname ${current_xen}`
rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"`
echo "submenu \"Xen ${xen_version}\" {"
while [ "x$list" != "x" ] ; do
linux=`version_find_latest $list`
echo "Found linux image: $linux" >&2
basename=`basename $linux`
dirname=`dirname $linux`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
alt_version=`echo $version | sed -e "s,\.old$,,g"`
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
initrd=
for i in "initrd.img-${version}" "initrd-${version}.img" \
"initrd-${version}" "initrd.img-${alt_version}" \
"initrd-${alt_version}.img" "initrd-${alt_version}" \
"initramfs-genkernel-${version}" \
"initramfs-genkernel-${alt_version}" ; do
if test -e "${dirname}/${i}" ; then
initrd="$i"
break
fi
done
if test -n "${initrd}" ; then
echo "Found initrd image: ${dirname}/${initrd}" >&2
else
# "UUID=" magic is parsed by initrds. Since there's no initrd, it can't work here.
linux_root_device_thisversion=${GRUB_DEVICE}
fi
linux_entry "${OS}" "${version}" "${xen_version}" false \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
linux_entry "${OS}" "${version}" "${xen_version}" true \
"single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}"
fi
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
done
echo "}"
xen_list=`echo $xen_list | tr ' ' '\n' | grep -vx $current_xen | tr '\n' ' '`
done
-
- Rampante Reduce
- Messaggi: 6658
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Budgie
- Distribuzione: 20.04 LTS; 22.04 LTS
- Sesso: Maschile
Re: No kernel nuovi nella lista GRUB
in tanto al primo output è giusto che ne trovi doppie voci, non sono doppie sono due cose diverse di file configurazione kernel essenziali che trovi tutti e due per il funzionamento.sket ha scritto:Ciao, ho semi-risolto installando grub customizer.
Semi-risolto perchè se provo a modificare qualcosa esce fuori un casino, doppie, triple, quadruple voci. Comunque ora mi vede tutti i kernel ed un passo è fatto.
L'attuale sudo update-grub (ci sono voci doppie):Allora ls -l /etc/grub.d:Codice: Seleziona tutto
@notebook2:~$ sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.0-60-generic Found initrd image: /boot/initrd.img-3.2.0-60-generic Found linux image: /boot/vmlinuz-3.2.0-59-generic Found initrd image: /boot/initrd.img-3.2.0-59-generic Found linux image: /boot/vmlinuz-3.2.0-58-generic Found initrd image: /boot/initrd.img-3.2.0-58-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows Recovery Environment (loader) on /dev/sda1 Found Windows 7 (loader) on /dev/sda2 Found linux image: /boot/vmlinuz-3.2.0-60-generic Found initrd image: /boot/initrd.img-3.2.0-60-generic Found linux image: /boot/vmlinuz-3.2.0-59-generic Found initrd image: /boot/initrd.img-3.2.0-59-generic Found linux image: /boot/vmlinuz-3.2.0-58-generic Found initrd image: /boot/initrd.img-3.2.0-58-generic done
cat /etc/grub.d/20_linux_xen (i kernel vecchi li avevo eliminati, il problema e che continuava a visualizzare i vecchi e non i nuovi):Codice: Seleziona tutto
@notebook2:~$ ls -l /etc/grub.d totale 76 -rwxr-xr-x 1 root root 6743 set 12 2012 00_header -rwxr-xr-x 1 root root 5522 mag 17 2012 05_debian_theme -rwxr-xr-x 1 root root 754 giu 26 19:20 10_linux_proxy -rwxr-xr-x 1 root root 1388 dic 10 2012 17_uefi-firmware -rwxr-xr-x 1 root root 6335 mag 17 2012 20_linux_xen -rwxr-xr-x 1 root root 265 giu 26 19:20 20_memtest86+_proxy -rwxr-xr-x 1 root root 7603 mag 17 2012 30_os-prober -rwxr-xr-x 1 root root 214 mag 17 2012 40_custom -rwxr-xr-x 1 root root 95 mag 17 2012 41_custom -rwxr-xr-x 1 root root 7407 mag 17 2012 50_linux drwxr-xr-x 4 root root 4096 gen 9 22:04 backup drwxr-xr-x 2 root root 4096 nov 22 2012 bin drwxr-xr-x 2 root root 4096 giu 26 19:20 proxifiedScripts -rw-r--r-- 1 root root 483 mag 17 2012 README
Codice: Seleziona tutto
@notebook2:~$ cat /etc/grub.d/20_linux_xen #! /bin/sh set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. # # GRUB is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # GRUB is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GRUB. If not, see <http://www.gnu.org/licenses/>. prefix="/usr" exec_prefix="${prefix}" datarootdir="${prefix}/share" . "${datarootdir}/grub/grub-mkconfig_lib" export TEXTDOMAIN=grub export TEXTDOMAINDIR="${datarootdir}/locale" CLASS="--class gnu-linux --class gnu --class os --class xen" if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then OS=GNU/Linux else OS="${GRUB_DISTRIBUTOR} GNU/Linux" CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}" fi # loop-AES arranges things so that /dev/loop/X can be our root device, but # the initrds that Linux uses don't like that. case ${GRUB_DEVICE} in /dev/loop/*|/dev/loop[0-9]) GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"` # We can't cope with devices loop-mounted from files here. case ${GRUB_DEVICE} in /dev/*) ;; *) exit 0 ;; esac ;; esac if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \ || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \ || uses_abstraction "${GRUB_DEVICE}" lvm; then LINUX_ROOT_DEVICE=${GRUB_DEVICE} else LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID} fi # Allow overriding GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT. if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE}" ]; then GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}" fi if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" fi if [ "x`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`" = xbtrfs ] \ || [ "x`stat -f --printf=%T /`" = xbtrfs ]; then rootsubvol="`make_system_path_relative_to_its_root /`" rootsubvol="${rootsubvol#/}" if [ "x${rootsubvol}" != x ]; then GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}" fi fi linux_entry () { os="$1" version="$2" xen_version="$3" recovery="$4" args="$5" xen_args="$6" if ${recovery} ; then title="$(gettext_quoted "%s, with Xen %s and Linux %s (recovery mode)")" else title="$(gettext_quoted "%s, with Xen %s and Linux %s")" fi printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${xen_version}" "${version}" if ! ${recovery} ; then save_default_entry | sed -e "s/^/\t/" fi if [ -z "${prepare_boot_cache}" ]; then prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")" fi printf '%s\n' "${prepare_boot_cache}" xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})" lmessage="$(gettext_printf "Loading Linux %s ..." ${version})" cat << EOF echo '$xmessage' multiboot ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} echo '$lmessage' module ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args} EOF if test -n "${initrd}" ; then message="$(gettext_printf "Loading initial ramdisk ...")" cat << EOF echo '$message' module ${rel_dirname}/${initrd} EOF fi cat << EOF } EOF } linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do if grub_file_is_not_garbage "$i"; then basename=$(basename $i) version=$(echo $basename | sed -e "s,^[^0-9]*-,,g") dirname=$(dirname $i) config= for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do if test -e "${j}" ; then config="${j}" break fi done if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then echo -n "$i " ; fi fi done` if [ "x${linux_list}" = "x" ] ; then exit 0 fi xen_list=`for i in /boot/xen*; do if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done` prepare_boot_cache= while [ "x${xen_list}" != "x" ] ; do list="${linux_list}" current_xen=`version_find_latest $xen_list` xen_basename=`basename ${current_xen}` xen_dirname=`dirname ${current_xen}` rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname` xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"` echo "submenu \"Xen ${xen_version}\" {" while [ "x$list" != "x" ] ; do linux=`version_find_latest $list` echo "Found linux image: $linux" >&2 basename=`basename $linux` dirname=`dirname $linux` rel_dirname=`make_system_path_relative_to_its_root $dirname` version=`echo $basename | sed -e "s,^[^0-9]*-,,g"` alt_version=`echo $version | sed -e "s,\.old$,,g"` linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" initrd= for i in "initrd.img-${version}" "initrd-${version}.img" \ "initrd-${version}" "initrd.img-${alt_version}" \ "initrd-${alt_version}.img" "initrd-${alt_version}" \ "initramfs-genkernel-${version}" \ "initramfs-genkernel-${alt_version}" ; do if test -e "${dirname}/${i}" ; then initrd="$i" break fi done if test -n "${initrd}" ; then echo "Found initrd image: ${dirname}/${initrd}" >&2 else # "UUID=" magic is parsed by initrds. Since there's no initrd, it can't work here. linux_root_device_thisversion=${GRUB_DEVICE} fi linux_entry "${OS}" "${version}" "${xen_version}" false \ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}" if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then linux_entry "${OS}" "${version}" "${xen_version}" true \ "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}" fi list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '` done echo "}" xen_list=`echo $xen_list | tr ' ' '\n' | grep -vx $current_xen | tr '\n' ' '` done
nel secondo invece tu hai file che spostati, dicevi che non hai 10_linux guardando bene, hai un 50_linux. la directory è in disordine. il numero progressivo serve per il sistema a come deve comportarsi per caricare.
nel file 20_linux_xen non mi sono chiare alcune linee. voci in più e altre in meno, diverso dal mio. se qualcuno vuole dagli un'occhiata e vedere se ci sono differenze
Codice: Seleziona tutto
:~$ cat /etc/grub.d/20_linux_xen
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
prefix="/usr"
exec_prefix="${prefix}"
datarootdir="${prefix}/share"
. "${datarootdir}/grub/grub-mkconfig_lib"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
CLASS="--class gnu-linux --class gnu --class os --class xen"
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
OS=GNU/Linux
else
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
fi
# loop-AES arranges things so that /dev/loop/X can be our root device, but
# the initrds that Linux uses don't like that.
case ${GRUB_DEVICE} in
/dev/loop/*|/dev/loop[0-9])
GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
# We can't cope with devices loop-mounted from files here.
case ${GRUB_DEVICE} in
/dev/*) ;;
*) exit 0 ;;
esac
;;
esac
if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
|| ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
|| uses_abstraction "${GRUB_DEVICE}" lvm; then
LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
fi
# Allow overriding GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT.
if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE}" ]; then
GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}"
fi
if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
fi
if [ "x`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`" = xbtrfs ] \
|| [ "x`stat -f --printf=%T /`" = xbtrfs ]; then
rootsubvol="`make_system_path_relative_to_its_root /`"
rootsubvol="${rootsubvol#/}"
if [ "x${rootsubvol}" != x ]; then
GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
fi
fi
linux_entry ()
{
os="$1"
version="$2"
xen_version="$3"
recovery="$4"
args="$5"
xen_args="$6"
if ${recovery} ; then
title="$(gettext_quoted "%s, with Xen %s and Linux %s (%s)")"
printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${xen_version}" "${version}" "$(gettext "${GRUB_RECOVERY_TITLE}")"
else
title="$(gettext_quoted "%s, with Xen %s and Linux %s")"
printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${xen_version}" "${version}"
fi
if ! ${recovery} ; then
save_default_entry | sed -e "s/^/\t/"
fi
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
fi
printf '%s\n' "${prepare_boot_cache}"
xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
cat << EOF
echo '$xmessage'
multiboot ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args}
echo '$lmessage'
module ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
EOF
if test -n "${initrd}" ; then
message="$(gettext_printf "Loading initial ramdisk ...")"
cat << EOF
echo '$message'
module ${rel_dirname}/${initrd}
EOF
fi
cat << EOF
}
EOF
}
linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
if grub_file_is_not_garbage "$i"; then
basename=$(basename $i)
version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
dirname=$(dirname $i)
config=
for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
if test -e "${j}" ; then
config="${j}"
break
fi
done
if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then echo -n "$i " ; fi
fi
done`
if [ "x${linux_list}" = "x" ] ; then
exit 0
fi
xen_list=`for i in /boot/xen*; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
done`
prepare_boot_cache=
while [ "x${xen_list}" != "x" ] ; do
list="${linux_list}"
current_xen=`version_find_latest $xen_list`
xen_basename=`basename ${current_xen}`
xen_dirname=`dirname ${current_xen}`
rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"`
echo "submenu \"Xen ${xen_version}\" {"
while [ "x$list" != "x" ] ; do
linux=`version_find_latest $list`
echo "Found linux image: $linux" >&2
basename=`basename $linux`
dirname=`dirname $linux`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
alt_version=`echo $version | sed -e "s,\.old$,,g"`
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
initrd=
for i in "initrd.img-${version}" "initrd-${version}.img" \
"initrd-${version}" "initrd.img-${alt_version}" \
"initrd-${alt_version}.img" "initrd-${alt_version}" \
"initramfs-genkernel-${version}" \
"initramfs-genkernel-${alt_version}" ; do
if test -e "${dirname}/${i}" ; then
initrd="$i"
break
fi
done
if test -n "${initrd}" ; then
echo "Found initrd image: ${dirname}/${initrd}" >&2
else
# "UUID=" magic is parsed by initrds. Since there's no initrd, it can't work here.
linux_root_device_thisversion=${GRUB_DEVICE}
fi
linux_entry "${OS}" "${version}" "${xen_version}" false \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
linux_entry "${OS}" "${version}" "${xen_version}" true \
"single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}"
fi
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
done
echo "}"
xen_list=`echo $xen_list | tr ' ' '\n' | grep -vx $current_xen | tr '\n' ' '`
done
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
Sarà per questo motivo che nella lista mi ritrovo doppie voci dei kernel, prima e dopo windows, dato che quei file determinano l'ordine della lista.dicevi che non hai 10_linux guardando bene, hai un 50_linux. la directory è in disordine. il numero progressivo serve per il sistema a come deve comportarsi per caricare.
- ilovelinux
- Entusiasta Emergente
- Messaggi: 1590
- Iscrizione: lunedì 22 luglio 2013, 8:49
- Desktop: Awesome
- Distribuzione: Archlinux x86_64
- Sesso: Maschile
- Località: Sicilia, Italia
Re: No kernel nuovi nella lista GRUB
Prova a pulire Ubuntu co Ubuntu Tweak, per installarlo dai:sket [url=http://forum.ubuntu-it.org/viewtopic.php?p=4607143#p4607143][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Allora prima di usare grub-customizer, erano presenti in lista i vecchi kernel già eliminati, sinceramente non ho provato a selezionarli perchè li avevo eliminati, e non erano presenti i nuovi.
Sarà per questo motivo che nella lista mi ritrovo doppie voci dei kernel, prima e dopo windows, dato che quei file determinano l'ordine della lista.dicevi che non hai 10_linux guardando bene, hai un 50_linux. la directory è in disordine. il numero progressivo serve per il sistema a come deve comportarsi per caricare.
Codice: Seleziona tutto
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
-
- Rampante Reduce
- Messaggi: 6658
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Budgie
- Distribuzione: 20.04 LTS; 22.04 LTS
- Sesso: Maschile
Re: No kernel nuovi nella lista GRUB
nel grub in che modo trovi in lista kernel doppi? è normale che li trovi due volte, uno è il kernel e uno è il kernel di recovery (ripristino) accedendo tramite un secondo menu.sket [url=http://forum.ubuntu-it.org/viewtopic.php?p=4607143#p4607143][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Allora prima di usare grub-customizer, erano presenti in lista i vecchi kernel già eliminati, sinceramente non ho provato a selezionarli perchè li avevo eliminati, e non erano presenti i nuovi.
Sarà per questo motivo che nella lista mi ritrovo doppie voci dei kernel, prima e dopo windows, dato che quei file determinano l'ordine della lista.dicevi che non hai 10_linux guardando bene, hai un 50_linux. la directory è in disordine. il numero progressivo serve per il sistema a come deve comportarsi per caricare.
postami il comando
Codice: Seleziona tutto
dpkg -l | grep kernel
- sket
- Prode Principiante
- Messaggi: 203
- Iscrizione: giovedì 19 giugno 2014, 16:52
- Desktop: Gnome
- Distribuzione: Ubuntu 18.04 LTS
Re: No kernel nuovi nella lista GRUB
Codice: Seleziona tutto
@notebook2:~$ dpkg -l | grep kernel
ii kerneloops-daemon 0.12+git20090217-1ubuntu19 kernel oops tracker
ii libaio1:i386 0.3.109-2ubuntu1 Linux kernel AIO access library - shared library
ii libdrm-dev 2.4.43-0ubuntu0.0.3 Userspace interface to kernel DRM services -- development files
ii libdrm-intel1 2.4.43-0ubuntu0.0.3 Userspace interface to intel-specific kernel DRM services -- runtime
ii libdrm-intel1:i386 2.4.43-0ubuntu0.0.3 Userspace interface to intel-specific kernel DRM services -- runtime
ii libdrm-nouveau1a 2.4.43-0ubuntu0.0.3 Userspace interface to nouveau-specific kernel DRM services -- runtime
ii libdrm-nouveau1a:i386 2.4.43-0ubuntu0.0.3 Userspace interface to nouveau-specific kernel DRM services -- runtime
ii libdrm-nouveau2 2.4.43-0ubuntu0.0.3 Userspace interface to nouveau-specific kernel DRM services -- runtime
ii libdrm-radeon1 2.4.43-0ubuntu0.0.3 Userspace interface to radeon-specific kernel DRM services -- runtime
ii libdrm-radeon1:i386 2.4.43-0ubuntu0.0.3 Userspace interface to radeon-specific kernel DRM services -- runtime
ii libdrm2 2.4.43-0ubuntu0.0.3 Userspace interface to kernel DRM services -- runtime
ii libdrm2:i386 2.4.43-0ubuntu0.0.3 Userspace interface to kernel DRM services -- runtime
ii libkms1 2.4.43-0ubuntu0.0.3 Userspace interface to kernel DRM buffer management
ii linux 3.2.0.60.71 Generic complete Linux kernel.
ii linux-firmware 1.79.12 Firmware for Linux kernel drivers
ii linux-headers-3.2.0-58 3.2.0-58.88 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-58-generic 3.2.0-58.88 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-59 3.2.0-59.90 Header files related to Linux kernel version 3.2.0
ii linux-image 3.2.0.60.71 Generic Linux kernel image.
ii linux-image-3.2.0-58-generic 3.2.0-58.88 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-59-generic 3.2.0-59.90 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-60-generic 3.2.0-60.91 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-generic 3.2.0.60.71 Generic Linux kernel image
ii module-init-tools 3.16-1ubuntu2 tools for managing Linux kernel modules
ii rsyslog 5.8.6-1ubuntu8.1 reliable system and kernel logging daemon
ii udev 175-0ubuntu9.2 rule-based device node and kernel event manager
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti