<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Ewout Stam . com</title>
 <link href="http://tom.preston-werner.com/atom.xml" rel="self"/>
 <link href="http://tom.preston-werner.com/"/>
 <updated>2009-12-26T19:11:24+01:00</updated>
 <id>http://ewoutstam.com/</id>
 <author>
   <name>Ewout Stam</name>
   <email></email>
 </author>

 
 <entry>
   <title>Reinstalling Windows XP on an Acer Aspire One with Linux on it</title>
   <link href="http://www.ewoutstam.com/howto/aspire-one-reinstall-windows.html"/>
   <updated>2009-12-26T00:00:00+01:00</updated>
   <id>http://www.ewoutstam.com/howto/aspire-one-reinstall-windows</id>
   <content type="html">&lt;p&gt;About a year ago I got myself an Acer Aspire One, because it had a keyboard I could touch-type on
normally. I got a Windows XP version although I was only planning to run Linux on it, because I
could only get a Linux powered one with an 8 GB SSD. I thought that was a little small for my
needs.&lt;/p&gt;

&lt;p&gt;When I installed Linux I'd made sure to leave the restore partition alone, I might need it if I
wanted Windows XP again. No install disk was provided. Fair enough, the device doesn't even have a
drive for it, but what if I wanted to run Windows and install a bigger hard drive?&lt;/p&gt;

&lt;p&gt;It was time to restore Windows. I also wanted to keep running Linux on it, so I backed up my home
dir and ran the restore program. This was easy, it was an option in my Linux bootloader, which
thought the restore partition was a Windows 2000/NT install. However it didn't work because it expected
the partions right how they were &lt;em&gt;before&lt;/em&gt; I installed Linux.&lt;/p&gt;

&lt;p&gt;So I fired up a live Linux USB drive (Ubuntu 9.10) and changed the partitions. You can use
something like &lt;em&gt;Gparted&lt;/em&gt; for this, it's on most live distributions. Then the bootloader
didn't work any more, so I couldn't start the restore option. What you usually do is grab your
Windows install disk and use the recovery console's Here's what I did to fix everything:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Make sure the partitions are set up correctly. In my case this meant having the restore
    partition first, and all the remaining space was one fat32 partition. I formatted it fat32 just
    in case, but I'm not sure this step is required. Also make sure the first partition is set
    to &lt;em&gt;bootable&lt;/em&gt;.&lt;/li&gt;
  &lt;li&gt;Then I needed to set up the &lt;em&gt;MBR&lt;/em&gt; so it would boot into the restore partition. For this
    you use the program &lt;code&gt;install-mbr&lt;/code&gt;. I had to do &lt;code&gt;sudo aptitude install mbr&lt;/code&gt;
    before I could do this.&lt;/li&gt;
  &lt;li&gt;I used the command &lt;code&gt;sudo install-mbr -i n -p D -t 0 /dev/sda&lt;/code&gt; to fix the mbr:
    &lt;ul&gt;
      &lt;li&gt;&lt;code&gt;-i n&lt;/code&gt; (do not display a menu)&lt;/li&gt;
      &lt;li&gt;&lt;code&gt;-p D&lt;/code&gt; (start the system by loading the partition that has the bootable flag set)&lt;/li&gt;
      &lt;li&gt;&lt;code&gt;-t 0&lt;/code&gt; (timeout before booting is 0)&lt;/li&gt;
      &lt;li&gt;&lt;code&gt;/dev/sda&lt;/code&gt; (The drive to install the &lt;em&gt;MBR&lt;/em&gt; on, in this
      case &lt;code&gt;/dev/sda&lt;/code&gt;, the only hard drive on the system.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;You will now be able to boot into the restore program, and restore Windows. Once the system
    reboots, you'll get the restore program again and again. You can use &lt;code&gt;install-mbr&lt;/code&gt;
    with different options to make the Windows partition the bootable partition, but since I'm going
    to install Linux on this, which has it's own boot menu facilities, there's no need.&lt;/li&gt;
  &lt;li&gt;The final task is to install Linux. I used &lt;a href=&quot;http://www.kubuntu.org/&quot;
    target=&quot;_blank&quot;&gt;Kubuntu 9.10&lt;/a&gt; which allowed me to resize the Windows partition without
    destroying it, as part of its installation process. Once the install was finished, I got a nice
    boot menu offering Linux, Windows XP, and the restore program, called something like &quot;Windows
    NT/2000&quot;. Note that the restore program won't work until you reset the partitions to their
    factory state like I explained above.
  &lt;/li&gt;
&lt;/ul&gt;

</content>
 </entry>
 
 <entry>
   <title>Site back up again</title>
   <link href="http://www.ewoutstam.com/meta/site-back-up.html"/>
   <updated>2009-12-15T00:00:00+01:00</updated>
   <id>http://www.ewoutstam.com/meta/site-back-up</id>
   <content type="html">&lt;p&gt;I'm trying to figure out what to do with this site. Trying to
use &lt;a href=&quot;http://jekyllrb.com/&quot; target=&quot;_blank&quot;&gt;Jekyll&lt;/a&gt; to make it do what I want. I
could never find a blog engine that was nice to use. Jekyll is not a blog engine, but a static site
generatior. Dynamic stuff like trackbacks and comments don't work, but I can set up something with
Disqus. Maybe I'll do that sometime.&lt;/p&gt;

&lt;p&gt;I'll be reposting old blog posts later. And write new stuff.&lt;/p&gt;
</content>
 </entry>
 

</feed>
