Pagina 1 di 1
[Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 16:15
da marco_13
Ciao a tutti !!!!
Sono un nuovo utente di ubuntu e dopo averlo installato vorrei modificare il grub, visto che non sono l'unico utilizzatore del computer....
Ho guardato in giro sul forum è ho notato un post dove viene consigliato di usare il seguente comando da terminale:
sudo gedit /boot/grub/menu.lst
ma il terminale mi ritorna questo:
sudo gedit /boot/grub/menu.lst
A cosa può essere dovuto???
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 16:23
da dr.tom
Ciao
Ho guardato in giro sul forum è ho notato un post dove viene consigliato di usare il seguente comando da terminale:
Citazione
sudo gedit /boot/grub/menu.lst
ma il terminale mi ritorna questo:
Citazione
sudo gedit /boot/grub/menu.lst
A cosa può essere dovuto???
Penso che tu abbia sbagliato ad incollare l'output del comando...
Comunque prima di modificare qualunque cosa leggi il wiki
AmministrazioneSistema/Grub
Inoltre ti consiglio di leggere la
risposta che ho dato ad un altro utente pochi giorni fa...
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 18:59
da marco_13
grazie per l'aiuto, però vorrei capire a cosa può essere dovuto questo errore:
Codice: Seleziona tutto
marco@marco-desktop:~$ sudo
sudo: unable to resolve host marco-desktop
penso che sia questo il problema...
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 20:16
da dr.tom
Prova a fare una ricerca nel forum con la chiave "sudo: unable to resolve host" (fra virgolette) e guarda quanti thread vengono fuori...
In particolare ti suggerisco
questo (yes)
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 20:25
da alessio78
ciao a tutti
ragazzi sono un vero niubbo con ubuntu....sono alle prime armi e mi servirebbe un aiutino da parte di qualche anima pia..... ovvio che un girono spero di poter restituire quell'aiuto a qualche bisognoso..... vengo al dunque:
sto provando a modificare il boot loader dal menu.lst..... l'ho aperto con gedit e ora posso modificarlo...... in pratica seguendo le istruzioni di WIKI sembra che si possa fare seguendo passo passo quello che dice, però cercate di farmi capire, alla fine del fiel c'è la parte che riporto di seguito e a mio avviso è quella che va modificata:
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=bd3c2c71-915c-4135-8720-fe77b490b4ea ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=bd3c2c71-915c-4135-8720-fe77b490b4ea ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04, memtest86+
root (hd1,4)
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 Windows NT/2000/XP
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda3
title Microsoft Windows XP Professional
root (hd0,2)
savedefault
makeactive
chainloader +1
praticamente devo scambiare i primi tre sistemi operativi con gli ultimi due che sono quelli di windows, in effetti a me servirebbe che allo scadere del countdown partisse XP e non ubuntu, cosicche mi copio :
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=bd3c2c71-915c-4135-8720-fe77b490b4ea ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
dove sta XO professional e sul primo sistema operativo ci metto:
title Microsoft Windows XP Professional
root (hd0,2)
savedefault
makeactive
chainloader +1
QUESTO POTREBBE MODIFICARE IL BOOT LOADER ALL'AVVIO DELLA MACCHINA?
CIAO GRAZIE A TUTTI
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 20:36
da patel
hai detto giusto.
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 20:37
da trekfan1
Se vuoi far partire XP in automatico devi modificare il valore che segue la parola default nel tuo caso deve diventare:
default 4
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 18 maggio 2008, 20:43
da dr.tom
Cito da una mia risposta data nel thread che ho linkato a marco_13 nel secondo post di questa discussione
Se non vuoi "smanettare" nel menu.list installa il pacchetto startupmanager. Lo trovi nei repository di Ubuntu.
Trovi altre informazioni nel wiki:
AmministrazioneSistema/Grub/StartUpManager. Dopo averlo installato avvialo da Sistema -> Amministrazione.
In pratica è un'interfaccia grafica per modificare GRUB come più preferisci. Da lì puoi anche impostare un tema o uno sfondo. Se vuoi qualche sfondo già pronto installa anche il pacchetto grub-splashimages.
Per fare piccole modifiche a GRUB penso sia la soluzione più semplice... (yes)
Re: [Install] [GRUB]problemi a modificare grub
Inviato: lunedì 19 maggio 2008, 15:25
da alessio78
si ho capito che c'è un programma che lo può fare con interfaccia grafica ma io vorrei farlo da solo per cercare di imparare ad usare ubuntu......
detto questo credo si aver capito, lancio il file con - gedit menu.lst ...... mi apre il testo con l'editor di testo, lo modifico alla voce default e ci metto il numero 4 che sarebbe il quarto sistema operativo in lista...ok, dopo aver fatto questo come faccio a salvare e a far salvare le modifiche nel file originale menu.lst?
ciao grazie...
Re: [Install] [GRUB]problemi a modificare grub
Inviato: lunedì 19 maggio 2008, 15:40
da patel
alessio78 ha scritto:
lancio il file con - gedit menu.lst ...... mi apre il testo con l'editor di testo, lo modifico alla voce default e ci metto il numero 4 che sarebbe il quarto sistema operativo in lista...ok, dopo aver fatto questo come faccio a salvare e a far salvare le modifiche nel file originale menu.lst?
Non è esatto, apri il terminale, dai il comando
sudo gedit menu.lst dove:
sudo ti permette di dare la password di amministratore
gedit è l'editor di testo
menu.lst è il file da modificare
fatta la modifica salvi come faresti col blocco note ed esci.
Re: [Install] [GRUB]problemi a modificare grub
Inviato: lunedì 19 maggio 2008, 16:49
da dr.tom
Naturalmente se apri il terminale e dai il comando senza andare prima nella cartella "/boot/grub" il comando corretto è
Ti consiglio di dare prima
Codice: Seleziona tutto
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.backup
In questo modo avrai comunque una copia di backup del file, che è utile avere anche per altri eventuali smanettamenti che potresti voler fare...

Re: [Install] [GRUB]problemi a modificare grub
Inviato: giovedì 22 maggio 2008, 19:35
da marco_13
SUDO non ne vuole sapere di andare !!! :'(
Re: [Install] [GRUB]problemi a modificare grub
Inviato: giovedì 22 maggio 2008, 20:00
da fatcat
che sudo non funzioni è una cosa che ho letto è accaduta a molti. Fai una ricerca e vedi come tutti lo hanno facilmente risolto.
ciao
Re: [Install] [GRUB]problemi a modificare grub
Inviato: giovedì 22 maggio 2008, 20:05
da fatcat
Re: [Install] [GRUB]problemi a modificare grub
Inviato: sabato 16 agosto 2008, 21:36
da ThePassenger
Ciao a tutti,
siccome non vorrei combinare pasticci, vi chiedo cortesemente un aiutino per configurare GRUB.
Che valore devo dare nel mio caso a default per far partire Windows XP, appunto, in default? E' corretto 5?
Inoltre, a me appaiono 5 o 6 opzioni su grub, tipo un paio di versioni del kernel di Linux, posso commentarle tutte tenendo solo le prime due più Windows?
Vi incollo di seguito il contenuto del mio menu.lst
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 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 10
## 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=63500184-7ac1-4a98-bd4b-3ae0c09972c7 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
## 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
## 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 8.04.1, kernel 2.6.24-19-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, kernel 2.6.24-16-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04.1, 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 Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
Grazie.
Re: [Install] [GRUB]problemi a modificare grub
Inviato: domenica 17 agosto 2008, 6:55
da patel
per impostare il default devi contare i title e metti default title -1
Si puoi commentare le voci che non vuoi però aggiorna il default
Le varie voci le puoi anche spostare e quindi posizionare win all'inizio con default 0
Re: [Install] [GRUB]problemi a modificare grub
Inviato: sabato 23 agosto 2008, 20:06
da ThePassenger
OK, grazie mille, ora provo.
Ma tutte quelle voci di Ubuntu che ci sono, che sono?
Voglio dire "kernel 2.6.24-16-generic" e soprattutto "memtest86+"...
Mi possono servire o posso tenere soltanto "Ubuntu 8.04.1, kernel 2.6.24-19-generic" e "Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)"?
Re: [Install] [GRUB]problemi a modificare grub
Inviato: sabato 23 agosto 2008, 20:10
da patel
Se il 19 ti va bene e ormai l'hai collaudato le altre versioni le puoi togliere o commentare.
Re: [Install] [GRUB]problemi a modificare grub
Inviato: sabato 23 agosto 2008, 20:22
da ThePassenger
Ah, OK.
Non so... il 16 non credo di averlo neanche mai usato...
Ma in pratica sono due versioni diverse del Kernell che usano la stessa interfaccia Gnome?
E il memtest... a che cosa serve?
Re: [Install] [GRUB]problemi a modificare grub
Inviato: sabato 23 agosto 2008, 20:30
da ThePassenger
OK, funziona.
Ho fatto così:
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 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 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=63500184-7ac1-4a98-bd4b-3ae0c09972c7 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
## 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
## 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 ##
## ## Spostato dal fondo ##
# 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 Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro single
initrd /boot/initrd.img-2.6.24-19-generic
## ## Vecchio Kernel Ubuntu ##
# title Ubuntu 8.04.1, kernel 2.6.24-16-generic
# root (hd0,2)
# kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro quiet splash
# initrd /boot/initrd.img-2.6.24-16-generic
# quiet
# title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
# root (hd0,2)
# kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=63500184-7ac1-4a98-bd4b-3ae0c09972c7 ro single
# initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Ho spostato Windows mettendolo in testa e tenendo 0 come valore di default.
Ho anche aumentato il tempo d'attesa impostandolo a 30 secondi, altrimenti tocca sempre fare le corse!
Grazie di nuovo per l'aiuto.