Pagina 1 di 1

[Risolto] [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 10:46
da JohnnyWalker74
Salve, dopo un'installazione perfetta di Ubuntu 9.04, al riavvio ,xp non parte , rilasciando grub un errore.
C'è modo di ripristinare la corretta partenza di Win xp, tenendo conto che i due sistemi operativi sono installati sue due Hard-disk differenti ?

Presumo che l'errore sia nato al momento del riordino delle partizioni, quando chiede se si vuol tenere Ubuntu insieme ad latri sistemi operativi, in quel caso ho scelto l'ultima opzione in basso...

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 10:51
da jerico
posta
sudo fdisk -l
cat /boot/grub/menu.lst

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 10:55
da JohnnyWalker74
e' venuto fuori un casino , cmq questo è il risultato :

Codice: Seleziona tutto

[code]Disco /dev/sda: 163.9 GB, 163928604672 byte
255 testine, 63 settori/tracce, 19929 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x00520052

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       19928   160071628+   7  HPFS/NTFS

Disco /dev/sdb: 500.1 GB, 500107862016 byte
255 testine, 63 settori/tracce, 60801 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x1a6396b2

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       60801   488384001    7  HPFS/NTFS

Disco /dev/sdc: 122.9 GB, 122942324736 byte
255 testine, 63 settori/tracce, 14946 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x7db87db8

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       14946   120053713+  83  Linux
chris@chris-desktop:~$ sudo fdisk -l

Disco /dev/sda: 163.9 GB, 163928604672 byte
255 testine, 63 settori/tracce, 19929 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x00520052

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       19928   160071628+   7  HPFS/NTFS

Disco /dev/sdb: 500.1 GB, 500107862016 byte
255 testine, 63 settori/tracce, 60801 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x1a6396b2

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       60801   488384001    7  HPFS/NTFS

Disco /dev/sdc: 122.9 GB, 122942324736 byte
255 testine, 63 settori/tracce, 14946 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x7db87db8

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       14946   120053713+  83  Linux
chris@chris-desktop:~$ cat /boot/grub/menu.lst
# 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=22ae7a33-56c6-485a-bf8b-aa8b74c1f0fb ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=22ae7a33-56c6-485a-bf8b-aa8b74c1f0fb

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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## 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 9.04, kernel 2.6.28-11-generic
uuid		22ae7a33-56c6-485a-bf8b-aa8b74c1f0fb
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=22ae7a33-56c6-485a-bf8b-aa8b74c1f0fb ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		22ae7a33-56c6-485a-bf8b-aa8b74c1f0fb
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=22ae7a33-56c6-485a-bf8b-aa8b74c1f0fb ro  single
initrd		/boot/initrd.img-2.6.28-11-generic

title		Ubuntu 9.04, memtest86+
uuid		22ae7a33-56c6-485a-bf8b-aa8b74c1f0fb
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
rootnoverify	(hd0,0)
savedefault
makeactive
chainloader	+1
[/code]

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 11:10
da jerico
fammi una cortesia,torna sul mesaaggio di prima,clicca su modifica poi seleziona col mouse tutta la parte relativa al risultato dei comandi e clicca sul tag-code # che trovi tra sopra le faccine.
diventa tutto piu ordinato

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 11:13
da JohnnyWalker74
jerico ha scritto: fammi una cortesia,torna sul mesaaggio di prima,clicca su modifica poi seleziona col mouse tutta la parte relativa al risultato dei comandi e clicca sul tag-code # che trovi tra sopra le faccine.
diventa tutto piu ordinato
ok , fatto

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 11:17
da jerico
che casino non si capisce niente...
xp è in quello da 163 gb o in quello da 500? immagino nel primo

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 11:25
da JohnnyWalker74
jerico ha scritto: che casino non si capisce niente...
xp è in quello da 163 gb o in quello da 500? immagino nel primo
Xp è nell'hard disk da 163 GB, quello da 500 non contiene alcun S.O.

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 12:38
da JohnnyWalker74
nessuna dritta ?

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 12:48
da jerico
fammi un favore perchè non si capisce. riposta
sudo fdisk -l
selezionandolo e cliccando il tagcode

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 12:49
da JohnnyWalker74

Codice: Seleziona tutto

Disco /dev/sda: 163.9 GB, 163928604672 byte
255 testine, 63 settori/tracce, 19929 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x00520052

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       19928   160071628+   7  HPFS/NTFS

Disco /dev/sdb: 500.1 GB, 500107862016 byte
255 testine, 63 settori/tracce, 60801 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x1a6396b2

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       60801   488384001    7  HPFS/NTFS

Disco /dev/sdc: 122.9 GB, 122942324736 byte
255 testine, 63 settori/tracce, 14946 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x7db87db8

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       14946   120053713+  83  Linux

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 12:53
da jerico
sembrerebbe tutto ok. hai due dischi interni?
com è l'ordine di boot nel bios?

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 12:57
da JohnnyWalker74
il boot parte con l'hard disk in cui è installato ubuntu ,quello da 122 GB.
Anche cambiando l'ordine di boot, Xp non parte uguale.
Per completezza l'hard disk con xp è un sata , quello con linux è un ide e sono entrambi interni, quello da 500 GB è montato su un box esterno.

Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 13:09
da jerico
facciamo una prova anche se non andrà.
lascia come primo disco quello di ubuntu.
poi digita

Codice: Seleziona tutto

sudo gedit /boot/grub/menu.lst
modifica la parte in fondo del file,aggiungendo le cose che ho marcato in grasseto.
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
savedefault
makeactive
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
poi salva e prova ad avviare xp

[Risolto] Re: [Grub] Non riesco a far partire più Windows Xp

Inviato: sabato 25 aprile 2009, 14:23
da JohnnyWalker74
Invece ha funzionato !
Adesso sto digitando da Win Xp .
Ti ringrazio per il tempo e l'impegno profuso per avermi aiutato a risolvere questo problema, purtroppo per me l'ambiente linux è piuttosto ostico, e ammiro profondamente chi riesce a sbrogliarsi da solo in questi frangenti.

Tuttavia avrei un altro problema che non c'entra niente con quello di prima.
Adesso Win xp non mi riconosce più l'hard disk dove è installato ubuntu, suppongo perchè la nuova installazione è su un file system ext4.
Dovrei installare su winxp una sorta di driver ext 4 giusto ?

Re: [Risolto] [Grub] Non riesco a far partire più Windows Xp

Inviato: domenica 26 aprile 2009, 0:26
da jerico
davvero ha funzionato?  :o
8) 8)
per vedere ubuntu da win....non saprei cosa suggerirti mi spiace :-\