<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>L&#039;ardoise eduvax - Tag grub</title>
	<link>http://eduvax.net/index.php?tag/grub</link>
	<language>en</language>
	<description>Blog, free software projects, computer tips and more</description>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://eduvax.net/feed.php?rss" />
	<lastBuildDate>Thu, 14 Aug 2014 14:24:00 +0200</lastBuildDate>
	<generator>PluXml</generator>
	<item>
		<title>Install grub manually to make disk bootable</title> 
		<link>http://eduvax.net/index.php?article7/install-grub-manually-to-make-disk-bootable</link>
		<guid>http://eduvax.net/index.php?article7/install-grub-manually-to-make-disk-bootable</guid>
		<description>&lt;p&gt;Use this procedure to repair a broken boot of a system disk boot or to make a new restored system disk bootable. To run the procedure you need an already running linux. If not available, use a live CD or USB key. The disk to make bootable must already contain a partition with almost complete linux system: in particular drub binaries and /boot directory with kernel and grub configuration.&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;first ensure what is the partition containing the /boot directory. In the following it&#039;s considered to be /dev/sdb1. Check this partition has the bootable flag and add it if not (defaulty use &lt;em&gt;fdisk&lt;/em&gt; to proceed).&lt;/li&gt;
&lt;li&gt;mount the root partition, and special file system at the right place relatively to the future root partition mount point.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;# mount /dev/sdb1 /mnt/
# mount -t proc none /mnt/proc
# mount -o bind /dev /mnt/dev
# mount -t sysfs sys /mnt/sys&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;start a chrooted shell into the future root file system and install grub from it.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;# chroot /mnt/ /bin/bash
# update-grub
# /usr/sbin/grub-install --recheck --no-floppy /dev/sdb&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;terminate chroot shell and unmount partitions properly and the disk is ready to boot.&lt;/li&gt;
&lt;/ul&gt;</description>
		<pubDate>Thu, 14 Aug 2014 14:24:00 +0200</pubDate>
		<dc:creator>Sebastien Devaux</dc:creator>
	</item>
</channel>
</rss>