<?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>CodePy.Net &#187; 共存</title>
	<atom:link href="http://codepy.net/tag/%e5%85%b1%e5%ad%98/feed" rel="self" type="application/rss+xml" />
	<link>http://codepy.net</link>
	<description>专注网络开发：Python,PHP,Vim,Linux 分享我的快乐 -- Share My Happiness</description>
	<lastBuildDate>Sun, 15 Jan 2012 16:20:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ubuntu 与 vista 共存之道</title>
		<link>http://codepy.net/2008/11/25/ubuntu-and-vista.html</link>
		<comments>http://codepy.net/2008/11/25/ubuntu-and-vista.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 14:18:34 +0000</pubDate>
		<dc:creator>ruitao</dc:creator>
				<category><![CDATA[LINUX生活]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[共存]]></category>

		<guid isPermaLink="false">http://codepy.net/?p=72</guid>
		<description><![CDATA[上次想弄一个winXP，目的是为了搞个winxp主题，在VISTA下直接GHOST版本恢复到一个空白分区，用easybcd添加了一个XP启动项，结果重新启动一看，本来用来引导的grub被破坏，easybcd破坏了原来的MBR，最后解决问题，并且用windows vista的bootloader进行系统引导。 修复MBR 找个启动光盘，我用的是DM，重新写入MBR。 修复Bootloader 用VISTA光盘启动，然后进入修复模式，VISTA会自动识别到错误，修复即可。 修复Grub，但是将Grub安装到ubuntu所在分区。 用ubuntu live cd 光盘启动，进入光盘系统，打开终端，进行以下操作： 1 2 3 4 5 sudo grub grub find /boot/grub/stage1 grub root &#40;hd0,3&#41; grub setup &#40;hd0,3&#41; grub  quit 注意: 在&#8221;find /boot/grub/stage1&#8243;命令之后，会显示ubuntu所在分区，因为我们是要将grub写入到Linux分区，将(hd0,3)替换为&#8221;find /boot/grub/stage1&#8243;命令获得的结果。 重启，进入VISTA，打开easybcd，选择“Add/Remove Entries ”，选Linux，Type选&#8221;Grub&#8221;，Name自己写，Driver选你Linux所在分区。 OK，重启看看吧，至此完成]]></description>
			<content:encoded><![CDATA[<p>上次想弄一个winXP，目的是为了搞个winxp主题，在VISTA下直接GHOST版本恢复到一个空白分区，用<a href="www.onlinedown.net/soft/58174.htm" target="_blank">easybcd</a>添加了一个XP启动项，结果重新启动一看，本来用来引导的grub被破坏，easybcd破坏了原来的MBR，最后解决问题，并且用windows vista的bootloader进行系统引导。</p>
<p><strong>修复MBR</strong></p>
<p>找个启动光盘，我用的是DM，重新写入MBR。</p>
<p><strong>修复Bootloader</strong></p>
<p>用VISTA光盘启动，然后进入修复模式，VISTA会自动识别到错误，修复即可。</p>
<p><strong>修复Grub，但是将Grub安装到ubuntu所在分区。</strong></p>
<p>用ubuntu live cd 光盘启动，进入光盘系统，打开终端，进行以下操作：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> grub
grub  <span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>stage1
grub  root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
grub  setup <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
grub  quit</pre></td></tr></table></div>

<p>注意: 在&#8221;find /boot/grub/stage1&#8243;命令之后，会显示ubuntu所在分区，因为我们是要将grub写入到Linux分区，将(hd0,3)替换为&#8221;find /boot/grub/stage1&#8243;命令获得的结果。</p>
<p>重启，进入VISTA，打开easybcd，选择“Add/Remove Entries ”，选Linux，Type选&#8221;Grub&#8221;，Name自己写，Driver选你Linux所在分区。</p>
<p>OK，重启看看吧，至此完成</p>
]]></content:encoded>
			<wfw:commentRss>http://codepy.net/2008/11/25/ubuntu-and-vista.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

