Ho avuto al necessità, poichè Windows (con cui Ubuntu è in dual boot) si era rpeso un brutto virus, di riformattarlo.
Durante l'installazione di windows, ancora nella parte iniziale in cui il processo di installazione cancellava la partizione precedente di windows, il pc mi si è riavviato, ed è comparsa una schermata nera che mi diceva che c'era stato un problema di installazione.
Ho ripetuto il processo di riformattazione, ed è andato bene, tranne che nella schermata dove comparivano le partizioni ora c'era un MB di "spazio non partizionato".
Sono comunque andato avanti ho installato windows.
Ho quindi messo su il cd live per ripristinare grub (AmministrazioneSistema/Grub/Ripristino) e ho iniziato a dare i comandi da terminale.
Ecco quello che è uscito:
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo fdisk -l
Warning: ignoring extra data in partition table 5
omitting empty partition (6)
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x513a2f0d
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9760 78392926+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 9760 60802 409993217 5 Extended
Partition 2 does not end on cylinder boundary.
/dev/sda5 9760 60050 403954688 83 Linux
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# grub-install /dev/sda
/usr/sbin/grub-setup: warn: L'area di embed è troppo piccola. L'immagine core.img non può esservi contenuta..
/usr/sbin/grub-setup: warn: L'embed non è possibile. GRUB può essere installato con questa configurazione solo usando blocklist. Le blocklist non sono comunque affidabili e ne viene sconsigliato l'uso..
/usr/sbin/grub-setup: error: Per utilizzare le blocklist, usare --force..
root@ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-23-generic
Found initrd image: /boot/initrd.img-2.6.32-23-generic
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-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
Found Microsoft Windows XP Home Edition on /dev/sda1
done
root@ubuntu:/# grub-install --recheck /dev/sda
/usr/sbin/grub-setup: warn: L'area di embed è troppo piccola. L'immagine core.img non può esservi contenuta..
/usr/sbin/grub-setup: warn: L'embed non è possibile. GRUB può essere installato con questa configurazione solo usando blocklist. Le blocklist non sono comunque affidabili e ne viene sconsigliato l'uso..
/usr/sbin/grub-setup: error: Per utilizzare le blocklist, usare --force..
root@ubuntu:/# exit
exit
ubuntu@ubuntu:~$ cd Codice:
ubuntu@ubuntu:~$ sudo umount /mnt/dev Il risultato è che grub non si installa.
Questa è la schermata iniziale di Gparted fatta sempre da CDlive

qualcuno mi sa dare un consiglio per riavere Grub e riaccedere ad Ubuntu?


