Problema Grub [RISOLTO]

Installazione, configurazione e uso di programmi e strumenti.
sam fisher
Prode Principiante
Messaggi: 117
Iscrizione: giovedì 22 marzo 2007, 13:34

Problema Grub [RISOLTO]

Messaggio da sam fisher »

Salve ragazzi volevo un aiuto su cm editare opportunamente grub per visualizzare all'avvio del computer nella lista dei s.o. un solo kernel di kubuntu.
Ho provato ad editare grub cm segue ma non ho  risolto nulla.

p.s. ma  è possibile eliminare il vecchio kernel e lasciare solo il nuovo ?

Codice: Seleziona tutto

 # menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		30

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash locale=it_IT

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
#howmany=1

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title		Ubuntu, kernel 2.6.20-16-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-16-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro quiet splash locale=it_IT
initrd		/boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-16-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro single
initrd		/boot/initrd.img-2.6.20-16-generic

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro quiet splash locale=it_IT
initrd		/boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro single
initrd		/boot/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd0,2)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Home Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1

Ultima modifica di sam fisher il domenica 5 agosto 2007, 9:58, modificato 1 volta in totale.
Avatar utente
Schwitzd
Rampante Reduce
Rampante Reduce
Messaggi: 7622
Iscrizione: martedì 4 luglio 2006, 10:44
Località: Svizzera
Contatti:

Re: Problema Grub

Messaggio da Schwitzd »

Devi cancellare queste righe

Codice: Seleziona tutto

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro quiet splash locale=it_IT
initrd		/boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro single
initrd		/boot/initrd.img-2.6.20-15-generic
La RAM è come la gnocca non è mai abbastanza!
Pagine Personale sul wiki
Contribuisci alla Documentazione
Avatar utente
granma
Rampante Reduce
Rampante Reduce
Messaggi: 9705
Iscrizione: domenica 8 gennaio 2006, 14:44

Re: Problema Grub

Messaggio da granma »

Ti consiglio di lasciarne almeno due perche' se uno ti da problemi hai l' altro
I cuccioli come i poeti sono puri e fragili difendiamo il loro mondo.
Dai diamanti non nasce niente ,dal letame nascono i fior
Roma Roma bella t'ho dipinta io gialla come il soole rossa come il core mio
sam fisher
Prode Principiante
Messaggi: 117
Iscrizione: giovedì 22 marzo 2007, 13:34

Re: Problema Grub

Messaggio da sam fisher »

Supremus ha scritto: Devi cancellare queste righe

Codice: Seleziona tutto

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro quiet splash locale=it_IT
initrd		/boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=9d868f28-755d-4802-846c-44bf81860a6e ro single
initrd		/boot/initrd.img-2.6.20-15-generic

Grazie ho risolto !!! ;D
Avatar utente
granma
Rampante Reduce
Rampante Reduce
Messaggi: 9705
Iscrizione: domenica 8 gennaio 2006, 14:44

Re: Problema Grub

Messaggio da granma »

Se in futuro avrai ( spero di no per te) problemi con il kernel poi non ti lamentare se non rieci  a far partire il sistema
I cuccioli come i poeti sono puri e fragili difendiamo il loro mondo.
Dai diamanti non nasce niente ,dal letame nascono i fior
Roma Roma bella t'ho dipinta io gialla come il soole rossa come il core mio
Avatar utente
Schwitzd
Rampante Reduce
Rampante Reduce
Messaggi: 7622
Iscrizione: martedì 4 luglio 2006, 10:44
Località: Svizzera
Contatti:

Re: Problema Grub

Messaggio da Schwitzd »

Modifica il titolo del primo post e aggiungi [RISOLTO]

PS: Io mi sono limitato solamente a rispondere alla tua domanda... però sappi che quello che dice granma è corretto se per caso un kernel non va più puoi sempre usare l'altro.. mentre se ne hai solo uno e quello non va sono cavoli...

;D
La RAM è come la gnocca non è mai abbastanza!
Pagine Personale sul wiki
Contribuisci alla Documentazione
sam fisher
Prode Principiante
Messaggi: 117
Iscrizione: giovedì 22 marzo 2007, 13:34

Re: Problema Grub

Messaggio da sam fisher »

granma ha scritto: Se in futuro avrai ( spero di no per te) problemi con il kernel poi non ti lamentare se non rieci  a far partire il sistema
infatti dopo il tuo consiglio non lo cancello più il kernel precedente.
Ma se io adesso ho il grub che permette di visualizzare solo un kernel posso sempre far partire il kernel prcedente da grub o no in caso di problemi ?
Ultima modifica di sam fisher il domenica 5 agosto 2007, 9:58, modificato 1 volta in totale.
Avatar utente
granma
Rampante Reduce
Rampante Reduce
Messaggi: 9705
Iscrizione: domenica 8 gennaio 2006, 14:44

Re: Problema Grub [RISOLTO]

Messaggio da granma »

Il kernel  non  l'hai disintallato quindi c'e' pero' l'hai tolto dalla lista del grub quindi non puoi farlo partire perche' non ti appare.
I cuccioli come i poeti sono puri e fragili difendiamo il loro mondo.
Dai diamanti non nasce niente ,dal letame nascono i fior
Roma Roma bella t'ho dipinta io gialla come il soole rossa come il core mio
Avatar utente
mau
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1841
Iscrizione: martedì 18 aprile 2006, 20:49
Desktop: Gnome Cinnamon
Distribuzione: *Ubuntu - Elementary - MInt
Località: Maremma Toscana

Re: Problema Grub [RISOLTO]

Messaggio da mau »

granma ha scritto: Il kernel  non  l'hai disintallato quindi c'e' pero' l'hai tolto dalla lista del grub quindi non puoi farlo partire perche' non ti appare.
quindi la soluzione peggiore che potevi fare
per non visualizzarlo nel menù di grub era sufficiente commentare (aggiungere #) alle righe di "title" del kernel
Ubuntu User #7046

Codice: Seleziona tutto

sudo apt-get moo
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 14 ospiti