Pagina 1 di 1
[RISOLTO] Dual boot winz xp e ubuntu
Inviato: giovedì 4 gennaio 2007, 3:43
da ash82
Ciao a tutti so che questa discussione è stata gia aperta varie volte ma non sono riuscito a trovarne una che andasse bene al caso mio .... naturalmente è superfluo aggiungere che sono nuovo di ubuntu.....
Ecco la mia situazione:
1)HARD DISK SATA con win xp (bad)
2)HARD DISK IDE con ubuntu 6.10 (good)
da BIOS ho settato come hard disk di boot quello IDE con UBUNTU e sto provando a configurare GRUB (installato su ubuntu) per avere in avvio il menu con cui volendo scelgo winxp. Ecco un estratto del il mio file menu.lst:
default 0
timeout 3
hiddenmenu
## ## End Default Options ##
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
Come ho letto da vari post devo aggiungere a questa lista qualcosa tipo:
title Windows xp
rootnoverify (hd1,0)
makeactive
chainloader +1
boot
e commentare con un # la voce hiddenmenu cosi da avere il menu di scelta in avvio senza dover premere ESC.
ARRIVIAMO AL MIO DUBBIO ??? ...da /etc/fstab io leggo questa riga -----> /dev/sda1 /media/windows ntfs-3g
deduco quindi che il mio hard disk con win xp si chiami sda1 (o almeno credo...). QUINDI che cosa metto tra parentesi in
rootnoverify ()?devo mettere hd1,0 o altro???
Ci sono altre cose che ho dimenticato di fare per avere questo menu di scelta in avvio? Datemi una mano.....Grazie a chiunque risponda! (b2b)
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 7:23
da pipep
devi mettere (sd0,0)
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 14:23
da ash82
Ciao ho fatto quanto mi hai detto ma non funziona (sicuramente è colpa mia

)
Vedo il menu di avvio e win xp ci sta, se lo seleziono e clicco grub mi da:
ERROR 23 WHILE PARSING NUMBER
che ho fatto di sbagliato?? ecco il mio file menu.lst
## ## End Default Options ##
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
boot
title Windows xp
rootnoverify (sd0,0)
makeactive
chainloader +1
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
Ho letto che GRUB non accetta denominazioni tipo sd0,0 ma è vero?? e come faccio a fargli riconoscere il mio HARD DISK SATA con WIN XP
Grazie ancora a tutti
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 14:57
da chris70
dovrebbe essere proprio (hd1,0), GRUB numera dischi e partizioni dallo zero e non gl'importa se il disco è ATA o SATA ma com'è impostato il BIOS, quindi per esempio la prima partizione sul primo disco sarà ovviamente 0,0 mentre la terza sul secondo disco 1,2
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 15:49
da gforresu
ma il primo hd non è quello di win?? ??? se è così dovrebbe essere
come nel mio caso :P
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 17:23
da chris70
gforresu ha scritto:
ma il primo hd non è quello di win?? ??? se è così dovrebbe essere
come nel mio caso :P
se ho capito bene
ash82 ha scritto:
da BIOS ho settato come hard disk di boot quello IDE con UBUNTU
quindi per GRUB il SATA con winz dovrebbe essere il secondo disco (hd1,0)
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 19:57
da ash82
Innanzitutto ringrazio chi ha risposto!
La mia situazione è quella descritta da chris70:
Da Bios ho settato come HARD DISK PRINCIPALE l'IDE con UBUNTU. Quindi il primo hard disk hd0,0 è ubuntu 6.10.
Correttamente chris70 mi ha consigliato di mettere in menu.lst hd(1,0) l'ho fatto ed effettivamente l'errore che mi dava GRUB è sparito ma WIN NON PARTE LOSTESSO!!
Se Scelgo win xp dal menu compare la scritta "starting up..." e non succede piu nulla, l'unica cosa che posso fare è riavviare il pc!
Mi rimane qualche dubbio sulle altre righe che ho preso da una guida e di cui ignoro il significato profondo

:
rootnoverify (hd1,0)
makeactive
chainloader +1
boot
Sono corrette??
Che cosa sto sbagliando? Se vi serve qualcosa per capire meglio il problema ve lo posto.
Grazie ancora!
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 20:17
da chris70
pare che winz rifiuti di avviarsi se capisce di non essere sul disco primario, quindi bisogna fregarlo, qui
http://www.gentoo.org/doc/it/faq.xml dicono di fare così
title Windows XP
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
chainloader +1
Re: PROBLEMI CON GRUB E MENU.LST
Inviato: giovedì 4 gennaio 2007, 20:54
da ( MAD )
chris70 ha scritto:
pare che winz rifiuti di avviarsi se capisce di non essere sul disco primario, quindi bisogna fregarlo, qui
http://www.gentoo.org/doc/it/faq.xml dicono di fare così
title Windows XP
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
chainloader +1
Questo escamotage mi sembra ottimo. Me ne aveva parlato anche un amico che utilizza gentoo.
Ash 82, io sono messo nella tua stessa identica situazione, se riesci a sbrogliare la matassa con questo trucchetto fammelo sapere che provvedo subito anch''io a modificare il file menu.lst .
Re: [RISOLTO] Dual boot winz xp e ubuntu
Inviato: venerdì 5 gennaio 2007, 15:09
da ash82
Finalmente tutto funziona ;D
per chiunque abbia i miei stessi problemi riepilogo la mia situazione e i consigli che mi hanno aiutato (grazie a tutti!) a risolvere!
Sul mio pc io ho:
1)HARD DISK SATA con win xp
2)HARD DISK IDE con ubuntu 6.10
da BIOS ho settato come hard disk di boot quello IDE con UBUNTU e sto provando a configurare GRUB (installato su ubuntu) per avere in avvio il menu con cui volendo scelgo winxp.
Di seguito vi posto il mio file menu.lst funzionante!! Spero che possa risolvere anche i vostri problemi!
default 3 #poichè il pc è usato da piu persone devo far partire di default xp :(
timeout 10
#la voce hiddenmenu è stata commentata per far si che il menu si carichi all'avvio senza dover premere il tasto ESC
## ## End Default Options ##
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
boot
title Windows XP
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
Re: [RISOLTO] Dual boot winz xp e ubuntu
Inviato: venerdì 5 gennaio 2007, 19:26
da pipep
Le righe concernenti windows le sposterei dopo la riga "### END DEBIAN AUTOMAGIC KERNELS LIST", altrimenti la prossima volta che grub fa un aggiornamento automatico quelle righe ti spariscono.
Re: [RISOLTO] Dual boot winz xp e ubuntu
Inviato: domenica 4 marzo 2007, 0:05
da mauro21
riapro
e io che devo fare??
ho ubuntu nel primo hd e xp nel secondo... ora parte diretto ubuntu...
nel secondo hd ho queste partizioni...

xp è inserito nella partizione hdd3
cosa scrivo in grub??
grazie
Re: [RISOLTO] Dual boot winz xp e ubuntu
Inviato: domenica 4 marzo 2007, 12:29
da mauro21
up (b2b) (b2b) (good)
Re: [RISOLTO] Dual boot winz xp e ubuntu
Inviato: domenica 4 marzo 2007, 12:31
da gforresu
prima posta il tuo menu.lst
Re: [RISOLTO] Dual boot winz xp e ubuntu
Inviato: domenica 4 marzo 2007, 12:37
da mauro21
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 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
#A splash image for the menu
#splashimage=(hd0,0)/boot/grub/splashimages/guitar.xpm.gz
## 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=33c9d2d7-82d2-4c65-91cd-9464e5d3897b ro
# kopt_2_6=root=/dev/hdc1 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## 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
## 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.17-11-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hdc1 ro quiet splash
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.17-11-generic
boot
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
title Microsoft Windows XP Home Edition
rootnoverify (hd1,3)
savedefault
chainloader +1