[Boot] scelta sistema operativo all'avvio

Problemi riscontrati durante l'installazione di Ubuntu, degli aggiornamenti e degli avanzamenti del sistema.
Scrivi risposta
Max119
Prode Principiante
Messaggi: 11
Iscrizione: domenica 23 settembre 2007, 9:41

[Boot] scelta sistema operativo all'avvio

Messaggio da Max119 »

Ciao, premetto che ho dei file molto importanti per lavoro su Vista, vi faccio i complimenti per il sistema operativo che sto imparando ad usare. All'avvio GRUB mi dava l'opportunità di scegliere Ubuntu o vista. Oggi ho scaricato degli aggiornamenti da Vista e al riavvio Vista è sparito da Grub, col comando Sudo gedit /boot/rub/menu.lst ho provato ad inserire:
#Windows Vista
#(hd0,1)
#+1
ma nella scelta continua a non apparirmi Vista. Appena puoi ti prego di darmi una risposta perchè oggi sono bloccato senza il computer per il mio lavoro.
Grazie e complimenti ancora.
Avatar utente
badìl
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14806
Iscrizione: mercoledì 22 agosto 2007, 16:20

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da badìl »

Posta tutto il file /boot/rub/menu.lst. E anche l'output di

Codice: Seleziona tutto

sudo fdisk -l
Credo poi che tu debba togliere i cancelletti ma posta prima il file che lo controlliamo.  :)
Max119
Prode Principiante
Messaggi: 11
Iscrizione: domenica 23 settembre 2007, 9:41

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Max119 »

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes

Dispositivo Boot      Start        End      Blocks  Id  System
/dev/sda1              1        1045    8388608  27  Sconosciuto
/dev/sda2  *        1045      15633  117179392    7  HPFS/NTFS
/dev/sda3          15634      19457    30716280  83  Linux
/dev/sda4          15633      15633        3048+  82  Linux swap / Solaris

Partition table entries are not in disk order
massimo@massimo-laptop:~$
Avatar utente
badìl
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14806
Iscrizione: mercoledì 22 agosto 2007, 16:20

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da badìl »

Serve anche tutto questo file /boot/rub/menu.lst.
Max119
Prode Principiante
Messaggi: 11
Iscrizione: domenica 23 settembre 2007, 9:41

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Max119 »

se ho capito bene: copia/incolla il comando che mi hai segnalato sul terminale, quello che vedi è il risultato
Max119
Prode Principiante
Messaggi: 11
Iscrizione: domenica 23 settembre 2007, 9:41

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Max119 »

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

## 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=/dev/sda3 ro

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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) 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.15-52-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-52-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-52-386
savedefault
boot

title Windows 95/98/NT/2000/VISTA
# root (hd0,2)
# makeactive
# chainloader +1
#

title Ubuntu, kernel 2.6.15-52-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-52-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-52-386
boot

title Ubuntu, kernel 2.6.15-29-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-29-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-29-386
savedefault
boot

title Ubuntu, kernel 2.6.15-29-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-29-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-29-386
boot

title Ubuntu, kernel 2.6.15-26-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot

title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST
Grazie per l'aiuto
Avatar utente
badìl
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14806
Iscrizione: mercoledì 22 agosto 2007, 16:20

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da badìl »

Codice: Seleziona tutto

gedit /boot/grub/menu.lst
No, l'output di questo.

Ok, l'hai postato mentre scrivevo.
Max119
Prode Principiante
Messaggi: 11
Iscrizione: domenica 23 settembre 2007, 9:41

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Max119 »

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

## 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=/dev/sda3 ro

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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) 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.15-52-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-52-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-52-386
savedefault
boot

title Windows 95/98/NT/2000/VISTA
# root (hd0,2)
# makeactive
# chainloader +1
#

title Ubuntu, kernel 2.6.15-52-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-52-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-52-386
boot

title Ubuntu, kernel 2.6.15-29-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-29-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-29-386
savedefault
boot

title Ubuntu, kernel 2.6.15-29-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-29-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-29-386
boot

title Ubuntu, kernel 2.6.15-26-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot

title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST
è quello giusto?
Avatar utente
badìl
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14806
Iscrizione: mercoledì 22 agosto 2007, 16:20

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da badìl »

Codice: Seleziona tutto

sudo gedit /boot/grub/menu.lst
In fondo aggiungi questo

Codice: Seleziona tutto

# 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/sda2
title		Windows Vista (loader)
root		(hd0,1)
savedefault
makeactive
chainloader	+1
E cancella pure le righe che avevi aggiunto prima.

Codice: Seleziona tutto

title      Windows 95/98/NT/2000/VISTA
# root      (hd0,2)
# makeactive
# chainloader   +1
#
Riavvia e vedi se funziona.
Ultima modifica di badìl il giovedì 2 ottobre 2008, 11:41, modificato 1 volta in totale.
Max119
Prode Principiante
Messaggi: 11
Iscrizione: domenica 23 settembre 2007, 9:41

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Max119 »

Grazie funziona, se ti va puoi spiegarmi cosa è successo e cosa vogliono dire i comandi che mi hai dato e quelli tra parentisi (o,1) ecc.
Grazie ancora
Avatar utente
badìl
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14806
Iscrizione: mercoledì 22 agosto 2007, 16:20

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da badìl »

In pratica sono gli stessi comandi che avevi messo tu, solo che te li ho fatti mettere in fondo.
La cosa che avevi sbagliato era appunto il numero tra parentesi. (0,2) quello che avevi messo tu.

Infatti come si vede dalla tabella delle partizioni che hai postato

Codice: Seleziona tutto

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1045     8388608   27  Sconosciuto
/dev/sda2   *        1045       15633   117179392    7  HPFS/NTFS
/dev/sda3           15634       19457    30716280   83  Linux
/dev/sda4           15633       15633        3048+  82  Linux swap / Solaris
Vista è su /dev/sda2 Cioè la seconda partizione del primo (in questo caso unico) disco fisso. Però grub inizia a contare da zero, quindo devi digli di andare a cercare Vista in (hd 0,1) dove 0 sta per primo disco e 1 per seconda partizione.
ubuntu invece lo cerca in (hd 0,2) cioè 0= primo disco 2= terza partizione (infatti è su /dev/sda3).
Capito?
Max119
Prode Principiante
Messaggi: 11
Iscrizione: domenica 23 settembre 2007, 9:41

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Max119 »

Grazie ancora ciao
Zerenthal
Prode Principiante
Messaggi: 137
Iscrizione: venerdì 31 ottobre 2008, 19:46

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Zerenthal »

Anche io mi trovo con lo stesso problema.. infatti vorrei impostare come boot primario il sistema operativo winXPpro.. posto la seguente lista di grub.. dove e come andrebbe modificata?

# 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=b83a0903-82c3-472a-a3c2-66b71ed98c75 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-21-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=b83a0903-82c3-472a-a3c2-66b71ed98c75 ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=b83a0903-82c3-472a-a3c2-66b71ed98c75 ro single
initrd /boot/initrd.img-2.6.24-21-generic

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=b83a0903-82c3-472a-a3c2-66b71ed98c75 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=b83a0903-82c3-472a-a3c2-66b71ed98c75 ro single
initrd /boot/initrd.img-2.6.24-19-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
1)Pc in uso frequente: Acer Extensa - CPU: Intel(R) Pentium(R) Dual  CPU  E2220,RAM: 1x4gb DDR3, VIDEO: nvidia GeForce GT 620, Hardisk:  320gb SATA II, SO: Ubuntu 12.04LTS 64bit -
2) Pc di casa: Olidata - CPU: Amd Athlon 64 Processor 3200+,RAM: 1.5gb SDRAM, VIDEO: nvidia GeForce 6200 TurboCache(TM), AUDIO: CK804 AC'97 Audio Controller,Hardisk: 250gb SATA, SO: Kubuntu 12.10 64bit -
Avatar utente
setun2
Prode Principiante
Messaggi: 108
Iscrizione: giovedì 10 luglio 2008, 9:53
Località: Padua

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da setun2 »

Nel tuo caso basta che cambi il numero di default che in automatico è 0. Se non ho contato male devi sostituire con 6
ti capitasse di aggiornare il kernel, si aggiungeranno delle nuove righe di ubuntu, in quel caso dovrai andare ad aumentare il numero del default. basta che cominci a contare i blocchi dallo 0 comunque.
Zerenthal ha scritto: Anche io mi trovo con lo stesso problema.. infatti vorrei impostare come boot primario il sistema operativo winXPpro.. posto la seguente lista di grub.. dove e come andrebbe modificata?

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

## 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=b83a0903-82c3-472a-a3c2-66b71ed98c75 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-21-generic            #0: di default
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=b83a0903-82c3-472a-a3c2-66b71ed98c75 ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)    #1
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=b83a0903-82c3-472a-a3c2-66b71ed98c75 ro single
initrd /boot/initrd.img-2.6.24-21-generic

title Ubuntu 8.04.1, kernel 2.6.24-19-generic  #2
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=b83a0903-82c3-472a-a3c2-66b71ed98c75 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)    #3
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=b83a0903-82c3-472a-a3c2-66b71ed98c75 ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, memtest86+    #4
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:                    #5
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional    #6
root (hd0,0)
savedefault
makeactive
chainloader +1
Se dico sciocchezze perdonatemi: sono un niubbo e vado a tentativi :)
Zerenthal
Prode Principiante
Messaggi: 137
Iscrizione: venerdì 31 ottobre 2008, 19:46

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Zerenthal »

Oh grazie, molto gentile :).
Vorrei portare l'esempio di un mio conoscente che come me ha installato sia linux che win XP. A lui però, quando avvia la macchina, non compare la lista dei sistemi operativi, ma si avvia automaticamente XP.. solamente premendo "Esc" prima che si avvii Windows può accedere alla schermata di scelta tra i sistemi operativi installati. Sapreste indicarmi il modo per riprodurre la stessa cosa?
Ultima modifica di Zerenthal il mercoledì 5 novembre 2008, 19:47, modificato 1 volta in totale.
1)Pc in uso frequente: Acer Extensa - CPU: Intel(R) Pentium(R) Dual  CPU  E2220,RAM: 1x4gb DDR3, VIDEO: nvidia GeForce GT 620, Hardisk:  320gb SATA II, SO: Ubuntu 12.04LTS 64bit -
2) Pc di casa: Olidata - CPU: Amd Athlon 64 Processor 3200+,RAM: 1.5gb SDRAM, VIDEO: nvidia GeForce 6200 TurboCache(TM), AUDIO: CK804 AC'97 Audio Controller,Hardisk: 250gb SATA, SO: Kubuntu 12.10 64bit -
Avatar utente
badìl
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14806
Iscrizione: mercoledì 22 agosto 2007, 16:20

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da badìl »

Devi togliere il cancelletto (#) davanti alla riga
hiddenmenu
sempre nel file /boot/grub/menu.lst
Zerenthal
Prode Principiante
Messaggi: 137
Iscrizione: venerdì 31 ottobre 2008, 19:46

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da Zerenthal »

ok grazie però non riesco a salvare le modifiche effettuate al file. Quando premo Salva appare un'iconcina che mi avverte di non avere i diritti necessari per modificare il file, ma è normale?
1)Pc in uso frequente: Acer Extensa - CPU: Intel(R) Pentium(R) Dual  CPU  E2220,RAM: 1x4gb DDR3, VIDEO: nvidia GeForce GT 620, Hardisk:  320gb SATA II, SO: Ubuntu 12.04LTS 64bit -
2) Pc di casa: Olidata - CPU: Amd Athlon 64 Processor 3200+,RAM: 1.5gb SDRAM, VIDEO: nvidia GeForce 6200 TurboCache(TM), AUDIO: CK804 AC'97 Audio Controller,Hardisk: 250gb SATA, SO: Kubuntu 12.10 64bit -
jofor
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3637
Iscrizione: domenica 21 maggio 2006, 11:57

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da jofor »

usa il comando sudo kate o sudo writer a secondo della versione che hai (kubuntu/ubuntu ecc...) per modificare il file...

ciao ciao ::)
"Il tuo sapere va condiviso con gli altri, non c'è miglior investimento per crescere..." (jofor)
Buon Ubuntu a tutti.
skype: panenutella
Avatar utente
badìl
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 14806
Iscrizione: mercoledì 22 agosto 2007, 16:20

Re: [Boot] scelta sistema operativo all'avvio

Messaggio da badìl »

Codice: Seleziona tutto

sudo gedit /boot/grub/menu.lst
e poi salvi le modifiche.
Scrivi risposta

Ritorna a “Installazione e aggiornamento del sistema operativo”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti