<br>Come avevo accennato ieri il mio GRUB originale era stato sostituito da quello della linux mint... quindi stamattina la prima cosa da fare era ripristinarlo. Questa procedura è valida anche quando si installa windows dopo linux.. e risponde anche ad alcune domande apparse in lista qualche giorno fa...
<br><br>questa la mia procedura (da maniaci ;-) ) però se siamo curiosi e non eseguiamo senza pensare, può incuriosire e far pensare a che non l&#39;ha ancora fatto a scoprire il meccanismo di boot di linux.<br><br>&lt;INIZIO&gt;
<br>fare il boot con una live (io ho usato systemrescue basato su gentoo, ma la knoppix va bene)<br><br>individuare la struttura del disco ed in particolare le partizioni /boot e /<br><span style="font-family: courier new,monospace;">
# fdisk -l</span><br><br>creare un punto di mount per root<br><span style="font-family: courier new,monospace;"># mkdir /mnt/root</span><br><br>e montarla (sda5 è il mio caso, per voi sarà diversa es. hda1)<br><span style="font-family: courier new,monospace;">
# mount -t ext3 /dev/sda5 /mnt/root&nbsp;&nbsp;&nbsp;&nbsp; </span><br><br>montare il file system virtuale /proc&nbsp;&nbsp;&nbsp; (cfr.. <a href="http://www.pluto.it/files/ildp/lfs/lfs/5.1.1/chapter06/proc.html">http://www.pluto.it/files/ildp/lfs/lfs/5.1.1/chapter06/proc.html
</a>)<br><span style="font-family: courier new,monospace;"># mount -t proc none /mnt/root/proc</span><br><br>montare il file system per i device /dev<br><span style="font-family: courier new,monospace;"># mount -o bind /dev /mnt/root/dev
</span><br><br>effettuiamo il chroot (cfr.:<a href="http://a2.pluto.it/a2488.htm">http://a2.pluto.it/a2488.htm</a>)<br><span style="font-family: courier new,monospace;"># chroot /mnt/root /bin/bash</span><br><br>apriamo la shell di grub
<br><span style="font-family: courier new,monospace;"># grub </span><br><br>cerchiamo il grub originaro della nostra distro (vi restuirò l&#39;hd e 2 numeri)<br><span style="font-family: courier new,monospace;">grub&gt; find /boot/grub/stage1
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">(sd0,0)</span><br><br><span style="font-family: courier new,monospace;">grub&gt; root (sd0,0)</span><br>vi restituirà qualcosa tipo:
<br><span style="font-family: courier new,monospace;">Filesystem type is ext3fs, partition type 0x82</span><br><br><span style="font-family: courier new,monospace;">grub&gt; setup (sd0)</span><br>vi restituirà qualcosa tipo:
<br><span style="font-family: courier new,monospace;">Checking if &quot;/boot/grub/stage1&quot; exist ... yes </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">....</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Running &quot;embed /boot/grub/e2fs_stage1_5 (sd0) ...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
....</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Running &quot;install /boot/grub/stage1 d (sd0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
/boot/grub/stage2 p /boot/grub/menu.lst&quot; ... succeeded</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">done.</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">grub&gt;quit</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># reboot
</span><br><br>&lt;FINE&gt;<br><br>P.S.<br>poi mi hanno detto metti il cd di installazione, scegli rescue mode e al prompt digita <br><span style="font-family: courier new,monospace;">&gt;grub-install (sd0)</span><br><br>
dhé dice si fa prima ;-) e con un comando solo<br>ma io il disco della suse 10.3 lì per lì non ce l&#39;avevo ..<br><br><br>-- <br>Alessandro Scapuzzi (dado)<br>Linux User #405965