Pagina 1 di 2
[Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 14:50
da Griffon1
Nonostante WINDOWS 7 sia presente in una partizione definita, dopo aver installato ubuntu 10.04 né GRUB né StartUp Manager vedono la partizione di windows. :'(
Il sistema è installato su un netbook.
Ho già provato a modificare il menu.lst ma niente da fare. >:(
Qualcuno ha qualche soluzione efficace?
Grazie
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 17:29
da Bygepp
Hai provato a dare nel terminale:
posta il risultato qui.
In 10.04 il file menu.lst non c'è, ora esiste il file grub.cfg, postalo con:
e inoltre posta:
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 17:33
da patel
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 17:34
da luca1202
Bygepp ha scritto:
Hai provato a dare nel terminale:
posta il risultato qui.
In 10.04 il file menu.lst non c'è, ora esiste il file grub.cfg, postalo con:
e inoltre posta:
nel caso il comando non riesca comunque a trovare la partizione prova installando il pacchetto os-prober
dopo ridai il comando
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 21:20
da Griffon1
Update-grub:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
done
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 $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
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
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, con Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-24-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
echo 'Caricamento Linux 2.6.32-24-generic...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
echo 'Caricamento Linux 2.6.32-21-generic...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
fdisk -l
Dispositivo Boot Start End Blocks Id System
/dev/sda1 1 122 975872 82 Linux swap / Solaris
La partizione 1 non termina al limite del cilindro.
/dev/sda3 * 1972 10714 70226944 7 HPFS/NTFS
/dev/sda4 10714 19457 70228321+ f W95 Esteso (LBA)
/dev/sda5 10714 13264 20483048 83 Linux
/dev/sda6 13265 19457 49745241 7 HPFS/NTFS
Sostanzialmente le ho provate tutte, ma non riesce ad avviare la partizione /dev/sda3
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 21:41
da luca1202
hai provato installando il pacchetto che ti ho suggerito?
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 21:43
da Bygepp
Mi posti un'immagine di Sistema→Amministrazione→Gparted?
Segui anche il consiglio di luca1202
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 21:49
da Griffon1
Per Luca1202:
è già installato il grub mi da la stessa situazione.
allego l'immagine di gparted
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 21:51
da Bygepp
Cosa c'è in /dev/sda6 e perchè ci sono 14 Gb non allocati.
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:00
da Griffon1
il /dev/sda6 è una partizione multiuso, (dati, immagini, ect) se devo reinstallare un sistema operativo i dati li tengo lì. I 14Gb non allocati è una partizione che ho recuperato durante l'installazione di ubuntu 10.04 e che era stata distrutta da un problema su grub nella versione ubuntu 9.04. Una storia lunga.
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:05
da patel
sarà meglio che tu la racconti la storia lunga, oppure se non vuoi perdere tempo elimina tutte le partizioni e reinstalla da capo, prima 7 e poi Ubuntu.
Di solito win tiene il bootmanager nella prima partizione primaria, ora occupata dalla swap.
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:09
da Bygepp
Griffon1 ha scritto:
il /dev/sda6 è una partizione multiuso, (dati, immagini, ect) se devo reinstallare un sistema operativo i dati li tengo lì. I 14Gb non allocati è una partizione che ho recuperato durante l'installazione di ubuntu 10.04 e che era stata distrutta da un problema su grub nella versione ubuntu 9.04. Una storia lunga.
È per questo che la swap si trova lì? Comunque prova a dare sudo gedit /etc/grub.d/40_custom ed aggiungi in fondo questo(lasciando uno spazio dall'ultima riga col cancelletto davanti)
Codice: Seleziona tutto
menuentry "Windows 7 (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 62b8a6cab8a69c53
chainloader +1
salva, dai update-grub e poi riposta il file grub.cfg
EDIT: Correggetemi se sbaglio
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:22
da Griffon1
la partizione da 14Gb conteneva il sistema di ripristino di Windows7. Il netbook è nuovo quindi installo Win7, tutto ok. Poi installo ubunto 9.04 (la versione corrente) tutto bene.
Durante la sessione su ubuntu arriva il messaggio di upgrade alla versione 10.04, avvio l'aggiornamento e al successivo riavvio il grub da errore e non si avvia niente.
Cerco info su altro computer, chiedo, leggo, intervengo. Risultato una partizione distrutta, e il successivo reinstall di ubunto senza pochi problemi. Però mi ha riconosciuto i sistemi esistenti e tutto è ripartito in modo funzionante.
Dopo poco tempo, qualche mese, salta il refresh sotto linux e non riesco più ad accedere a linux (vedi le richieste su forum), i suggerimenti non hanno dato alcun esito positivo quindi dopo aver trasferito alcuni file importanti installo la versione 10.04.
Siccome sotto windows non riuscivo a ripristinare la partizione di 14Gb, durante l'installazione di ubuntu ho recuperato la partizione, ho sovrascritto la partizione (formattandola) dove era presente la 9.04 con la 10.04 e sostanzialmente ho ricreato una situazione preesistente ma con il sistema ubuntu più recente.
Quindi non vedo motivo per cui non venga riconosciuta da linux la partizione di Win7, come vedi gparted la vede.
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:34
da patel
hai provato a vedere quali file ci sono nella partizione di 7 ? c'è bootmgr ?
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:35
da Griffon1
l'update grub continua a non vedere Win7.
ti posto il file:
#
# 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 $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
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
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, con Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-24-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
echo 'Caricamento Linux 2.6.32-24-generic...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
echo 'Caricamento Linux 2.6.32-21-generic...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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.
menuentry "Windows 7 (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 62b8a6cab8a69c53
chainloader +1
### END /etc/grub.d/40_custom ###
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:37
da Bygepp
Griffon1 ha scritto:
l'update grub continua a non vedere Win7.
ti posto il file:
#
# 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 $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
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
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, con Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-24-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
echo 'Caricamento Linux 2.6.32-24-generic...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, con Linux 2.6.32-21-generic (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
echo 'Caricamento Linux 2.6.32-21-generic...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4832e61b-7382-4a3a-be17-fa51f23ed437 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 4832e61b-7382-4a3a-be17-fa51f23ed437
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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.
menuentry "Windows 7 (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 62b8a6cab8a69c53
chainloader +1
### END /etc/grub.d/40_custom ###
Ok, è tutto giusto, prova a riavviare e vedi se c'è ed evidentemente se parte.
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:38
da Griffon1
C'è una cartella chiamata BOOT.
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:41
da patel
ed in questa c'è il file bootmgr ? cosa c'è dentro ?
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:49
da Griffon1
Dentro boot ci sono 2 files: BCD e BCD.log
per Bygepp: forse conviene reistallare il grub2, si è avviato linux direttamente. Come posso reistallare il grub?
Re: [Grub] Non si carica Windows 7
Inviato: sabato 24 luglio 2010, 22:50
da Bygepp
Griffon1 ha scritto:
Dentro boot ci sono 2 files: BCD e BCD.log
per Bygepp: forse conviene reistallare il grub2, si è avviato linux direttamente. Come posso reistallare il grub?
Premi ESC quando riavvii subito dopo la scritta GRUB loading oppure il trattino lampeggiante