Pagina 1 di 1

modificare il testo "title" in menù.lst [risolto]

Inviato: domenica 4 aprile 2010, 10:00
da devil2974
Ciao a tutti, porgo innanzi tutto i miei più cordiali e sinceri auguri di una Buona Pasqua a tutti voi di vero cuore.

Vengo dunque subito al mio problema:

Nel grub io mi ritrovo un kernel in più, mi risulta un 3-14 quando il primo in lista è il 3-20 (o 3-21 non ricordo bene)

ho cercato di seguire una guida presente nel blog di il_muflone questa:

http://ubuntrucchi.wordpress.com/2010/0 ... #more-2281

stranamente, dopo aver rimosso dal gestore pacchetti la voce

"Linux-image ecc ecc 3-14"  non trovo altre voci da rimuovere quindi dal gestore pacchetti risulta esser rimosso ho provato a verificare che non avessi tralasciato qualche altra voce ma almeno dopo un paio di verifiche sembra rimosso. La cosa strana e che, al riavvio del pc, io mi ritrovo sempre queste due voci del kernel 3-14 (due erchè in esse c'è anche la recovery mode). Dunque, non so come eliminarla e tenere solo l'ultima la 3.20 (o 21 non ricordo adesso). Avevo quindi pensato di eliminare quella voce inerente al kernel ormai obsoleto, levando il testo nel menù.lst.
Con la distro ubuntu 9.04 bastava andare nel percorso Boot----->Grub----Menù.lst e da li riuscivo, ora usando karmic e andando in quello stesso percorso, ho sempre il file menù.lst solo che non riesco non solo a individuare la voce che a me interessa rimuovere ma nemmeno la voce inerente a windows seven, sulla macchina in questione infatti è installato anche windows seven. Se non ricordo male qualche mese fa ho avuto lo stesso problema non di eliminare il kernel obosoleto ma di modificare le voci in elenco al boot di avvio.
Non riesco però a recuperare quel post dove mi fu indicato come risolvere.

Rinnovando nuovamente i miei auguri di una felice e serena Pasqua a tutti voi, vi ringrazio anticipatamente per il vostro sempre costante e valoroso aiuto.

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 10:02
da patel

Codice: Seleziona tutto

sudo grub-install -v
per vedere quale versione del grub hai

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 10:20
da devil2974
patel ha scritto:

Codice: Seleziona tutto

sudo grub-install -v
per vedere quale versione del grub hai

questa:

Codice: Seleziona tutto

grub-install (GNU GRUB 0.97)

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 11:17
da ^alessio^
Ciao,posta

Codice: Seleziona tutto

cat /boot/grub/menu.lst
e

Codice: Seleziona tutto

cat /boot/grub/grub.cfg
perchè mi sa che li hai tutte due.

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 11:46
da devil2974
ecco gli output come da te richiesti in sequenza:

Codice: Seleziona tutto

miciomax@miciomax-laptop:~$ cat /boot/grub/menu.lst
# 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 use 'savedefault' 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		3

## 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=374ba07c-d9f5-4762-966c-01f7f21c18ba ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=374ba07c-d9f5-4762-966c-01f7f21c18ba

## 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

## 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=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 9.10, kernel 2.6.31-21-generic
uuid		374ba07c-d9f5-4762-966c-01f7f21c18ba
kernel		/boot/vmlinuz-2.6.31-21-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro quiet splash 
initrd		/boot/initrd.img-2.6.31-21-generic

title		Ubuntu 9.10, kernel 2.6.31-21-generic (recovery mode)
uuid		374ba07c-d9f5-4762-966c-01f7f21c18ba
kernel		/boot/vmlinuz-2.6.31-21-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro  single
initrd		/boot/initrd.img-2.6.31-21-generic

title		Ubuntu 9.10, kernel 2.6.31-20-generic
uuid		374ba07c-d9f5-4762-966c-01f7f21c18ba
kernel		/boot/vmlinuz-2.6.31-20-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro quiet splash 
initrd		/boot/initrd.img-2.6.31-20-generic

title		Ubuntu 9.10, kernel 2.6.31-20-generic (recovery mode)
uuid		374ba07c-d9f5-4762-966c-01f7f21c18ba
kernel		/boot/vmlinuz-2.6.31-20-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro  single
initrd		/boot/initrd.img-2.6.31-20-generic

title		Chainload into GRUB 2
root		374ba07c-d9f5-4762-966c-01f7f21c18ba
kernel		/boot/grub/core.img

title		Ubuntu 9.10, memtest86+
uuid		374ba07c-d9f5-4762-966c-01f7f21c18ba
kernel		/boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

Codice: Seleziona tutto

miciomax@miciomax-laptop:~$ cat boot/grub/menu.cfg
cat: boot/grub/menu.cfg: Nessun file o directory
miciomax@miciomax-laptop:~$ cat boot/grub/grub.cfg
cat: boot/grub/grub.cfg: Nessun file o directory
miciomax@miciomax-laptop:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-20-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-20-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro single 
	initrd	/boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro single 
	initrd	/boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 70be964ebe960d2a
	chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda3)" {
	insmod fat
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set cced-990e
	drivemap -s (hd0) ${root}
	chainloader +1
}
### 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 ###

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 12:03
da ^alessio^
allora come pensavo, hai sia Grub-legacy che Grub2, praticamente il sistema si avvia con Grub2 ma mette i kernel aggiornati in Grub-legacy,non sei il primo che trovo con questo problema,quindi come ho già consigliato ad altri rimuovi Grub-legacy,nel terminale

Codice: Seleziona tutto

sudo apt-get --purge remove grub
dopo per sicurezza dai

Codice: Seleziona tutto

sudo apt-get install grub-pc
e

Codice: Seleziona tutto

sudo apt-get install grub-common
e probabile che ti risponda che sono già installati ma falli ugualmente,quando hai finito dai

Codice: Seleziona tutto

sudo update-grub
e riavvia il pc

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 12:14
da devil2974
Grazie ale, ho fatto e, tutto sembrerebbe essere andato bene, devo solo riavviare il pc, intanto che riavvio, potresti dirmi come modifico le voci del grub? Il percorso del file da aprire per poi modificarlo qual'è? Devo solo cambiare il testo dove elenca i sistemi operativi sul pc non devo far altro ;) Grazie mille Ale,  (b2b)

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 12:20
da devil2974
ho ancora un kernel in più, visto che con  le tue indicazioni hi risolto il problema che hai rilevato ora dovrei riuscire seguendo la guida presente nel blog de il_muflone?

http://ubuntrucchi.wordpress.com/2010/0 ... #more-2281

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 12:25
da ^alessio^
dimmi qual'è il kernel che vuoi rimuovere e postami

Codice: Seleziona tutto

cat /boot/grub/grub.cfg

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 13:38
da devil2974
Beh, non so se sia il caso o meno di rimuovere il doppio kernel, se non è necessario tenerlo lo vorrei rimuovere, certo, ora quando avvio ubuntu 9.10 come kernel mi avvia il primo ovvero il 21 finale, mentre quello doppio non  risulta esere più il 14 ma il 20 non so dimmi tu coa sarebbe meglio fare.

l'output del comando indicato date prima è questo:

Codice: Seleziona tutto

miciomax@miciomax-laptop:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-21-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-21-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-21-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-21-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro single 
	initrd	/boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-20-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 374ba07c-d9f5-4762-966c-01f7f21c18ba
	linux	/boot/vmlinuz-2.6.31-20-generic root=UUID=374ba07c-d9f5-4762-966c-01f7f21c18ba ro single 
	initrd	/boot/initrd.img-2.6.31-20-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 70be964ebe960d2a
	chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda3)" {
	insmod fat
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set cced-990e
	drivemap -s (hd0) ${root}
	chainloader +1
}
### 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 ###

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 14:23
da ^alessio^
io il 2.6.31-20 lo terrei,metti che il sistema non si avvii con il 2-6-31-21 puoi avviare con l'altro,adesso se ho capito, tu il 2.6.31-20 non vuoi vederlo nella schermata di Grub quando avvii il pc?

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 14:30
da devil2974
esatto, vorrei non averlo in elenco ma, visto il tuo consiglio, a questo punto lo tengo, veramente hai ragione, non si sa mai...non dovesse avviarsi ubuntu per qualsiasi motivo,ho sempre l'altro kernel di emergenza, quindi dai, va bene così lo tengo quindi, se mi dai il percoso del file da modificare, mi modifico solo il testo, invece di visualizzare "Linux-image ecc ecc vorrei solo visualizzare "Linux".
Quindi mi odifico solo il testo ma il kernel lo lascio al suo posto. Mi servirebbe solo sapere il percorso esatto, lo trovo in:

/boot/Grub/menu.lst oppure è un altro percoso che devo andare a cercare? Come dicevo prima all'inizio, con ubuntu jaunty bastava andare a cercare il file menu.lst nel percorso citato prima, con karmic non so  :-\

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 14:41
da ^alessio^
il percorso è /etc/default/grub e leggiti questa http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub con Grub2 molte cose sono cambiate,
se il resto è tutto a posto metti risolto

Ciao  ;)

Re: modificare il testo "title" in menù.lst

Inviato: domenica 4 aprile 2010, 14:44
da devil2974
:) Si, infatti è solo quest'ultima cosa che vorrei fare, grazie di cuore per la pazienza e per l'aiuto grazie mille ^alessio^  (b2b)

Re: modificare il testo "title" in menù.lst [risolto]

Inviato: domenica 4 aprile 2010, 14:55
da patel
in conclusione il testo non lo puoi cambiare

Re: modificare il testo "title" in menù.lst [risolto]

Inviato: domenica 4 aprile 2010, 15:40
da devil2974
non importa, va bene lo stesso così,  ;)