[Grub] Problema dual boot windows 7 e ubuntu 10.10

Problemi riscontrati durante l'installazione di Ubuntu, degli aggiornamenti e degli avanzamenti del sistema.
luca2121
Prode Principiante
Messaggi: 15
Iscrizione: domenica 20 marzo 2011, 19:13

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio 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.
Avatar utente
Petr
Rampante Reduce
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

Messaggio 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
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.
luca2121
Prode Principiante
Messaggi: 15
Iscrizione: domenica 20 marzo 2011, 19:13

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio da luca2121 »

Errore:

ubuntu@ubuntu:~$ sudo grub-install --root-directory=/dev/sda1 /dev/sda
mkdir: cannot create directory `/dev/sda1': Not a directory


Grazie.
Avatar utente
Petr
Rampante Reduce
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

Messaggio 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 mkdir /media/sda1

Codice: Seleziona tutto

sudo mount /dev/sda1 /media/sda1

Codice: Seleziona tutto

sudo grub-install --root-directory=/media/sda1 /dev/sda
Avatar utente
anakin13
Prode Principiante
Messaggi: 162
Iscrizione: martedì 12 agosto 2008, 16:28

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio 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 :

Codice: Seleziona tutto

0xc0000255
.. come potrei fare?
Tarek lavagna
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 283
Iscrizione: venerdì 28 gennaio 2011, 15:19

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio 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 :

Codice: Seleziona tutto

0xc0000255
.. come potrei fare?
dai anche tu il comando

Codice: Seleziona tutto

sudo fdisk -l
e magari posta una schermata di gparted
Avatar utente
anakin13
Prode Principiante
Messaggi: 162
Iscrizione: martedì 12 agosto 2008, 16:28

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio 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:
Immagine

Uploaded with ImageShack.us
Tarek lavagna
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 283
Iscrizione: venerdì 28 gennaio 2011, 15:19

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio da Tarek lavagna »

immagino che Windows si trovi in sda3
dai il comando

Codice: Seleziona tutto

cat /boot/grub/grub.cfg
e anche

Codice: Seleziona tutto

sudo update-grub
Avatar utente
anakin13
Prode Principiante
Messaggi: 162
Iscrizione: martedì 12 agosto 2008, 16:28

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio da anakin13 »

ho dato da terminale il comando

Codice: Seleziona tutto

cat /boot/grub/grub.cfg
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..
Ultima modifica di anakin13 il lunedì 21 marzo 2011, 11:45, modificato 1 volta in totale.
Avatar utente
anakin13
Prode Principiante
Messaggi: 162
Iscrizione: martedì 12 agosto 2008, 16:28

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio da anakin13 »

up
Tarek lavagna
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 283
Iscrizione: venerdì 28 gennaio 2011, 15:19

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio da Tarek lavagna »

ma il tuo Windows ce l hai in sda3 o sda2?
Avatar utente
anakin13
Prode Principiante
Messaggi: 162
Iscrizione: martedì 12 agosto 2008, 16:28

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio 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..
Avatar utente
frug75
Imperturbabile Insigne
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

Messaggio 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.
Fedora 15, Ubuntu 11.04-10.10-10.04, Windows7 su notebook Packard Bell EasyNote, Intel i3-330M,Nvidia GeForceGT320M 1GB VRAM, 4GB DDR3 RAM
Android 2.2 su cell.
http://frug75.wordpress.com/    Unity è per tablet?
Avatar utente
anakin13
Prode Principiante
Messaggi: 162
Iscrizione: martedì 12 agosto 2008, 16:28

[Risolto] Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio 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 ;)
luca2121
Prode Principiante
Messaggi: 15
Iscrizione: domenica 20 marzo 2011, 19:13

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio da luca2121 »

Ok, a me adesso appena accendo il pc mi compare una schermata con scritto grub>, che comando devo usare per aprire windows?
Avatar utente
frug75
Imperturbabile Insigne
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

Messaggio 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:

Codice: Seleziona tutto

insmod ntfs
set root=(hd1,0)
CTRL+X e dovrebbe andare.
Se premi tab, ti dovrebbe dare le opzioni possibili, magari ti facilita la cosa.
Fedora 15, Ubuntu 11.04-10.10-10.04, Windows7 su notebook Packard Bell EasyNote, Intel i3-330M,Nvidia GeForceGT320M 1GB VRAM, 4GB DDR3 RAM
Android 2.2 su cell.
http://frug75.wordpress.com/    Unity è per tablet?
luca2121
Prode Principiante
Messaggi: 15
Iscrizione: domenica 20 marzo 2011, 19:13

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio 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


luca2121
Prode Principiante
Messaggi: 15
Iscrizione: domenica 20 marzo 2011, 19:13

Re: [Grub] Problema dual boot windows 7 e ubuntu 10.10

Messaggio da luca2121 »

up!
Avatar utente
frug75
Imperturbabile Insigne
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

Messaggio 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:

Codice: Seleziona tutto

sudo os-prober
sudo update-grub
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:

Codice: Seleziona tutto

sudo blkid /dev/sdb1
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:

Codice: Seleziona tutto

gksudo gedit etc/grub.d/40_custom
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:

Codice: Seleziona tutto

sudo update-grub
Anche se non compare, al riavvio te la trovi come ultima voce.
Ultima modifica di frug75 il lunedì 21 marzo 2011, 18:24, modificato 1 volta in totale.
Fedora 15, Ubuntu 11.04-10.10-10.04, Windows7 su notebook Packard Bell EasyNote, Intel i3-330M,Nvidia GeForceGT320M 1GB VRAM, 4GB DDR3 RAM
Android 2.2 su cell.
http://frug75.wordpress.com/    Unity è per tablet?
Scrivi risposta

Ritorna a “Installazione e aggiornamento del sistema operativo”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 8 ospiti