Risoluzione del grub e riavvio che non funziona

Domande e richieste di un principiante alle prime armi con Ubuntu e il mondo GNU/Linux in generale. Per domande specifiche, utilizzare le altre sezioni.
Regole della sezione
In questa sezione possono inserire nuove discussioni solo coloro che fanno parte del livello "Prode Principiante" e che non hanno superato i 100 messaggi, tutti gli altri possono comunque rispondere regolarmente. Se si fa parte di questo livello e si è registrati al forum prima del 24 aprile 2012, data del passaggio al nuovo forum, consultare questa discussione.

Immagine Come usare UbuntuPrimi passi su Ubuntu Immagine Amministrazione del sistemaComandi di baseInstallare programmiLog di sistemaRiga di comandoSudo
Scrivi risposta
Mattipo88
Prode Principiante
Messaggi: 12
Iscrizione: venerdì 31 ottobre 2014, 18:11

Risoluzione del grub e riavvio che non funziona

Messaggio da Mattipo88 »

Ciao, ho due problemi con ubuntu 14.10, forse collegati, per questo li scrivo insieme.

1) il menu di grub non è più quello violaceo in alta risoluzione di Ubuntu, ma è quello tradizionale, bianco e nero, in bassa risoluzione

2) Se riavvio il pc, carica il bios, e poi mi rimane lo schermo nero, non arriva neanche al grub e non carica il SO, mentre se arresto il pc e lo riaccendo, il boot funziona regolarmente (salvo il "problema" del punto 1)

idee?
grazie
Avatar utente
kripton99
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 462
Iscrizione: sabato 10 marzo 2012, 18:56
Desktop: Xfce-KDE-Gnome
Distribuzione: Indomito irrequieto
Sesso: Maschile

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da kripton99 »

Hai provato con Boot repair ?
/AmministrazioneSistema/BootRepair
Mattipo88
Prode Principiante
Messaggi: 12
Iscrizione: venerdì 31 ottobre 2014, 18:11

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da Mattipo88 »

Provato... ha risolto il mancato riavvio, che ora funziona correttamente, ma il grub è sempre quello brutto... qualcuno sa da cosa è dipeso il diverso aspetto?
Avatar utente
jackynet92
Moderatore Globale
Moderatore Globale
Messaggi: 13413
Iscrizione: sabato 3 settembre 2011, 1:41
Desktop: Mate
Distribuzione: Ubuntu 16.04 64bit
Sesso: Maschile
Località: Torino

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da jackynet92 »

Che vuol dire brutto? Riesci a mandare qualche foto o a trovare qualche esempio su internet?
Mattipo88
Prode Principiante
Messaggi: 12
Iscrizione: venerdì 31 ottobre 2014, 18:11

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da Mattipo88 »

Grub che visualizzo attualmente (esempio preso da internet)... manca lo sfondo e la risoluzione è inferiore: https://buzzcodington.files.wordpress.c ... 4/grub.jpg

Grub che viene installato da ubuntu... sfondo + risoluzione maggiore: http://lh5.ggpht.com/-K6JIFuil9QI/UWlMm ... ground.png
Avatar utente
maxbigsi
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17039
Iscrizione: mercoledì 21 maggio 2008, 14:05
Desktop: Xfce
Distribuzione: MX Linux 23.2 64bit
Sesso: Maschile
Contatti:

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da maxbigsi »

da un terminale dai

Codice: Seleziona tutto

sudo gedit /etc/default/grub
in questa riga

Codice: Seleziona tutto

# GRUB_GFXMODE=640x480
togli il cancelletto, chiudi e salva il file e poi dai questo comando

Codice: Seleziona tutto

sudo update-grub
e riavvia

Edit: per lo sfondo http://www.istitutomajorana.it/index.ph ... Itemid=248 non so comunque se va bene per le ultime versioni di ubuntu
W il software libero..... W Ubuntu -- Ubuntu User # 31322
https://www.ergosumracalmuto.org/inform ... /index.php
Avatar utente
kripton99
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 462
Iscrizione: sabato 10 marzo 2012, 18:56
Desktop: Xfce-KDE-Gnome
Distribuzione: Indomito irrequieto
Sesso: Maschile

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da kripton99 »

Oppure, altra soluzione per personalizzare Grub:
/AmministrazioneSistema/GrubCustomizer
Mattipo88
Prode Principiante
Messaggi: 12
Iscrizione: venerdì 31 ottobre 2014, 18:11

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da Mattipo88 »

Nessuna di queste soluzioni ha funzionato, non riesco a modificare l'aspetto in nessun modo. Vabbè non è un vero problema, a meno che qualcuno non sappia esattamente la soluzione mi terrò il grub tradizionale...
daigo

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da daigo »

Codice: Seleziona tutto

ls -l /etc/grub.d/05_debian_theme
?
Mattipo88
Prode Principiante
Messaggi: 12
Iscrizione: venerdì 31 ottobre 2014, 18:11

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da Mattipo88 »

daigo ha scritto:

Codice: Seleziona tutto

ls -l /etc/grub.d/05_debian_theme
?

Codice: Seleziona tutto

-rwxr-xr-x 1 root root 6058 nov 30 15:20 /etc/grub.d/05_debian_theme
a che serve?
daigo

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da daigo »

per vedere se lo script ha i permessi di esecuzione, e mi pare che ce li ha, è quello che va a caricare lo splash di grub, ho provato a togliere i permessi al mio e diventa come quello che dici tu, nero.

questo che dice?

Codice: Seleziona tutto

cat -n /etc/grub.d/05_debian_theme
Mattipo88
Prode Principiante
Messaggi: 12
Iscrizione: venerdì 31 ottobre 2014, 18:11

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da Mattipo88 »

Codice: Seleziona tutto

 1	#!/bin/sh
     2	set -e
     3	
     4	# grub-mkconfig helper script.
     5	# Copyright (C) 2010  Alexander Kurtz <kurtz.alex@googlemail.com>
     6	#
     7	# GRUB is free software: you can redistribute it and/or modify
     8	# it under the terms of the GNU General Public License as published by
     9	# the Free Software Foundation, either version 3 of the License, or
    10	# (at your option) any later version.
    11	#
    12	# GRUB is distributed in the hope that it will be useful,
    13	# but WITHOUT ANY WARRANTY; without even the implied warranty of
    14	# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15	# GNU General Public License for more details.
    16	#
    17	# You should have received a copy of the GNU General Public License
    18	# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
    19	
    20	# Include the GRUB helper library for grub-mkconfig.
    21	. /usr/share/grub/grub-mkconfig_lib
    22	
    23	# We want to work in /boot/grub/ only.
    24	test -d /boot/grub; cd /boot/grub
    25	
    26	# Set the location of a possibly necessary cache file for the background image.
    27	# NOTE: This MUST BE A DOTFILE to avoid confusing it with user-defined images.
    28	BACKGROUND_CACHE=".background_cache"
    29	
    30	set_default_theme(){
    31		case $GRUB_DISTRIBUTOR in
    32			Tanglu|Ubuntu|Kubuntu)
    33				# Set a monochromatic theme for Tanglu/Ubuntu.
    34				echo "${1}set menu_color_normal=white/black"
    35				echo "${1}set menu_color_highlight=black/light-gray"
    36	
    37				if [ -e /lib/plymouth/themes/default.grub ]; then
    38					sed "s/^/${1}/" /lib/plymouth/themes/default.grub
    39				fi
    40				;;
    41			*)
    42				# Set the traditional Debian blue theme.
    43				echo "${1}set menu_color_normal=cyan/blue"
    44				echo "${1}set menu_color_highlight=white/blue"
    45				;;
    46		esac
    47	}
    48	
    49	module_available(){
    50		local module
    51		for module in "${1}.mod" */"${1}.mod"; do
    52			if [ -f "${module}" ]; then
    53				return 0
    54			fi
    55		done
    56		return 1
    57	}
    58	
    59	set_background_image(){
    60		# Step #1: Search all available output modes ...
    61		local output
    62		for output in ${GRUB_TERMINAL_OUTPUT}; do
    63			if [ "x$output" = "xgfxterm" ]; then
    64				break
    65			fi
    66		done
    67	
    68		# ... and check if we are able to display a background image at all.
    69		if ! [ "x${output}" = "xgfxterm" ]; then
    70			return 1
    71		fi
    72	
    73		# Step #2: Check if the specified background image exists.
    74		if ! [ -f "${1}" ]; then
    75			return 2
    76		fi
    77	
    78		# Step #3: Search the correct GRUB module for our background image.
    79		local reader
    80		case "${1}" in
    81			*.jpg|*.JPG|*.jpeg|*.JPEG) reader="jpeg";;
    82			*.png|*.PNG) reader="png";;
    83			*.tga|*.TGA) reader="tga";;
    84			*) return 3;; # Unknown image type.
    85		esac
    86	
    87		# Step #4: Check if the necessary GRUB module is available.
    88		if ! module_available "${reader}"; then
    89			return 4
    90		fi
    91	
    92		# Step #5: Check if GRUB can read the background image directly.
    93		# If so, we can remove the cache file (if any). Otherwise the backgound
    94		# image needs to be cached under /boot/grub/.
    95		if is_path_readable_by_grub "${1}"; then
    96			rm --force "${BACKGROUND_CACHE}.jpeg" \
    97				"${BACKGROUND_CACHE}.png" "${BACKGROUND_CACHE}.tga"
    98		elif cp "${1}" "${BACKGROUND_CACHE}.${reader}"; then
    99			set -- "${BACKGROUND_CACHE}.${reader}" "${2}" "${3}"
   100		else
   101			return 5
   102		fi
   103	
   104		# Step #6: Prepare GRUB to read the background image.
   105		if ! prepare_grub_to_access_device "`${grub_probe} --target=device "${1}"`"; then
   106			return 6
   107		fi
   108	
   109		# Step #7: Everything went fine, print out a message to stderr ...
   110		echo "Found background image: ${1}" >&2
   111	
   112		# ... and write our configuration snippet to stdout. Use the colors
   113		# desktop-base specified. If we're using a user-defined background, use
   114		# the default colors since we've got no idea how the image looks like.
   115		# If loading the background image fails, use the default theme.
   116		echo "insmod ${reader}"
   117		echo "if background_image `make_system_path_relative_to_its_root "${1}"`; then"
   118		if [ -n "${2}" ]; then
   119			echo "  set color_normal=${2}"
   120		fi
   121		if [ -n "${3}" ]; then
   122			echo "  set color_highlight=${3}"
   123		fi
   124		if [ -z "${2}" ] && [ -z "${3}" ]; then
   125			echo "  true"
   126		fi
   127		echo "else"
   128		set_default_theme "  "
   129		echo "fi"
   130	}
   131	
   132	# Earlier versions of grub-pc copied the default background image to /boot/grub
   133	# during postinst. Remove those obsolete images if they haven't been touched by
   134	# the user. They are still available under /usr/share/images/desktop-base/ if
   135	# desktop-base is installed.
   136	while read checksum background; do
   137		if [ -f "${background}" ] && [ "x`sha1sum "${background}"`" = "x${checksum}  ${background}" ]; then
   138			echo "Removing old background image: ${background}" >&2
   139			rm "${background}"
   140		fi
   141	done <<EOF
   142	648ee65dd0c157a69b019a5372cbcfea4fc754a5  debian-blueish-wallpaper-640x480.png
   143	0431e97a6c661084c59676c4baeeb8c2f602edb8  debian-blueish-wallpaper-640x480.png
   144	968ecf6696c5638cfe80e8e70aba239526270864  debian-blueish-wallpaper-640x480.tga
   145	11143e8c92a073401de0b0fd42d0c052af4ccd9b  moreblue-orbit-grub.png
   146	d00d5e505ab63f2d53fa880bfac447e2d3bb197c  moreblue-orbit-grub.png
   147	f5b12c1009ec0a3b029185f6b66cd0d7e5611019  moreblue-orbit-grub.png
   148	EOF
   149	
   150	# Include the configuration of desktop-base if available.
   151	if [ -f "/usr/share/desktop-base/grub_background.sh" ]; then
   152		. "/usr/share/desktop-base/grub_background.sh"
   153	fi
   154	
   155	# First check whether the user has specified a background image explicitly.
   156	# If so, try to use it. Don't try the other possibilities in that case
   157	# (#608263).
   158	if [ -n "${GRUB_BACKGROUND+x}" ]; then
   159		set_background_image "${GRUB_BACKGROUND}" || set_default_theme
   160		exit 0
   161	fi
   162	
   163	# Next search for pictures the user put into /boot/grub/ and use the first one.
   164	for background in *.jpg *.JPG *.jpeg *.JPEG *.png *.PNG *.tga *.TGA; do
   165		if set_background_image "${background}"; then
   166			exit 0
   167		fi
   168	done
   169	
   170	# Next try to use the background image and colors specified by desktop-base.
   171	if set_background_image "${WALLPAPER}" "${COLOR_NORMAL}" "${COLOR_HIGHLIGHT}"; then
   172		exit 0
   173	fi
   174	
   175	# If we haven't found a background image yet, use the default from desktop-base.
   176	case $GRUB_DISTRIBUTOR in
   177		Ubuntu|Kubuntu)
   178			;;
   179		Tanglu)
   180			if set_background_image "/usr/share/images/grub/grub.png"; then
   181				exit 0
   182			fi
   183			;;
   184		*)
   185			if set_background_image "/usr/share/images/desktop-base/desktop-grub.png"; then
   186				exit 0
   187			fi
   188			;;
   189	esac
   190	
   191	# Finally, if all of the above fails, use the default theme.
   192	set_default_theme
daigo

Re: Risoluzione del grub e riavvio che non funziona

Messaggio da daigo »

mah, non saprei anche quello mi pare a posto
Scrivi risposta

Ritorna a “Dilemmi del principiante”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti