[Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Il ritrovo della comunità dove confrontarsi e discutere sulle notizie dal mondo dell'informatica, di Ubuntu e di tutto quello che la riguarda, novità, pettegolezzi e quant'altro.
steee
Prode Principiante
Messaggi: 1
Iscrizione: mercoledì 4 novembre 2009, 21:59

[Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da steee »

Salve a tutti. Ho installato ubuntu 9.04 da pochissimo tempo su un hard disk differente da quello su cui ho installato windows xp... l'unico problema è ke dopo l'installazione all'accensione del pc non esce la voce per selezionare windows.
Ho visto altre discussioni applicando quello che ho letto ma nulla, non riesco a risolvere il problema >:( Da quel che ho capito il grub non riconosce windows ma relmente non saprei visto che mi sono da poco affacciato al mondo di ubuntu. Aiutatemiii  :( Vi posto l'elenco delle partizioni e il contenuto di gedit/boot/grub/menu.lst.

contenuto di fdisk -l

Codice: Seleziona tutto

stefano@stefano-desktop:~$ sudo fdisk -l

Disco /dev/sda: 250.0 GB, 250059350016 byte
255 testine, 63 settori/tracce, 30401 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0xf0bc5130

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       29862   239866483+  83  Linux
/dev/sda2           29863       30401     4329517+   5  Esteso
/dev/sda5           29863       30401     4329486   82  Linux swap / Solaris

Disco /dev/sdb: 80.0 GB, 80060424192 byte
255 testine, 63 settori/tracce, 9733 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0xded3ded3

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        9732    78172258+   7  HPFS/NTFS
stefano@stefano-desktop:~$ 

contenuto di gedit/boot/grub/menu.lst

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 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=67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1

## 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-16-generic
uuid		67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1
kernel		/boot/vmlinuz-2.6.28-16-generic root=UUID=67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1 ro quiet splash 
initrd		/boot/initrd.img-2.6.28-16-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-16-generic (recovery mode)
uuid		67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1
kernel		/boot/vmlinuz-2.6.28-16-generic root=UUID=67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1 ro  single
initrd		/boot/initrd.img-2.6.28-16-generic

title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1 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		67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1 ro  single
initrd		/boot/initrd.img-2.6.28-11-generic

title		Ubuntu 9.04, memtest86+
uuid		67530c47-fd25-4e5c-9d9c-c0c4b4c4b1b1
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
Grazie mille.
Avatar utente
robytrevi
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 10901
Iscrizione: lunedì 10 marzo 2008, 14:12
Desktop: mate
Distribuzione: Xenial 32 bit
Località: Modena(provincia)

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da robytrevi »

Ciao.
La discussione la potevi aprire da un'altra parte, non al bar.
Comunque, modifica il menu.lst aggiungendo in fondo a quanto già presente questo:

Codice: Seleziona tutto

title         Windows
rootnoverify (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
boot
Ubuntu 16.04 (Mate), Arch (Gnome-shell), Fedora21(gnome-shell), Debian Jessie(openbox), Windows 7 ; Dell Inspiron 1501; AMD Turion 64x2; ATI XPress 1100 (vista come Radeon Xpress 200M)
Quando si richiede supporto postare il comando "lsb_release -ds && echo $DESKTOP_SESSION && uname -m"
DurinVIII
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 334
Iscrizione: mercoledì 14 marzo 2007, 10:17

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da DurinVIII »

mi aggancio qui, problema simile...
grub tutto ok, linux parte benissimo...non parte windows (a raga c'è della roba che riesco a fare solo là ancora).
va come in loop, scelgo win, do enter, torno al grub...

posto i due comandi:

Codice: Seleziona tutto

riccardo@riccardo-laptop:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 3e48e9fa-2084-4a49-83df-d79addb369d3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 3e48e9fa-2084-4a49-83df-d79addb369d3
	linux	/boot/vmlinuz-2.6.31-17-generic root=UUID=3e48e9fa-2084-4a49-83df-d79addb369d3 ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 3e48e9fa-2084-4a49-83df-d79addb369d3
	linux	/boot/vmlinuz-2.6.31-17-generic root=UUID=3e48e9fa-2084-4a49-83df-d79addb369d3 ro single 
	initrd	/boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 3e48e9fa-2084-4a49-83df-d79addb369d3
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=3e48e9fa-2084-4a49-83df-d79addb369d3 ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 3e48e9fa-2084-4a49-83df-d79addb369d3
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=3e48e9fa-2084-4a49-83df-d79addb369d3 ro single 
	initrd	/boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set c6f0aa58f0aa4f0d
	drivemap -s (hd0) ${root}
	chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda3)" {
	insmod fat
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set cced-990e
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Codice: Seleziona tutto

riccardo@riccardo-laptop:~$ sudo fdisk -l

Disco /dev/sda: 160.0 GB, 160041885696 byte
255 testine, 63 settori/tracce, 19457 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x09787571

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       10442    83873632+   7  HPFS/NTFS
La partizione 1 non termina al limite del cilindro.
/dev/sda2           10442       18432    64176758   83  Linux
/dev/sda3           18432       19452     8197056   1c  W95 FAT32 (LBA) nascosto
La partizione 3 non termina al limite del cilindro.
/dev/sda4           19452       19458       40320   ef  EFI (FAT-12/16/32)
La partizione 4 non termina al limite del cilindro.
Avatar utente
robytrevi
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 10901
Iscrizione: lunedì 10 marzo 2008, 14:12
Desktop: mate
Distribuzione: Xenial 32 bit
Località: Modena(provincia)

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da robytrevi »

Sembra corretto. Qualche errore?
Ubuntu 16.04 (Mate), Arch (Gnome-shell), Fedora21(gnome-shell), Debian Jessie(openbox), Windows 7 ; Dell Inspiron 1501; AMD Turion 64x2; ATI XPress 1100 (vista come Radeon Xpress 200M)
Quando si richiede supporto postare il comando "lsb_release -ds && echo $DESKTOP_SESSION && uname -m"
DurinVIII
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 334
Iscrizione: mercoledì 14 marzo 2007, 10:17

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da DurinVIII »

robytrevi ha scritto: Sembra corretto. Qualche errore?
è questo il problema.
nessun errore
sembra corretto

mi trovo a scegliere fra
linux
win xp
win xp (quello per il ripristino salvato in una partizione)

se scelgo ubuntu parte a meraviglia, se scelgo quello per il ripristino di sistema parte, invece se scelgo quello corretto mi fa tornare alla lista dei so del grub.

in pratica la riga di windows (quello buono) ha qualche problema non identificato!
Avatar utente
robytrevi
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 10901
Iscrizione: lunedì 10 marzo 2008, 14:12
Desktop: mate
Distribuzione: Xenial 32 bit
Località: Modena(provincia)

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da robytrevi »

Da

Codice: Seleziona tutto

sudo fdisk -l
si vede che alcuni cilindri fanno parte di più partizioni (e non dovrebbe essere così).
È tutto mooolto incasinato.
Ultima modifica di robytrevi il martedì 29 dicembre 2009, 19:27, modificato 1 volta in totale.
Ubuntu 16.04 (Mate), Arch (Gnome-shell), Fedora21(gnome-shell), Debian Jessie(openbox), Windows 7 ; Dell Inspiron 1501; AMD Turion 64x2; ATI XPress 1100 (vista come Radeon Xpress 200M)
Quando si richiede supporto postare il comando "lsb_release -ds && echo $DESKTOP_SESSION && uname -m"
DurinVIII
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 334
Iscrizione: mercoledì 14 marzo 2007, 10:17

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da DurinVIII »

robytrevi ha scritto: Da

Codice: Seleziona tutto

sudo fdisk -l
si vede che alcuni cilindri fanno parte di più partizioni (e non dovrebbe essere così).
È tutto mooolto incasinato.
in effetti l'avevo visto anche io!
quando ho installato ho inserito manualmente il punto di boot mettendo il primo disco che vedevo fra le scelte

c-[ possibilit' di recuperare o formattone???
Avatar utente
robytrevi
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 10901
Iscrizione: lunedì 10 marzo 2008, 14:12
Desktop: mate
Distribuzione: Xenial 32 bit
Località: Modena(provincia)

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da robytrevi »

Inizia col salvarti i dati importanti...
Poi non so, ma non credo ci sia modo di risolvere.
Magari qualcuno ne sa più di me.
Comunque è tutta sballata la tabella delle partizioni.
Ubuntu 16.04 (Mate), Arch (Gnome-shell), Fedora21(gnome-shell), Debian Jessie(openbox), Windows 7 ; Dell Inspiron 1501; AMD Turion 64x2; ATI XPress 1100 (vista come Radeon Xpress 200M)
Quando si richiede supporto postare il comando "lsb_release -ds && echo $DESKTOP_SESSION && uname -m"
DurinVIII
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 334
Iscrizione: mercoledì 14 marzo 2007, 10:17

Re: [Grub] grub: windows xp non parte dopo installazione ubuntu su un differente hard disk

Messaggio da DurinVIII »

penso di fare cosi...
ovviamente con la massima calma dato che ubuntu va benissimo e i dati li vedo tutti...

knon so come sia successo, forse colpa di wubi...installato poi disinstallato poi intallato linux "normalmente"...boh!

quasi quasi aspetto fine aprile... ;)
Scrivi risposta

Ritorna a “Bar Ubuntu”

Chi c’è in linea

Visualizzano questa sezione: Google [Bot] e 13 ospiti