Pagina 2 di 2

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 17:39
da dani.deb
per aggiungere le righe di windows
digita:

Codice: Seleziona tutto

sudo gedit /boot/grub/menu.lst
alla fine, dopo l'ultima riga, aggiungi queste:

Codice: Seleziona tutto

title		Windows XP
root	        (hd0,1)
savedefault
makeactive
chainloader	+1
salva, chiudi e riavvia..
dovrebbe essere a posto

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 17:45
da piccio1985
# 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=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=70f5db44-7e6f-495a-b3c7-53d21cbd21ac

## 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.10, kernel 2.6.27-11-generic
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro  single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro  single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/memtest86+.bin
quiet

title Windows XP
root         (hd0,1)
savedefault
makeactive
chainloader +1

### END DEBIAN AUTOMAGIC KERNELS LIST






Non va, mi carica ubuntu direttamente

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 17:49
da dani.deb
le righe che ti ho scritto vanno messe dopo l'ultima:

Codice: Seleziona tutto

### END DEBIAN AUTOMAGIC KERNELS LIST
non prima
prova e vedi se va

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 17:52
da dani.deb
aspetta, che scemo! ho visto solo adesso
oltre che spostare quelle righe fai così:
cerchi le righe:

Codice: Seleziona tutto

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      3
e cambi il 3 in 10

poi appena sotto:

Codice: Seleziona tutto

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
devi mettere # anche prima della terza riga, in modo che diventi:

Codice: Seleziona tutto

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
salvi, e quando riavvi ti dovrebbe comparire il menu, tu ti muovi con le frecce su e giù e scegli windows, vediamo se funziona

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 17:57
da piccio1985
fatto, ma ancora niente :(

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 17:59
da dani.deb
anche quello che ti ho scritto nel secondo post?

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:00
da L0r3nz0
prova a ri-postare il file magari tra i tag code quel pulsantino con sopra #

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:01
da piccio1985
# 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=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=70f5db44-7e6f-495a-b3c7-53d21cbd21ac

## 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.10, kernel 2.6.27-11-generic
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro  single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=70f5db44-7e6f-495a-b3c7-53d21cbd21ac ro  single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 70f5db44-7e6f-495a-b3c7-53d21cbd21ac
kernel /boot/memtest86+.bin
quiet


### END DEBIAN AUTOMAGIC KERNELS LIST

title Windows XP
root         (hd0,1)
savedefault
makeactive
chainloader +1

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:09
da dani.deb
a questo punto non saprei..

@ L0r3nz0:
hai idee? la partizione, se guardi l'ultimo suo post con il risultato di fdisk -l, dovrebbe essere hd0,1 senza possibilità di errore..

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:23
da L0r3nz0
sorry mai maneggiato grub però la guida http://wiki.ubuntu-it.org/Amministrazio ... ght=(grub)

mi dice che andrebbe aggiunto così xp

Codice: Seleziona tutto

title      Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1
boot

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:24
da piccio1985
e cavolo ci sara un motivo... hd0,1 cosa sta a significare e come si calcola? è una collocazione?

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:27
da dani.deb
hd0,1 indica la partizione dove grub deve andare a cercare windows
siccome tu ce l'hai in sda2, questa partizione corrisponde a hd0,1 (sda1=hd0,0, sda2=hd0,1 e così via)

prova ad aggiungere l'ultima riga:

Codice: Seleziona tutto

boot
sotto quelle che ti ho fatto aggiungere prima

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:28
da piccio1985
ora provo.

ma la guida dice però

Alcuni sistemi operativi come Windows od OpenBSD necessitano di una configurazione particolare per essere avviati, per esempio, la partizione dev'essere contrassegnata come attiva o come partizione primaria. Questi sistemi operativi hanno routine specifiche che si occupano dell'avvio, di conseguenza parametri come «kernel» non vengono riconosciuti da GRUB.

Per avviare uno di questi sistemi operativi è necessario impostare i seguiti parametri:

Parametro


Descrizione

rootnoverify


Accede in sola lettura alla partizione contenente la directory radice. Per motivi di sicurezza è consigliato impostare questa opzione.

makeactive


Rende la partizione attiva (necessario per Windows).

chainloader


Legge la prima traccia della partizione, la quale conterrà un secondo boot loader da avviare in cascata.

boot


Avvia il sistema.

Quello che segue è un esempio di elenco completo da inserire nel file di configurazione di GRUB:

rootnoverify (hd1,0)
makeactive
chainloader +1
boot

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:29
da L0r3nz0
hd 0,1 è la partizione dove hai installato xp ovvero /dev/sda2 come si evince da fdisk -l che hai postato prima.

se non va prova a sostituire

Codice: Seleziona tutto

title      Windows XP
root           (hd0,1)
savedefault
makeactive
chainloader   +1
con

Codice: Seleziona tutto

title      Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1
boot

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:35
da piccio1985
Perfetto, ora va.

grazie ad entrambi, siete mitici!

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:37
da L0r3nz0
Di nulla.

Metti risolto nel titolo e di cosa hai scritto nel file così potrebbe essere d'aiuto anche a qualcun altro in futuro

Re: Situazione particolare

Inviato: martedì 14 aprile 2009, 18:38
da dani.deb
(b2b)