<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ThinkPad with Ubuntu &#187; PBR</title>
	<atom:link href="http://yoshi-1968.com/tag/pbr/feed/" rel="self" type="application/rss+xml" />
	<link>http://yoshi-1968.com</link>
	<description>～気が向いたときに時々メモる備忘録～</description>
	<lastBuildDate>Sat, 29 May 2010 05:46:38 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ubuntu 9.10</title>
		<link>http://yoshi-1968.com/2009/11/01/ubuntu-9-10/</link>
		<comments>http://yoshi-1968.com/2009/11/01/ubuntu-9-10/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 08:57:37 +0000</pubDate>
		<dc:creator>yoshimi</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[GRUB2]]></category>
		<category><![CDATA[MBM]]></category>
		<category><![CDATA[MBR]]></category>
		<category><![CDATA[PBR]]></category>

		<guid isPermaLink="false">http://yoshi-1968.com/?p=131</guid>
		<description><![CDATA[
この問題は11月6日のとおり既に解決済みです。
kiyoshiさんからいただいたコメントで、参考サイトhttp://wikiwiki.jp/disklessfun/?grub2_and_grub1がよくまとまっています [...]]]></description>
			<content:encoded><![CDATA[<hr />
<span style="color: #ff0000;">この問題は</span><a href="http://yoshi-1968.com/2009/11/06/grub-2-%E3%81%A8-pbr/">11月6日のとおり</a><span style="color: #ff0000;">既に解決済みです。</span><br />
<a href="http://kiyoandkei.bbs.fc2.com/">kiyoshiさん</a><span style="color: #ff0000;">からいただいたコメントで、参考サイト</span><a href="http://wikiwiki.jp/disklessfun/?grub2_and_grub1">http://wikiwiki.jp/disklessfun/?grub2_and_grub1</a><span style="color: #ff0000;">がよくまとまっていますので是非ご覧ください。</span></p>
<hr />
<br/><br />
久しぶりの備忘録。<br />
Windows7とubuntu9.10をインストールして我がX200も生れ変わりました。</p>
<p>さて、ubuntu9.10へのバージョンアップは色々面倒らしいので、新規インストールを選択しました。<br />
そこでハマったのがgrub2。結局今でも未解決ですが、とりあえずやったことを書きます。<br />
最終的にパーティションは次のようにしました。</p>
<ol>
<li>パーティション</li>
<blockquote><p>sda<br />
sda1（Windows7 Loader）<br />
sda2（Windows7）<br />
sda3（拡張領域）<br />
sda5（ext4。とりあえず１００M。ただし<strong>どこにもマウントしない</strong>。）<br />
sda6（ext4。/にマウント。）<br />
sda7（swap）</p></blockquote>
<li>インストール</li>
<p>なぜか、GRUB2がPBRにインストールできません。あるいはインストールできてもGRUB2が/boot以下を探せない？<br />
MBRには以前から使っている<a href="http://elm-chan.org/fsw/mbm/mbm.html">MBM</a>をインストールして、カーネルローダ（Windows LoaderとGRUB）を呼び出すことにしています。<br />
ダメだったのは次のパターン。</p>
<blockquote><p>・sda5を/にマウント。GRUBもsda5の先頭にインストール。<br />
・sda5を/bootにマウント、sda6を/にマウント。sda5の先頭にGRUBをインストール。<br />
・sda5を/にマウント、sda6を/bootにマウント。sda5の先頭にGRUBをインストール。</p></blockquote>
<p>結局、sda5はext4でフォーマットするものの、どこにもマウントせずに空っぽのままとして、sda6に/以下全てをインストールしたところ無事に起動しました。ＧＲＵＢはsda5の先頭にインストールしてます。</p>
<p>ちなみに、LiveCDで起動してgrub-installを実行すると</p>
<blockquote><p>grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.<br />
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.<br />
grub-setup: error: If you really want blocklists, use &#8211;force.</p></blockquote>
<p>となってダメ。オプション&#8211;forceを付けてもダメ。<br />
さらに、インストールできたパターンでも、あとから/bootをリネームして、/etc/fstabを編集してsda5を/bootにマウントしたらダメ。（もちろん/bootの中身を全部、sda5にコピーしてからです。）<br />
ただし、この時はMBMからGRUBのrescue起動までは進みました。<br />
結局、/をインストールしたパーティションと/bootをインストールしたパーティションにはGRUB2のインストールができないのかな？</ol>
<p><a href="https://forums.ubuntulinux.jp/viewtopic.php?id=5778">Ubuntu日本語フォーラム</a>で苦労されていたのを参考にしました。</p>
]]></content:encoded>
			<wfw:commentRss>http://yoshi-1968.com/2009/11/01/ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
