[RISOLTO] - [GRUB] Configurazione non riconosciuta
-
greatciccio83
- Prode Principiante
- Messaggi: 20
- Iscrizione: martedì 1 novembre 2011, 15:38
[RISOLTO] - [GRUB] Configurazione non riconosciuta
Ciao Ragazzi,
di questo problema ne ho fatto accenno in un mio post precedente: http://forum.ubuntu-it.org/viewtopic.php?t=490536
Ma non riesco a risolvere il problema e quindi mi sembrava giusto aprire una discussione solo su questo piccolo problema.
Ho cercato sia sul forum che in rete ma ho trovato solo discussioni dove si parla di più SO installati... :-\
l'unica guida più concreta che so riuscito a trovare è la medesima: http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/FileCartelle
Vengo al dunque:
La mia macchina Ubuntu 11.04 Server all'avvio mi presenta la schermata di grub dove teoricamente dovrei scegliere il SO da avviare ma in realtà su questa macchina ho solo ubuntu e nessun'altro SO
Ho provato a modificare /etc/default/grub, seguendo la guida sopraindicata, in questo modo:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=2
GRUB_HIDDEN_TIMEOUT_QUIET=true
#GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
Ma purtroppo non riesco a far scomparire sta cavolo di schermata.... >:( le sto provando tutte...
Ho solo un dubbio che mi passa per la mente... siccome ieri ho avuto problemi con i LVM leggendo su per la rete, prima di risolvere grazie a questo forum, ho letto che forse il problema riguardasse il boot e si consigliava di effettuare grub-install sda1 ma nel mio caso sda1 sarebbe il mio secondo hd SFS mentre l'hd primario è sdb, ora non vorrei aver fatto una cavolata dandogli grub-install sda1....
Soluzioni?
di questo problema ne ho fatto accenno in un mio post precedente: http://forum.ubuntu-it.org/viewtopic.php?t=490536
Ma non riesco a risolvere il problema e quindi mi sembrava giusto aprire una discussione solo su questo piccolo problema.
Ho cercato sia sul forum che in rete ma ho trovato solo discussioni dove si parla di più SO installati... :-\
l'unica guida più concreta che so riuscito a trovare è la medesima: http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/FileCartelle
Vengo al dunque:
La mia macchina Ubuntu 11.04 Server all'avvio mi presenta la schermata di grub dove teoricamente dovrei scegliere il SO da avviare ma in realtà su questa macchina ho solo ubuntu e nessun'altro SO
Ho provato a modificare /etc/default/grub, seguendo la guida sopraindicata, in questo modo:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=2
GRUB_HIDDEN_TIMEOUT_QUIET=true
#GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
Ma purtroppo non riesco a far scomparire sta cavolo di schermata.... >:( le sto provando tutte...
Ho solo un dubbio che mi passa per la mente... siccome ieri ho avuto problemi con i LVM leggendo su per la rete, prima di risolvere grazie a questo forum, ho letto che forse il problema riguardasse il boot e si consigliava di effettuare grub-install sda1 ma nel mio caso sda1 sarebbe il mio secondo hd SFS mentre l'hd primario è sdb, ora non vorrei aver fatto una cavolata dandogli grub-install sda1....
Soluzioni?
Ultima modifica di greatciccio83 il sabato 5 novembre 2011, 14:35, modificato 1 volta in totale.
- streetcross
- Accecante Asceta

- Messaggi: 24943
- Iscrizione: giovedì 7 febbraio 2008, 10:52
- Contatti:
Re: [GRUB] Configurazione non riconosciuta
Codice: Seleziona tutto
cat /boot/grub/grub.cfgUbuntu user #22995 Linux user #474679 Stacy can't you see, you're just not the girl for me, I know it might be wrong, but I'm in love with Stacy's Mom. ﺕ In molti credono di essere degli alternativi. In realtà la maggior parte di loro lascia la strada principale per seguire la seconda strada più battuta; in pochi si creano il proprio sentiero.
-
greatciccio83
- Prode Principiante
- Messaggi: 20
- Iscrizione: martedì 1 novembre 2011, 15:38
Re: [GRUB] Configurazione non riconosciuta
ecco......
#
# 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="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env reco rdfail; fi; fi
}
function load_video {
true
}
insmod lvm
insmod part_msdos
insmod ext2
set root='(cicciosrv-root)'
search --no-floppy --fs-uuid --set=root 7198db6b-2b79-415c-a11b-08f0c015ecba
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=5
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 ###
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
menuentry 'Ubuntu, con Linux 2.6.38-12-generic-pae' --class ubuntu --class gnu-l inux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod lvm
insmod part_msdos
insmod ext2
set root='(cicciosrv-root)'
search --no-floppy --fs-uuid --set=root 7198db6b-2b79-415c-a11b-08f0c015ecba
linux /boot/vmlinuz-2.6.38-12-generic-pae root=/dev/mapper/cicciosrv-root ro quiet
initrd /boot/initrd.img-2.6.38-12-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.38-12-generic-pae (modalità ripristino)' --cla ss ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod lvm
insmod part_msdos
insmod ext2
set root='(cicciosrv-root)'
search --no-floppy --fs-uuid --set=root 7198db6b-2b79-415c-a11b-08f0c015ecba
echo 'Loading Linux 2.6.38-12-generic-pae ...'
linux /boot/vmlinuz-2.6.38-12-generic-pae root=/dev/mapper/cicciosrv-root ro s ingle
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-12-generic-pae
}
### 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+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if sleep --interruptible 2 ; then
set timeout=0
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
#
# 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="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env reco rdfail; fi; fi
}
function load_video {
true
}
insmod lvm
insmod part_msdos
insmod ext2
set root='(cicciosrv-root)'
search --no-floppy --fs-uuid --set=root 7198db6b-2b79-415c-a11b-08f0c015ecba
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=5
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 ###
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
menuentry 'Ubuntu, con Linux 2.6.38-12-generic-pae' --class ubuntu --class gnu-l inux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod lvm
insmod part_msdos
insmod ext2
set root='(cicciosrv-root)'
search --no-floppy --fs-uuid --set=root 7198db6b-2b79-415c-a11b-08f0c015ecba
linux /boot/vmlinuz-2.6.38-12-generic-pae root=/dev/mapper/cicciosrv-root ro quiet
initrd /boot/initrd.img-2.6.38-12-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.38-12-generic-pae (modalità ripristino)' --cla ss ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod lvm
insmod part_msdos
insmod ext2
set root='(cicciosrv-root)'
search --no-floppy --fs-uuid --set=root 7198db6b-2b79-415c-a11b-08f0c015ecba
echo 'Loading Linux 2.6.38-12-generic-pae ...'
linux /boot/vmlinuz-2.6.38-12-generic-pae root=/dev/mapper/cicciosrv-root ro s ingle
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-12-generic-pae
}
### 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+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if sleep --interruptible 2 ; then
set timeout=0
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
- hellojoker
- Rampante Reduce

- Messaggi: 7740
- Iscrizione: martedì 22 febbraio 2011, 20:37
- Desktop: Gnome Shell
- Distribuzione: Fedora|Win10
Re: [GRUB] Configurazione non riconosciuta
se gli hai dato grub install sda1 non hai fatto la cosa giusta (se non lo volevi9) ma neanche hai fatto danni comunque se in buone mani
ciao
ciao
-
greatciccio83
- Prode Principiante
- Messaggi: 20
- Iscrizione: martedì 1 novembre 2011, 15:38
Re: [GRUB] Configurazione non riconosciuta
Ciao hellojoker,hellojoker ha scritto: se gli hai dato grub install sda1 non hai fatto la cosa giusta (se non lo volevi9) ma neanche hai fatto danni comunque se in buone mani
ciao
come vedi non sono ancora riusci a risolverlo sto cacchio di problema e ieri mentre cercavo di ricordare i passaggi fatti mi so ricordato del grub-install sda1 e quindi pensavo di aver fatto una cavolata... :-[ ma ad oggi niente ancora ci sto ormai da parecchie ore su sto problema e non riesco a risolvere... uffff
- streetcross
- Accecante Asceta

- Messaggi: 24943
- Iscrizione: giovedì 7 febbraio 2008, 10:52
- Contatti:
Re: [GRUB] Configurazione non riconosciuta
ok tu hai detto che l'hd che viene per primo nell'ordine di boot è sdb giusto?
Proviamo semplicemente:
Proviamo semplicemente:
Codice: Seleziona tutto
sudo grub-install /dev/sdbCodice: Seleziona tutto
sudo update-grub2Ubuntu user #22995 Linux user #474679 Stacy can't you see, you're just not the girl for me, I know it might be wrong, but I'm in love with Stacy's Mom. ﺕ In molti credono di essere degli alternativi. In realtà la maggior parte di loro lascia la strada principale per seguire la seconda strada più battuta; in pochi si creano il proprio sentiero.
-
greatciccio83
- Prode Principiante
- Messaggi: 20
- Iscrizione: martedì 1 novembre 2011, 15:38
Re: [GRUB] Configurazione non riconosciuta
ho provato ma nulla...
- streetcross
- Accecante Asceta

- Messaggi: 24943
- Iscrizione: giovedì 7 febbraio 2008, 10:52
- Contatti:
Re: [GRUB] Configurazione non riconosciuta
ok, allora aggiungi in /etc/default/grub
all'inzio dello script, salva e dai
Codice: Seleziona tutto
GRUB_FORCE_HIDDEN_MENU="true"
export GRUB_FORCE_HIDDEN_MENUCodice: Seleziona tutto
sudo update-grub2Ubuntu user #22995 Linux user #474679 Stacy can't you see, you're just not the girl for me, I know it might be wrong, but I'm in love with Stacy's Mom. ﺕ In molti credono di essere degli alternativi. In realtà la maggior parte di loro lascia la strada principale per seguire la seconda strada più battuta; in pochi si creano il proprio sentiero.
-
greatciccio83
- Prode Principiante
- Messaggi: 20
- Iscrizione: martedì 1 novembre 2011, 15:38
Re: [GRUB] Configurazione non riconosciuta
nada.... insiste non vuole scomparire sta schermata.... :-\ >:(
- streetcross
- Accecante Asceta

- Messaggi: 24943
- Iscrizione: giovedì 7 febbraio 2008, 10:52
- Contatti:
Re: [GRUB] Configurazione non riconosciuta
:-\ ci sono altri metodi
provali tutti se vuoi e facci sapere11. HIDING THE MENU ON MULTI-OS SYSTEMS
By design, Grub 2 allows hiding the menu only on single-OS systems. This is established in the /etc/grub.d/30_os-prober file. For users with multiple OS's on their machines, hiding the menu can be accomplished by altering the scripts. There are two ways to accomplish the task. The first edits only one file and eliminates a conditional; the second edits two files and adds a conditional, but is a bit more 'elegant'.
Shown are the applicable sections. Changes are highlighted in bold red. The lines between the altered lines have been omitted.
Method 1. Remove a conditional from /etc/grub.d/30_os-prober.
For both Grub 1.97~beta (Karmic) and 1.98 (Lucid & later), the first line to edit is the same. It appears at approximately line 25-30 of /etc/grub.d/30_os-prober in both versions.
Quote:
# if [ "x${found_other_os}" = "x" ] ; then
The second change is to place a # symbol at the end of the conditional. There are many if statements, and it's important to find the correct nested fi.
In Karmic, the nested fi comes just before the "GRUB_DISABLE_PROBER" section. If Lucid and later, it preceeds the "() adjust timeout" section.
Karmic (Grub 1.97~beta):
Quote:
fi
fi
# fi
}
if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
Lucid & later (Grub 1.98+):
Quote:
#
fi
}
adjust_timeout () {
Method 2. Add a conditional.
This procedure modifies both /etc/grub.d/30_os-prober and /etc/default/grub. Open both with:
Code:
gksu gedit /etc/default/grub /etc/grub.d/30_os-prober
Add this line to /etc/default/grub:
Quote:
GRUB_FORCE_HIDDEN_MENU="true"
export GRUB_FORCE_HIDDEN_MENU
Change this line in /etc/grub.d/30_os-prober, approximately line 25-30,
From this:
Quote:
if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
To this:
Quote:
if [ "x${found_other_os}" = "x" ] || [ "x${GRUB_FORCE_HIDDEN_MENU}" = "xtrue" ] ; then
Ubuntu user #22995 Linux user #474679 Stacy can't you see, you're just not the girl for me, I know it might be wrong, but I'm in love with Stacy's Mom. ﺕ In molti credono di essere degli alternativi. In realtà la maggior parte di loro lascia la strada principale per seguire la seconda strada più battuta; in pochi si creano il proprio sentiero.
-
greatciccio83
- Prode Principiante
- Messaggi: 20
- Iscrizione: martedì 1 novembre 2011, 15:38
Re: [GRUB] Configurazione non riconosciuta
:-\ non so che dire.. ma stamani giusto per curiosità ho ridato il comando sudo grub-install sdb e magicamente ora non mi appare più la schermata iniziale anche se lo stesso avevo fatto ieri ma senza risultato... ho commentato anche le righe che mi avevi fatto aggiungere e funziona tutto correttamente.... :-\ :-\ L'importante è che adesso funziona tutto come dico io... Grazie (good) 
- streetcross
- Accecante Asceta

- Messaggi: 24943
- Iscrizione: giovedì 7 febbraio 2008, 10:52
- Contatti:
Re: [RISOLTO] - [GRUB] Configurazione non riconosciuta
mistero della fede :-\ ciao alla prossima 
Ubuntu user #22995 Linux user #474679 Stacy can't you see, you're just not the girl for me, I know it might be wrong, but I'm in love with Stacy's Mom. ﺕ In molti credono di essere degli alternativi. In realtà la maggior parte di loro lascia la strada principale per seguire la seconda strada più battuta; in pochi si creano il proprio sentiero.
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti