Pagina 2 di 2
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: domenica 20 marzo 2011, 22:05
da luca2121
Come ti ho gia spiegato non posso aprire più ne linux ne windows 7 perchè appena accendo il pc mi compare la schermata nera con scritto in bianco "grub>" e io devo inserire dei comandi, non so quali.
Mi blocco là... adesso sto scrivendo da ubuntu prova con cd live.
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: domenica 20 marzo 2011, 22:10
da Petr
luca2121 ha scritto:
Come ti ho gia spiegato non posso aprire più ne linux ne windows 7 perchè appena accendo il pc mi compare la schermata nera con scritto in bianco "grub>" e io devo inserire dei comandi, non so quali.
Mi blocco là... adesso sto scrivendo da ubuntu prova con cd live.
Devi farlo da live cd.
Le operazioni di ripristino si fanno da live.
Ti è stato anche detto ma non sò se leggi
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: domenica 20 marzo 2011, 22:13
da luca2121
Errore:
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/dev/sda1 /dev/sda
mkdir: cannot create directory `/dev/sda1': Not a directory
Grazie.
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: domenica 20 marzo 2011, 22:20
da Petr
luca2121 ha scritto:
Errore:
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/dev/sda1 /dev/sda
mkdir: cannot create directory `/dev/sda1': Not a directory
Grazie.
Segui cosi:
Codice: Seleziona tutto
sudo grub-install --root-directory=/media/sda1 /dev/sda
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: domenica 20 marzo 2011, 23:09
da anakin13
Ragazzi io ho lo stesso problema.. solo che ho i sistemi sullo stesso hard disk.. ho provato a seguire alla lettera la wiki
http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/Ripristino ma senza alcun risultato.. quando vado ad avviare windows 7 mi dice che un'elemento necessario è inaccessibile, e come stato mi da :
.. come potrei fare?
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: domenica 20 marzo 2011, 23:30
da Tarek lavagna
anakin13 ha scritto:
Ragazzi io ho lo stesso problema.. solo che ho i sistemi sullo stesso hard disk.. ho provato a seguire alla lettera la wiki
http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/Ripristino ma senza alcun risultato.. quando vado ad avviare windows 7 mi dice che un'elemento necessario è inaccessibile, e come stato mi da :
.. come potrei fare?
dai anche tu il comando
e magari posta una schermata di gparted
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 0:06
da anakin13
allora.. questo è il risultato di sudo fdisk -l :
Codice: Seleziona tutto
Disco /dev/sda: 320.1 GB, 320072933376 byte
255 testine, 63 settori/tracce, 38913 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x47e0c5c6
Dispositivo Boot Start End Blocks Id System
/dev/sda1 1 1274 10233373+ 27 Sconosciuto
/dev/sda2 * 1275 1287 102400 7 HPFS/NTFS
/dev/sda3 1288 25519 194638848 7 HPFS/NTFS
/dev/sda4 25519 38914 107591681 5 Esteso
/dev/sda5 25519 25762 1951744 82 Linux swap / Solaris
/dev/sda6 25762 31841 48827392 83 Linux
/dev/sda7 31841 38914 56810496 83 Linux
Disco /dev/sdb: 1000.2 GB, 1000204886016 byte
255 testine, 63 settori/tracce, 121601 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0xe8900690
Dispositivo Boot Start End Blocks Id System
/dev/sdb1 1 121601 976760000 7 HPFS/NTFS
e questa e la schermata di gparted:
Uploaded with
ImageShack.us
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 0:21
da Tarek lavagna
immagino che Windows si trovi in sda3
dai il comando
e anche
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 11:40
da anakin13
ho dato da terminale il comando
e il risultato è questo :
Codice: Seleziona tutto
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
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, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=09ec401c-b282-439a-af23-fc1ce630a5f9 ro quiet splash
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
echo 'Loading Linux 2.6.35-28-generic ...'
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=09ec401c-b282-439a-af23-fc1ce630a5f9 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=09ec401c-b282-439a-af23-fc1ce630a5f9 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=09ec401c-b282-439a-af23-fc1ce630a5f9 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 09ec401c-b282-439a-af23-fc1ce630a5f9
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ee1850c5e49bed2a
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 2e9048b8904887f3
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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
e ho aggiornato il grub :
Codice: Seleziona tutto
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-28-generic
Found initrd image: /boot/initrd.img-2.6.35-28-generic
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
done
posto tutto il codice in modo che se ci sono degli errori nella configurazione (che io non sono in grado di vedere) magari si possa individuare il problema..
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 13:37
da anakin13
up
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 13:38
da Tarek lavagna
ma il tuo Windows ce l hai in sda3 o sda2?
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 14:05
da anakin13
Tarek lavagna ha scritto:
ma il tuo Windows ce l hai in sda3 o sda2?
in sda2 ci sono dei file di boot, la cartella di win con impostazioni ecc sta in sda3..
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 14:08
da frug75
anakin13 ha scritto:
......
e ho aggiornato il grub :
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-28-generic
Found initrd image: /boot/initrd.img-2.6.35-28-generic
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
done
posto tutto il codice in modo che se ci sono degli errori nella configurazione (che io non sono in grado di vedere) magari si possa individuare il problema..
Il tuo non è un problema di grub o di ubuntu , ti vede sia windows 7 (che ha il boot in sda2 e i file di sistema in sda3) che la partizione di ripristino (o recovery in sda1, quella che vede come Vista): devi ripristinare windows.
Se dopo (molto probabile) non ti vede più Ubuntu in avvio, devi semplicemente ripristinare Grub con la guida postata prima.
[Risolto] Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 14:12
da anakin13
Ragazzi ho risolto! ora parlo da windows

il problema stava nello spazio non allocato.. c'èrano 3 Mb di spazio vuoto tra la partizione sda2 (Boot) e la sda3 (Win) che non le metteva in contatto... spostando lo spazio vuoto dopo la sda3 ho potuto avviare normalmente windows..
Grazie ugualmente per le risposte

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 16:48
da luca2121
Ok, a me adesso appena accendo il pc mi compare una schermata con scritto grub>, che comando devo usare per aprire windows?
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 17:04
da frug75
luca2121 ha scritto:
Ok, a me adesso appena accendo il pc mi compare una schermata con scritto grub>, che comando devo usare per aprire windows?
Se windows è in sdb1:
CTRL+X e dovrebbe andare.
Se premi tab, ti dovrebbe dare le opzioni possibili, magari ti facilita la cosa.
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 17:21
da luca2121
Scusami, ormai ho reinstallato ubuntu...
Comunque era quello il grub? E per aprire windows dovevo sempre usare quel codice?
Vabbè rifaccio
Ecco grub.cfg
Codice: Seleziona tutto
utente@utente-HP-Pavilion-dv7-Notebook-PC:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 4c82b5e1-365d-4953-b103-98d64067eb59
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 4c82b5e1-365d-4953-b103-98d64067eb59
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, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 4c82b5e1-365d-4953-b103-98d64067eb59
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=4c82b5e1-365d-4953-b103-98d64067eb59 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 4c82b5e1-365d-4953-b103-98d64067eb59
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=4c82b5e1-365d-4953-b103-98d64067eb59 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 4c82b5e1-365d-4953-b103-98d64067eb59
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 4c82b5e1-365d-4953-b103-98d64067eb59
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
ecco i dischi:
Codice: Seleziona tutto
utente@utente-HP-Pavilion-dv7-Notebook-PC:~$ sudo fdisk -l
[sudo] password for utente:
Disco /dev/sda: 250.1 GB, 250059350016 byte
255 testine, 63 settori/tracce, 30401 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x0007e796
Dispositivo Boot Start End Blocks Id System
/dev/sda1 1 122 975873 5 Esteso
La partizione 1 non termina al limite del cilindro.
/dev/sda2 * 122 30402 243221504 83 Linux
/dev/sda5 1 122 975872 82 Linux swap / Solaris
Disco /dev/sdb: 250.1 GB, 250059350016 byte
255 testine, 63 settori/tracce, 30401 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0xd9a8e1c8
Dispositivo Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 7 HPFS/NTFS
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 18:13
da luca2121
up!
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Inviato: lunedì 21 marzo 2011, 18:22
da frug75
luca2121 ha scritto:
Scusami, ormai ho reinstallato ubuntu...
Comunque era quello il grub? E per aprire windows dovevo sempre usare quel codice?
Vabbè rifaccio
...........
Allora se ubuntu parte, come prima cosa, prova ad aprire il terminale e a digitare:
se te lo trova, riavvia e vedi se funziona.
Se non lo trova, ho appena scoperto in un altro post come fare a imporre il boot.
Devi trovare l'UUID della partizione in cui hai windows, quindi per te:
ti viene fuori una scritta tipo:
/dev/sdb1: LABEL="TUOWINDOWS" UUID="40E2B156E2B15140" TYPE="ntfs"
quello in rosso è l'UUID,
Poi dovresti editare il file etc/grub.d/40_custom da terminale:
si apre un file con delle scritte che non devi toccare, queste:
#! /bin/sh
exec tail -n +3 $0
# 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.
devi aggiungere questo:
echo "Adding Windows SEVEN" >&2
menuentry "Windows SEVEN" {
insmod ntfs
set root=(hd1,0)
search –no-floppy –fs-uuid –set UUID
chainloader +1
}
Sostituendo solo dove è in rosso il tuo UUID.
Salvi il file e sempre da terminale dai:
Anche se non compare, al riavvio te la trovi come ultima voce.