<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.heepy.net/index.php?action=history&amp;feed=atom&amp;title=Debian_%2F_windows_7_dual_boot</id>
	<title>Debian / windows 7 dual boot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.heepy.net/index.php?action=history&amp;feed=atom&amp;title=Debian_%2F_windows_7_dual_boot"/>
	<link rel="alternate" type="text/html" href="https://www.heepy.net/index.php?title=Debian_/_windows_7_dual_boot&amp;action=history"/>
	<updated>2026-04-20T17:42:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://www.heepy.net/index.php?title=Debian_/_windows_7_dual_boot&amp;diff=1262&amp;oldid=prev</id>
		<title>Morris: Created page with &quot;This is a horror show.   windows is in /dev/sda2  linuxboot is on /dev/sda3  linux is in /dev/sda5  if you boot windows and run photoshop, photoshop scribbles all over the embedd…&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.heepy.net/index.php?title=Debian_/_windows_7_dual_boot&amp;diff=1262&amp;oldid=prev"/>
		<updated>2012-06-30T03:33:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a horror show.   windows is in /dev/sda2  linuxboot is on /dev/sda3  linux is in /dev/sda5  if you boot windows and run photoshop, photoshop scribbles all over the embedd…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a horror show. &lt;br /&gt;
&lt;br /&gt;
windows is in /dev/sda2&lt;br /&gt;
&lt;br /&gt;
linuxboot is on /dev/sda3&lt;br /&gt;
&lt;br /&gt;
linux is in /dev/sda5&lt;br /&gt;
&lt;br /&gt;
if you boot windows and run photoshop, photoshop scribbles all over the&lt;br /&gt;
embedding area after the boot block, which is where grub's core.img lives. &lt;br /&gt;
This causes grub to still start, but hang after showing &amp;quot;Starting Grub&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The alternative is installing grub into a partition instead of the raw&lt;br /&gt;
disk and using debian's &amp;quot;mbr&amp;quot; package to boot the partition-installed grub.&lt;br /&gt;
(MBR boots whichever partition is marked &amp;quot;active&amp;quot; so you have to set&lt;br /&gt;
sda3 active.)&lt;br /&gt;
&lt;br /&gt;
The problem is that either installing mbr, or installing grub onto sda3, i&lt;br /&gt;
don't know which, makes windows freak out and think there's no windows &lt;br /&gt;
partition.  (it's not setting sda2 non-active.)&lt;br /&gt;
&lt;br /&gt;
1. from linux, &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	install-mbr /dev/sda&lt;br /&gt;
	grub-install --force /dev/sda3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now mbr boots to grub, grub boots linux fine, and boots windows, but windows&lt;br /&gt;
is unhappy.  You need to &amp;quot;repair&amp;quot; it by booting windows from the install media.&lt;br /&gt;
But this only works if the windows partition is set &amp;quot;active.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. fdisk /dev/sda and set partition 2 (windows) active. &lt;br /&gt;
&lt;br /&gt;
3. shutdown and boot off the windows install media. Select &amp;quot;repair my computer&amp;quot;&lt;br /&gt;
and let it do what it wants: &amp;quot;repair the problem preventing windows from&lt;br /&gt;
booting.&amp;quot; Strangely, this doesn't just replace the MBR. It just fixes whatever&lt;br /&gt;
is broken within the windows partition.  It does however re-break the grub&lt;br /&gt;
install on sda3. Who the fuck knows why. &lt;br /&gt;
&lt;br /&gt;
4. Boot linux from a live image. Run grub-install --force /dev/sda3 again. &lt;br /&gt;
fdisk /dev/sda3 and set partition 3 (linux boot) active and partition 2 &lt;br /&gt;
(windows) not active.  MBR is still fine, and will boot into the sda3 grub on&lt;br /&gt;
next boot. &lt;br /&gt;
&lt;br /&gt;
Now when you boot, MBR loads, starts grub from sda3 (because sda3 is active),&lt;br /&gt;
and gives you the normal grub menu. Linux boots fine as usual, and windows&lt;br /&gt;
starts ok now that we've &amp;quot;repaired&amp;quot; it. I have no idea what's actually going&lt;br /&gt;
on here, but it seemed to work.&lt;/div&gt;</summary>
		<author><name>Morris</name></author>
	</entry>
</feed>