[grub] cambiare il sistema operativo d'avvio

Installazione, configurazione e uso di programmi e strumenti.
trichy
Prode Principiante
Messaggi: 69
Iscrizione: martedì 5 dicembre 2006, 13:43

[grub] cambiare il sistema operativo d'avvio

Messaggio da trichy »

Ho un HD ripartito tra Gusty e Kubuntu 4.1o. Kubuntu è l'ultimo s.o. installato, ma all'avvio è quello chemi appare. Come posso fare ad avere Ubuntu come sistema principale? Guardare fisso il monitor, per selezionarlo, durante la frazione di pochi secondi in cui mi appare lla finestradi opzione mi appare molto scomodo.
Agire sul default di menu.lst non è risultato bastare.
P.S.
E possibile passare all'altro s.o., quando siamo già dentro a quello che ci appare dopo l'avvio?
Ultima modifica di trichy il martedì 18 dicembre 2007, 23:06, modificato 1 volta in totale.
Avatar utente
carver55
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2490
Iscrizione: domenica 13 agosto 2006, 10:52
Località: lucca

Re: [grub] cambiare il sistema operativo d'avvio

Messaggio da carver55 »

default ti fa scegliere il sistema che parte alla fine del timeout. 0 per il primo della lista e così via. Per prolungare a schermo il tempo di permanenza del menù devi agire su timeout (qualche riga sotto default).
Linux User # 454540. Ubu user #17949
Ci sedemmo dalla parte del torto perchè tutti gli altri posti erano occupati.
Avatar utente
Totux
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1478
Iscrizione: sabato 28 aprile 2007, 14:41
Distribuzione: Ubuntu 12.04
Località: Milano
Contatti:

Re: [grub] cambiare il sistema operativo d'avvio

Messaggio da Totux »

Ci sono moltissimi posts sull'argomento...
Una ricerchina? ;)
Questo è solo l'ultimo in ordine di tempo...
http://forum.ubuntu-it.org/viewtopic.php?t=143377
Ciau
Totò
Avatar utente
GiovEdi
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1307
Iscrizione: martedì 2 ottobre 2007, 10:21

Re: [grub] cambiare il sistema operativo d'avvio

Messaggio da GiovEdi »

trichy ha scritto:
... Kubuntu è l'ultimo s.o. installato...

... Agire sul default di menu.lst non è risultato bastare...
@ trichy

in generale, il S.O. installato per ultimo tende ad appropriarsi del bootloader

pertanto, dovresti modificare il menu.lst che sta nella partizione di Kubuntu
prima leggere, poi casomai scrivere
« domandasti e ... ti risposi! » (Liz&Richard)
trichy
Prode Principiante
Messaggi: 69
Iscrizione: martedì 5 dicembre 2006, 13:43

Re: [grub] cambiare il sistema operativo d'avvio

Messaggio da trichy »

(good)
Grazie Giovedi
Ho cambiato il numero di default del menu.lst dell'ultimo s.o. installato. Dopo vari tentativi, impostando il numero 4 sono riscito ad avviare con il s.o. da me desiderato (ubuntu 7.10 che avevo installato per primo). ;D
>:(L'unico dubbio che mi rimane è la spiegazione logica del perchè ho dovuto mettere il 4.
Per chi mi volesse aiutare posto il menu.lst, per come era prima del cambiamento:

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		3


## 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=9cc0fb8f-278a-42ff-8e8c-fe758f09b446 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

## ## End Default Options ##

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=9cc0fb8f-278a-42ff-8e8c-fe758f09b446 ro quiet splash
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=9cc0fb8f-278a-42ff-8e8c-fe758f09b446 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 an existing
# linux installation on /dev/sda1.
title		Ubuntu 7.10, kernel 2.6.22-14-generic (on /dev/sda1)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=4d06e1b5-38fb-4d09-b81a-cc82ce4783a7 ro quiet splash 
initrd		/boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode) (on /dev/sda1)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=4d06e1b5-38fb-4d09-b81a-cc82ce4783a7 ro single 
initrd		/boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title		Ubuntu 7.10, memtest86+ (on /dev/sda1)
root		(hd0,0)
kernel		/boot/memtest86+.bin  
savedefault
boot
Avatar utente
GiovEdi
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1307
Iscrizione: martedì 2 ottobre 2007, 10:21

Re: [grub] cambiare il sistema operativo d'avvio

Messaggio da GiovEdi »

trichy ha scritto:
L'unico dubbio che mi rimane è la spiegazione logica del perchè ho dovuto mettere il 4.
Per chi mi volesse aiutare...
E' semplice:

- prima hai installato ubuntu su sda1 che grub preferisce chiamare (hd0,0)
- poi su sda3 (hd0,2) hai installato kubuntu, il quale si è appunto appropriato dell'MBR e quindi ha messo per prime in grub le sue 3 opzioni di avvio e spostando per ultime le 3 che ha trovato già e che si riferiscono all'ubuntu precedentemente installato
- perciò partendo da 0 e contando le volte che appaiono le righe title e root, si arriva alla 5° opzione di avvio (sì, bisogna contare anche il divider) ed ecco il tuo default=4 per ubuntu

tutto chiaro?

l'unico problema potrebbe avvenire nel caso ci sia un aggiornamento del kernel di ubuntu
infatti solo le prime 3 opzioni (quelle che si trovano in "DEBIAN AUTOMAGIC") saranno automaticamente aggiornati dal grub
le altre opzioni dovranno essere aggiornate a mano

soluzione? installare il S.O. preferito per ultimo...  ;D

ciao
prima leggere, poi casomai scrivere
« domandasti e ... ti risposi! » (Liz&Richard)
trichy
Prode Principiante
Messaggi: 69
Iscrizione: martedì 5 dicembre 2006, 13:43

Re: [grub] cambiare il sistema operativo d'avvio

Messaggio da trichy »

Grazie ancora.
Prima di mettere il prefisso "risolto" volevo ribadire  con parte de primo post.
E' possibile passare all'altro s.o., quando siamo già dentro a quello che ci appare dopo l'avvio?
Ultima modifica di trichy il mercoledì 26 dicembre 2007, 16:16, modificato 1 volta in totale.
Avatar utente
Totux
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1478
Iscrizione: sabato 28 aprile 2007, 14:41
Distribuzione: Ubuntu 12.04
Località: Milano
Contatti:

Re: [grub] cambiare il sistema operativo d'avvio

Messaggio da Totux »

trichy ha scritto: Grazie ancora.
Prima di mettere il prefisso "risolto" volevo ribadire  con parte de primo post.
E' possibile passare all'altro s.o., quando siamo già dentro a quello che ci appare dopo l'avvio?
Un modo c'è, riavviare ;D...
Non puoi cambiare OS "in corsa" devi riavviare il pc...
Ciao e auguri (b2b)
Totò
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti