[RISOLTO] Dual boot winz xp e ubuntu

Domande e richieste di un principiante alle prime armi con Ubuntu e il mondo GNU/Linux in generale. Per domande specifiche, utilizzare le altre sezioni.
Regole della sezione
In questa sezione possono inserire nuove discussioni solo coloro che fanno parte del livello "Prode Principiante" e che non hanno superato i 100 messaggi, tutti gli altri possono comunque rispondere regolarmente. Se si fa parte di questo livello e si è registrati al forum prima del 24 aprile 2012, data del passaggio al nuovo forum, consultare questa discussione.

Immagine Come usare UbuntuPrimi passi su Ubuntu Immagine Amministrazione del sistemaComandi di baseInstallare programmiLog di sistemaRiga di comandoSudo
Scrivi risposta
ash82
Prode Principiante
Messaggi: 5
Iscrizione: martedì 26 dicembre 2006, 20:13

[RISOLTO] Dual boot winz xp e ubuntu

Messaggio 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)
Ultima modifica di ash82 il venerdì 5 gennaio 2007, 15:04, modificato 1 volta in totale.
pipep
Prode Principiante
Messaggi: 161
Iscrizione: sabato 30 dicembre 2006, 17:04
Desktop: Unity
Distribuzione: Ubuntu 16.10 64bit

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio da pipep »

devi mettere (sd0,0)
ash82
Prode Principiante
Messaggi: 5
Iscrizione: martedì 26 dicembre 2006, 20:13

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio 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
chris70
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 318
Iscrizione: lunedì 26 giugno 2006, 9:10

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio 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
fedeli alla linea, anche quando la linea non c'è
gforresu

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio da gforresu »

ma il primo hd non è quello di win?? ??? se è così dovrebbe essere

Codice: Seleziona tutto

root		(hd0,0)
come nel mio caso :P
chris70
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 318
Iscrizione: lunedì 26 giugno 2006, 9:10

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio da chris70 »

gforresu ha scritto: ma il primo hd non è quello di win?? ??? se è così dovrebbe essere

Codice: Seleziona tutto

root		(hd0,0)
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)
fedeli alla linea, anche quando la linea non c'è
ash82
Prode Principiante
Messaggi: 5
Iscrizione: martedì 26 dicembre 2006, 20:13

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio 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 ;D:

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!
Ultima modifica di ash82 il giovedì 4 gennaio 2007, 20:00, modificato 1 volta in totale.
chris70
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 318
Iscrizione: lunedì 26 giugno 2006, 9:10

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio 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
fedeli alla linea, anche quando la linea non c'è
Avatar utente
( MAD )
Prode Principiante
Messaggi: 75
Iscrizione: venerdì 15 dicembre 2006, 14:04

Re: PROBLEMI CON GRUB E MENU.LST

Messaggio 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 .
ash82
Prode Principiante
Messaggi: 5
Iscrizione: martedì 26 dicembre 2006, 20:13

Re: [RISOLTO] Dual boot winz xp e ubuntu

Messaggio 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
Ultima modifica di ash82 il venerdì 5 gennaio 2007, 17:28, modificato 1 volta in totale.
pipep
Prode Principiante
Messaggi: 161
Iscrizione: sabato 30 dicembre 2006, 17:04
Desktop: Unity
Distribuzione: Ubuntu 16.10 64bit

Re: [RISOLTO] Dual boot winz xp e ubuntu

Messaggio 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.
mauro21
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1459
Iscrizione: lunedì 27 febbraio 2006, 19:37
Distribuzione: ubuntu 12.10

Re: [RISOLTO] Dual boot winz xp e ubuntu

Messaggio 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...
Immagine
xp è inserito nella partizione hdd3

cosa scrivo in grub??

grazie
mauro21
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1459
Iscrizione: lunedì 27 febbraio 2006, 19:37
Distribuzione: ubuntu 12.10

Re: [RISOLTO] Dual boot winz xp e ubuntu

Messaggio da mauro21 »

up (b2b) (b2b) (good)
gforresu

Re: [RISOLTO] Dual boot winz xp e ubuntu

Messaggio da gforresu »

prima posta il tuo menu.lst
mauro21
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1459
Iscrizione: lunedì 27 febbraio 2006, 19:37
Distribuzione: ubuntu 12.10

Re: [RISOLTO] Dual boot winz xp e ubuntu

Messaggio 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 
Scrivi risposta

Ritorna a “Dilemmi del principiante”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 2 ospiti