2009
06.23

Oggi ho riorganizzato un po’ il mio PC.

Il mio hp ha due hard disk da 160 gb, ho scelto di dedicarne uno a Vista+XP (purtroppo ogni tanto sono costretto ad usare windows) ed uno a GNU/Linux.

Da utonto ho optato per Ubuntu: la uso da tempo e l’ultima versione funziona egregiamente out-of-the-box.

Installata in una manciata di minuti (installazione da pendrive, ne parlerò nel prossimo articolo), procedo al riavvio.

Sgradevole sorpresa: grub non c’é! L’installer l’ha messo sull’mbr dell’hd secondario, come spostarlo?

Per foruna, l’operazione è semplicissima!

  1. Avviamo la distro in modalità live
  2. da terminale:
    sudo grub-install --root-directory=/media/disk/boot /dev/sda
    dove /media/disk è la mia partizione di sistema (quella da avviare, che contiene la sottodirectory boot)

    /dev/sda è invece il disco rigido primario.

  3. Riavviamo ed ecco il nostro GRUB!

Today I reinstalled Ubuntu on my computer.

I have a laptop with two hard-disks, so I decided to install Windows on the primary hd and GNU/Linux on the second one.

About 25 minutes and “installation completed”, but grub isn’t there! Why?

The installer puts GRUB on the mbr of the disk in which you’re installing Ubuntu (the second one in my case)

To boot GNU/Linux I need to put GRUB on the primary hd: let’s see how!

  1. Boot your live distro from its cd or pendrive
  2. Open the terminal and write this command sudo grub-install --root-directory=/media/disk /dev/sda
    where /media/disk is the system partition (the folder with the “boot” subdirectory) and /dev/sda is the primary disk.
  3. Now reboot the system, our beloved GRUB is here!

Related posts:

  1. GRUB: come ti ripristino
  2. Ridimensionare foto al volo: ecco comeHow to resize a lot of photos automatically
  3. UNetBootin: creare pendrive bootabili
  4. Deframmentiamo l’Hd!

Related posts brought to you by Yet Another Related Posts Plugin.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

No Comment.

Add Your Comment