Come risolvere un errore di grub rescue unknown file system

Ho affrontato lo stesso problema una settimana fa quando mia sorella ha ricevuto un portatile HP che è arrivato con Windows 8.1 e Ubuntu precaricati. Windows era partizionato con 320 GB di disco non partizionato e il resto era allocato per Ubuntu. Tutto quello che ho fatto è stato partizionare il mio hard-disk in Windows. Poi una volta che ho riavviato il mio portatile mi ha detto "filesystem sconosciuto" "Grub Rescue" e non ho potuto andare oltre.

Dopo aver lottato per ore ho potuto risolvere il problema del boot-loader. Ecco cosa ho fatto:
-Smettila di farti prendere dal panico, non hai perso i tuoi dati.
-Accendi il portatile, aspetta di vedere la schermata di Grub Rescue.
-Digita i seguenti comandi

  • ls
  • Ti mostrerà una lista di partizioni che hai fatto.
  • You will get something like this (hd0),(hd0,msdos1)(hd0,msdos2)(hd0,msdos4)
  • You need to find which drive is your Ubuntu root for which type the following:
  • set prefix= (hd0,msdos1)/boot/grub
  • If it’s not the root drive you will get an error message "unknown filesystem". In that case try the same command with the next partion, ex: set prefix=(hd0,msdos2)/boot/grub
  • If you are not getting an error: Congrats, you have found your root drive. You can proceed to the next command after that:
  • set prefix=(hd0,msdos1)/boot/grub
  • insmod normal
  • normal
  • Your PC will now boot successfully. Now select Ubuntu & login.
  • Open Terminal( Ctr+Alt+T or use the search)
  • sudo update-grub
  • sudo grub-install /dev/sda
  • Now the bootloader error is fixed you should be able to boot your laptop normally & even your data is intact.

If sudo update-grub didn't work, type sudo grub-update