[Grub] Problema dual boot windows 7 e ubuntu 10.10
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Mi blocco là... adesso sto scrivendo da ubuntu prova con cd live.
- Petr
- Rampante Reduce

- Messaggi: 6203
- Iscrizione: lunedì 17 agosto 2009, 1:26
- Desktop: Unity
- Distribuzione: Ubuntu 14.04 LTS x86_64
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Devi farlo da live cd.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.
Le operazioni di ripristino si fanno da live.
Ti è stato anche detto ma non sò se leggi
frug75 ha scritto: Prova a ripristinare Grub, devi farlo da live cd: AmministrazioneSistema/Grub/Ripristino
non devi neanche sostituire i comandi perchè tu hai ubuntu su sda1.
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/dev/sda1 /dev/sda
mkdir: cannot create directory `/dev/sda1': Not a directory
Grazie.
- Petr
- Rampante Reduce

- Messaggi: 6203
- Iscrizione: lunedì 17 agosto 2009, 1:26
- Desktop: Unity
- Distribuzione: Ubuntu 14.04 LTS x86_64
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Segui cosi: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.
Codice: Seleziona tutto
sudo mkdir /media/sda1Codice: Seleziona tutto
sudo mount /dev/sda1 /media/sda1Codice: Seleziona tutto
sudo grub-install --root-directory=/media/sda1 /dev/sdaRe: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Codice: Seleziona tutto
0xc0000255-
Tarek lavagna
- Scoppiettante Seguace

- Messaggi: 283
- Iscrizione: venerdì 28 gennaio 2011, 15:19
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
dai anche tu il comandoanakin13 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?Codice: Seleziona tutto
0xc0000255
Codice: Seleziona tutto
sudo fdisk -lRe: [Grub] Problema dual boot windows 7 e ubuntu 10.10
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

Uploaded with ImageShack.us
-
Tarek lavagna
- Scoppiettante Seguace

- Messaggi: 283
- Iscrizione: venerdì 28 gennaio 2011, 15:19
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
dai il comando
Codice: Seleziona tutto
cat /boot/grub/grub.cfgCodice: Seleziona tutto
sudo update-grubRe: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Codice: Seleziona tutto
cat /boot/grub/grub.cfgCodice: 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 ###
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
-
Tarek lavagna
- Scoppiettante Seguace

- Messaggi: 283
- Iscrizione: venerdì 28 gennaio 2011, 15:19
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
in sda2 ci sono dei file di boot, la cartella di win con impostazioni ecc sta in sda3..Tarek lavagna ha scritto: ma il tuo Windows ce l hai in sda3 o sda2?
- frug75
- Imperturbabile Insigne

- Messaggi: 2662
- Iscrizione: domenica 11 luglio 2010, 16:00
- Località: Matrix
- Contatti:
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
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.anakin13 ha scritto: ......
e ho aggiornato il grub :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..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
Se dopo (molto probabile) non ti vede più Ubuntu in avvio, devi semplicemente ripristinare Grub con la guida postata prima.
Android 2.2 su cell.
http://frug75.wordpress.com/ Unity è per tablet?
[Risolto] Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Grazie ugualmente per le risposte
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
- frug75
- Imperturbabile Insigne

- Messaggi: 2662
- Iscrizione: domenica 11 luglio 2010, 16:00
- Località: Matrix
- Contatti:
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Se windows è in sdb1: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?
Codice: Seleziona tutto
insmod ntfs
set root=(hd1,0)Se premi tab, ti dovrebbe dare le opzioni possibili, magari ti facilita la cosa.
Android 2.2 su cell.
http://frug75.wordpress.com/ Unity è per tablet?
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
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 ###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
- frug75
- Imperturbabile Insigne

- Messaggi: 2662
- Iscrizione: domenica 11 luglio 2010, 16:00
- Località: Matrix
- Contatti:
Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10
Allora se ubuntu parte, come prima cosa, prova ad aprire il terminale e a digitare:luca2121 ha scritto: Scusami, ormai ho reinstallato ubuntu...
Comunque era quello il grub? E per aprire windows dovevo sempre usare quel codice?
Vabbè rifaccio
...........
Codice: Seleziona tutto
sudo os-prober
sudo update-grubSe 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:
Codice: Seleziona tutto
sudo blkid /dev/sdb1quello in rosso è l'UUID,/dev/sdb1: LABEL="TUOWINDOWS" UUID="40E2B156E2B15140" TYPE="ntfs"
Poi dovresti editare il file etc/grub.d/40_custom da terminale:
Codice: Seleziona tutto
gksudo gedit etc/grub.d/40_customdevi aggiungere questo:#! /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.
Sostituendo solo dove è in rosso il tuo UUID.echo "Adding Windows SEVEN" >&2
menuentry "Windows SEVEN" {
insmod ntfs
set root=(hd1,0)
search –no-floppy –fs-uuid –set UUID
chainloader +1
}
Salvi il file e sempre da terminale dai:
Codice: Seleziona tutto
sudo update-grubAndroid 2.2 su cell.
http://frug75.wordpress.com/ Unity è per tablet?
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 8 ospiti