Pagina 1 di 1

Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 0:32
da Luca 73
Ciao,

questo è veramente un problema spinoso. Ho instalato la 10.04 da poco e mi è sparito Windows Xp da grub. Il problema è che anche sotto la voce "Places" nel menu a tendina sulla barra degli strumenti in alto non riesco a trovarlo. In pratica Ubuntu non riesce più a trovare Xp. Cosa dovrei fare? Formattare tutto? Se digito fdisk -l la partizione NTFS esiste ancora.

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ sudo fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x98669866

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2554    20514973+   7  HPFS/NTFS
/dev/sda2            2555        3162     4882432   83  Linux
/dev/sda3            3163        7174    32225281    5  Extended
/dev/sda5            4378        4682     2440192   83  Linux
/dev/sda6            5290        5898     4881408   83  Linux
/dev/sda7            5898        6141     1951744   83  Linux
/dev/sda8            6141        6323     1464320   82  Linux swap / Solaris
/dev/sda9            3163        4014     6835200   83  Linux
/dev/sda10           6323        7174     6835200   83  Linux
/dev/sda11           4014        4196     1464320   83  Linux
/dev/sda12           4682        4925     1951744   83  Linux
/dev/sda13           4925        5108     1464320   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 1039 MB, 1039663104 bytes
32 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
luca73@Bela-Lugosi-is-dead:~$ 
Posto anche questo se vi può aiutare

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda2 during installation
UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda5 during installation
UUID=413b3a01-6a6a-4dd5-be53-fc837504dce8 /boot           ext4    defaults        0       2
# /home was on /dev/sda9 during installation
UUID=57342e86-4c1c-4691-8b46-d5ffffc52dde /home           ext4    defaults        0       2
# /opt was on /dev/sda13 during installation
UUID=69fcfa79-e311-4234-9fc3-09f11fd8216b /opt            ext4    defaults        0       2
# /srv was on /dev/sda12 during installation
UUID=98ed9505-2c96-4ec8-8ec3-c903d8fe1e44 /srv            ext4    defaults        0       2
# /tmp was on /dev/sda7 during installation
UUID=e0aa0bf6-6f4f-4d72-aa28-3e9135358862 /tmp            ext4    defaults        0       2
# /usr was on /dev/sda10 during installation
UUID=b600a9d0-492c-4d2a-96a0-1ffc2f279eaf /usr            ext4    defaults        0       2
# /usr/local was on /dev/sda11 during installation
UUID=ad7122f7-f524-4a2f-a06b-e221b5fffe23 /usr/local      ext4    defaults        0       2
# /var was on /dev/sda6 during installation
UUID=0e5969b4-dd05-412b-bd3c-4020e4833e9f /var            ext4    defaults        0       2
# swap was on /dev/sda8 during installation
UUID=253d9deb-61a3-4d17-a647-4b5129f53a52 none            swap    sw              0       0
luca73@Bela-Lugosi-is-dead:~$
Potrei avere qualche aiuto? Grazie.

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 0:37
da frug75

Codice: Seleziona tutto

sudo update-grub

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 0:48
da Luca 73
frug75 ha scritto:

Codice: Seleziona tutto

sudo update-grub
Ciao, purtroppo ho già provato questa opzione, non mi risolve nulla. Stesso discorso per sudo update-initramfs -u.

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 1:00
da jerico
capita a volte che sia presente sia il grub-legacy che il grub2.
posta questo

Codice: Seleziona tutto

dpkg -l | grep grub

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 7:34
da patel
Qds73 ha scritto:
frug75 ha scritto:

Codice: Seleziona tutto

sudo update-grub
Ciao, purtroppo ho già provato questa opzione, non mi risolve nulla. Stesso discorso per sudo update-initramfs -u.
posta i risultati dei comandi

Codice: Seleziona tutto

grub-install -v
sudo update-grub
cat /boot/grub/menu.lst

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:14
da Luca 73
jerico ha scritto: capita a volte che sia presente sia il grub-legacy che il grub2.
posta questo

Codice: Seleziona tutto

dpkg -l | grep grub
Ciao, ecco l'output:

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ dpkg -l | grep grub
ii  grub                                 0.97-29ubuntu60                                 GRand Unified Bootloader (Legacy version)
ii  grub-common                          1.98-1ubuntu7                                   GRand Unified Bootloader, version 2 (common 
luca73@Bela-Lugosi-is-dead:~$

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:19
da Luca 73
patel ha scritto:
Qds73 ha scritto:
frug75 ha scritto:

Codice: Seleziona tutto

sudo update-grub
Ciao, purtroppo ho già provato questa opzione, non mi risolve nulla. Stesso discorso per sudo update-initramfs -u.
posta i risultati dei comandi

Codice: Seleziona tutto

grub-install -v
sudo update-grub
cat /boot/grub/menu.lst
Ecco gli output dei comandi elencati sopra:

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ grub-install -v
grub-install (GNU GRUB 0.97)
luca73@Bela-Lugosi-is-dead:~$

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.32-25-generic
Found kernel: /vmlinuz-2.6.32-24-generic
Found GRUB 2: /boot/grub/core.img
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done

luca73@Bela-Lugosi-is-dead:~$

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ 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-legacy-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=e73afb16-4351-47f8-8bcd-7e751ffa868f ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=413b3a01-6a6a-4dd5-be53-fc837504dce8

## 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 10.04.1 LTS, kernel 2.6.32-25-generic
uuid		413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel		/vmlinuz-2.6.32-25-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro quiet splash 
initrd		/initrd.img-2.6.32-25-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-25-generic (recovery mode)
uuid		413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel		/vmlinuz-2.6.32-25-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro  single
initrd		/initrd.img-2.6.32-25-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic
uuid		413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel		/vmlinuz-2.6.32-24-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro quiet splash 
initrd		/initrd.img-2.6.32-24-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode)
uuid		413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel		/vmlinuz-2.6.32-24-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro  single
initrd		/initrd.img-2.6.32-24-generic

title		Chainload into GRUB 2
root		413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel		/boot/grub/core.img

title		Ubuntu 10.04.1 LTS, memtest86+
uuid		413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel		/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST


luca73@Bela-Lugosi-is-dead:~$

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:23
da gnomo56
Puoi scaricare supergrub2 e da disco fare il ripristino

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:28
da patel
Qds73 ha scritto: Ecco gli output dei comandi elencati sopra:

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ grub-install -v
grub-install (GNU GRUB 0.97)
quindi hai il grub1 , per avviare win:

Codice: Seleziona tutto

sudo gedit /boot/grub/menu.lst
aggiungi

Codice: Seleziona tutto

title Windows
root (hd0,0)
makeactive
chainloader +1

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:32
da Luca 73
gnomo56 ha scritto: Puoi scaricare supergrub2 e da disco fare il ripristino
Ti riferisci forse a questa guida? http://forum.ubuntu-it.org/viewtopic.php?t=257232

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:35
da Luca 73
patel ha scritto:
Qds73 ha scritto: Ecco gli output dei comandi elencati sopra:

Codice: Seleziona tutto

luca73@Bela-Lugosi-is-dead:~$ grub-install -v
grub-install (GNU GRUB 0.97)
[/quote]quindi hai il grub1 , per avviare win:
[code]sudo gedit /boot/grub/menu.lst
aggiungi

Codice: Seleziona tutto

title Windows
root (hd0,0)
makeactive
chainloader +1
[/code]
E' corretto in questo modo?

Codice: Seleziona tutto

## ## End Default Options ##

title        Ubuntu 10.04.1 LTS, kernel 2.6.32-25-generic
uuid        413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel        /vmlinuz-2.6.32-25-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro quiet splash 
initrd        /initrd.img-2.6.32-25-generic

title        Ubuntu 10.04.1 LTS, kernel 2.6.32-25-generic (recovery mode)
uuid        413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel        /vmlinuz-2.6.32-25-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro  single
initrd        /initrd.img-2.6.32-25-generic

title        Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic
uuid        413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel        /vmlinuz-2.6.32-24-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro quiet splash 
initrd        /initrd.img-2.6.32-24-generic

title        Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode)
uuid        413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel        /vmlinuz-2.6.32-24-generic root=UUID=e73afb16-4351-47f8-8bcd-7e751ffa868f ro  single
initrd        /initrd.img-2.6.32-24-generic

title        Chainload into GRUB 2
root        413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel        /boot/grub/core.img

title        Ubuntu 10.04.1 LTS, memtest86+
uuid        413b3a01-6a6a-4dd5-be53-fc837504dce8
kernel        /memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

title Windows
root (hd0,0)
makeactive
chainloader +1


luca73@Bela-Lugosi-is-dead:~$

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:44
da patel
è corretto

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 22:53
da Luca 73
patel ha scritto: è corretto
Ho provato a riavviare dopo aver modificato il file, ma non è cambiato nulla. Ora che mi ricordo, prima di sparire da grub, quando lanciavo Windows mi veniva evidenziato un errore: missing NTLDR. Forse può aiutare a chiarire qualcosa.

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 23:13
da patel
che significa non è cambiato nulla, non vedi la voce di avvio di win o la vedi e da errore ?
se non vedi il menù di avvio modifica questa parte

Codice: Seleziona tutto

timeout		3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
in

Codice: Seleziona tutto

timeout		10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
##hiddenmenu

Re: Come ripristinare Windows Xp in grub

Inviato: venerdì 22 ottobre 2010, 23:18
da Luca 73
patel ha scritto: che significa non è cambiato nulla, non vedi la voce di avvio di win o la vedi e da errore ?
se non vedi il menù di avvio modifica questa parte

Codice: Seleziona tutto

timeout		3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
in

Codice: Seleziona tutto

timeout		10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
##hiddenmenu
Intendo dire che grub continua a non vedere Win Xp.
Quell'errore (missing NTLDR) lo vedevo quando ancora riuscivo a lanciare Xp, prima che mi sparisse del tutto da grub.

Re: Come ripristinare Windows Xp in grub

Inviato: sabato 23 ottobre 2010, 14:09
da Zambidis
Ciao,
anche io ho da poco installato Ubuntu 10.04 sul mio portatile e quando ho finito il processo di installazione, riavviando il pc, il grub mi ha caricato solo Ubuntu, il memtest e la partizione di recovery di Vista, mentre di Windows xp non se ne parla proprio!

Inizialmente sul pc avevo la partizione nascosta di vista e la partizione di windows Xp, poi nello spazio non partizionato che mi ero tenuto per mettere linux ho fatto l'istallazione di ubuntu creando le partizioni per /boot, /var, ecc e ho impostato la tabella di mount..per la partizione in cui era installato windows xp, ho impostato il punto di mount come "/windows" nella speranza che il grub rilevasse che lì dentro c'è il sistema operativo win xp da caricare nella schermata di scelta del SO, eppure niente!

Se faccio partire GParted per esempio le partizioni sono rimaste intatte, come è possibile che il grub non abbia rilevato win xp?
sono un novizio nell'uso di linux e non so bene muovermi con il terminale, pertanto chiedo pazienza nelle eventuali spiegazioni  :-[ grazie!!

In caso non fosse semplice aggiornare il grub, sarebbe possibile ripristinare lo MBR di windows e poi rifare l'installazione di ubuntu, cercando di fare un'installazione pulita?

Re: Come ripristinare Windows Xp in grub

Inviato: sabato 23 ottobre 2010, 14:14
da patel
Zambidis
apri una discussione tua, altrimenti facciamo confusione

Re: Come ripristinare Windows Xp in grub

Inviato: sabato 23 ottobre 2010, 15:55
da jerico
Luca 73 ha scritto:
Quell'errore (missing NTLDR) lo vedevo quando ancora riuscivo a lanciare Xp, prima che mi sparisse del tutto da grub.
http://www.dinoxpc.com/forum/viewtopic.php?f=23&t=49652

Re: Come ripristinare Windows Xp in grub

Inviato: sabato 23 ottobre 2010, 20:42
da Zambidis
ok scusate, nn volevo aprire altri topic visto che il problema mi sembrava simile..ciao!

Re: Come ripristinare Windows Xp in grub

Inviato: lunedì 25 ottobre 2010, 22:52
da Luca 73
Saluti a tutti, ho risolto reinstallando Xp da zero.
Purtroppo non ho abbastanza competenze informatiche per affrontare determinate situazioni.
Grazie a chi ha tentato di darmi una mano.