<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Ubuntu ate my XP bootage</title>
	<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage/</link>
	<description>Comments on Ask MetaFilter post Ubuntu ate my XP bootage</description>
	<pubDate>Wed, 09 May 2007 17:21:15 -0800</pubDate>
	<lastBuildDate>Wed, 09 May 2007 17:21:15 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Ubuntu ate my XP bootage</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage</link>	
		<description>Ubuntu ate my WinXP via Grub: help me induce vomiting? &lt;br /&gt;&lt;br /&gt; After an apparently botched Ubuntu installation, I now only have Ubuntu boot options visible in the GRUB bootloader.  From inside Ubuntu, I can see that all of my Windows XP data and NTFS partitions are alive and well (thankfully).&lt;br&gt;
&lt;br&gt;
How do I get back into windows?&lt;br&gt;
&lt;br&gt;
Backround: XP on disk 0, NTFS data partition and Ubuntu partitions on disk 1.  The Ubuntu installation is totally expendible.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.62298</guid>
		<pubDate>Wed, 09 May 2007 17:11:05 -0800</pubDate>
		<dc:creator>onshi</dc:creator>
		
			<category>linux</category>
		
			<category>ubuntu</category>
		
			<category>grub</category>
		
			<category>windows</category>
		
			<category>xp</category>
		
			<category>boot</category>
		
			<category>help</category>
		
	</item> <item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937853</link>	
		<description>If you could, would you post the contents of your &lt;b&gt;/boot/grub/menu.lst &lt;/b&gt; file for us to peruse.&lt;br&gt;
&lt;br&gt;
You&apos;re looking for some lines that look like:&lt;br&gt;
&lt;br&gt;
title Microsoft Windows XP&lt;br&gt;
root (hd0,0)&lt;br&gt;
makeactive&lt;br&gt;
&lt;br&gt;
If they aren&apos;t there, that might be the start of your problems.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937853</guid>
		<pubDate>Wed, 09 May 2007 17:21:15 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item><item>
		<title>By: jellicle</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937855</link>	
		<description>can you do &quot;cat /boot/grub/menu.lst&quot; and post the output here?&lt;br&gt;
&lt;br&gt;
And do &quot;sudo fdisk -l&quot; (will not harm anything) and also post that output here?&lt;br&gt;
&lt;br&gt;
That should give us enough info to work from.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937855</guid>
		<pubDate>Wed, 09 May 2007 17:23:19 -0800</pubDate>
		<dc:creator>jellicle</dc:creator>
	</item><item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937857</link>	
		<description>Oh, also after you&apos;ve made whatever changes you need to make to menu.lst, I think you have to run:&lt;br&gt;
&lt;br&gt;
sudo update-grub</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937857</guid>
		<pubDate>Wed, 09 May 2007 17:23:46 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item><item>
		<title>By: toxic</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937862</link>	
		<description>&lt;em&gt;The Ubuntu installation is totally expendible.&lt;br&gt;
How do I get back into windows?&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
First, install or boot to the &lt;a href=&quot;http://support.microsoft.com/kb/307654&quot;&gt;Windows Recovery Console&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Then, use the &lt;b&gt;FIXMBR&lt;/b&gt; command on the console to reinstall Windows&apos; bootloader to your Master Boot Record.  This removes (most of) grub, and will make it difficult to boot back into Ubuntu.&lt;br&gt;
&lt;br&gt;
Or, if you want to try to salvage the installation,  if you add the following lines to your menu.lst file (in /boot/grub , usually), you might be able to dual-boot normally.  This assumes Windows is installed on the first partition of your first drive (which is usually true):&lt;br&gt;
&lt;br&gt;
After this line: ### END DEBIAN AUTOMAGIC KERNELS LIST&lt;br&gt;
&lt;br&gt;
add these lines:&lt;br&gt;
title           Microsoft Windows XP&lt;br&gt;
root            (hd0,0)&lt;br&gt;
makeactive&lt;br&gt;
chainloader     +1</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937862</guid>
		<pubDate>Wed, 09 May 2007 17:28:28 -0800</pubDate>
		<dc:creator>toxic</dc:creator>
	</item><item>
		<title>By: onshi</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937865</link>	
		<description>jellicle:  here goes...&lt;br&gt;
&lt;br&gt;
From menu.lst...&lt;br&gt;
&lt;br&gt;
title           Ubuntu, kernel 2.6.20-15-generic&lt;br&gt;
root            (hd1,4)&lt;br&gt;
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=2591af96-3b19-4701-ae0e-77bcbe1f0d5c ro quiet splash&lt;br&gt;
initrd          /boot/initrd.img-2.6.20-15-generic&lt;br&gt;
quiet&lt;br&gt;
savedefault&lt;br&gt;
&lt;br&gt;
title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)&lt;br&gt;
root            (hd1,4)&lt;br&gt;
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=2591af96-3b19-4701-ae0e-77bcbe1f0d5c ro single&lt;br&gt;
initrd          /boot/initrd.img-2.6.20-15-generic&lt;br&gt;
&lt;br&gt;
title           Ubuntu, memtest86+&lt;br&gt;
root            (hd1,4)&lt;br&gt;
kernel          /boot/memtest86+.bin&lt;br&gt;
quiet&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
And from fdisk...&lt;br&gt;
&lt;br&gt;
Disk /dev/sda: 160.0 GB, 160000000000 bytes&lt;br&gt;
255 heads, 63 sectors/track, 19452 cylinders&lt;br&gt;
Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br&gt;
&lt;br&gt;
   Device Boot      Start         End      Blocks   Id  System&lt;br&gt;
/dev/sda1               1           5       40131   de  Dell Utility&lt;br&gt;
/dev/sda2   *           6       18846   151340332+   7  HPFS/NTFS&lt;br&gt;
/dev/sda3           18847       19452     4867695   db  CP/M / CTOS / ...&lt;br&gt;
&lt;br&gt;
Disk /dev/sdb: 500.1 GB, 500107862016 bytes&lt;br&gt;
255 heads, 63 sectors/track, 60801 cylinders&lt;br&gt;
Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br&gt;
&lt;br&gt;
   Device Boot      Start         End      Blocks   Id  System&lt;br&gt;
/dev/sdb1               1       42315   339895206    7  HPFS/NTFS&lt;br&gt;
/dev/sdb2           42316       60801   148488795    f  W95 Ext&apos;d (LBA)&lt;br&gt;
/dev/sdb5           42316       60551   146480638+  83  Linux&lt;br&gt;
/dev/sdb6           60552       60801     2008093+  82  Linux swap / Solaris</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937865</guid>
		<pubDate>Wed, 09 May 2007 17:32:43 -0800</pubDate>
		<dc:creator>onshi</dc:creator>
	</item><item>
		<title>By: onshi</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937870</link>	
		<description>toxic: I&apos;ve edited the file, but as a Linux know-nothing, I don&apos;t now how to save over the un-edited, write-protected version of the file.  What would the appropriate command be to copy the edited file (in the same directory) over the old one?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937870</guid>
		<pubDate>Wed, 09 May 2007 17:35:53 -0800</pubDate>
		<dc:creator>onshi</dc:creator>
	</item><item>
		<title>By: onshi</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937871</link>	
		<description>So, /dev/sda2 is the windows partition I&apos;d like to boot from.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937871</guid>
		<pubDate>Wed, 09 May 2007 17:36:30 -0800</pubDate>
		<dc:creator>onshi</dc:creator>
	</item><item>
		<title>By: Jimbob</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937874</link>	
		<description>onshi, to copy to this.  Say, for example, the new file you&apos;ve made is called &quot;menu.new&quot;&lt;br&gt;
&lt;br&gt;
sudo cp menu.new /boot/grub/menu.lst</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937874</guid>
		<pubDate>Wed, 09 May 2007 17:37:54 -0800</pubDate>
		<dc:creator>Jimbob</dc:creator>
	</item><item>
		<title>By: rancidchickn</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937875</link>	
		<description>&lt;em&gt;I don&apos;t now how to save over the un-edited, write-protected version of the file.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Use the command &lt;em&gt;chmod +rw filename&lt;/em&gt; to make the file writeable for all users.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937875</guid>
		<pubDate>Wed, 09 May 2007 17:38:20 -0800</pubDate>
		<dc:creator>rancidchickn</dc:creator>
	</item><item>
		<title>By: toxic</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937880</link>	
		<description>&lt;em&gt;So, /dev/sda2 is the windows partition I&apos;d like to boot from.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Then replace (hd0,0) with (hd0,1) in my lines above.  What do you have on sda1?&lt;br&gt;
&lt;br&gt;
Jimbob is right with the command to copy one file over another (protected) one.  rancidchickn&apos;s solution will work, but is a VERY bad practice, because it is a potential security problem.&lt;br&gt;
&lt;br&gt;
In the future, when editing protected files (files owned by root), you should use sudo to start your editor... like this: &quot;sudo nano /boot/grub/menu.lst&quot;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937880</guid>
		<pubDate>Wed, 09 May 2007 17:42:14 -0800</pubDate>
		<dc:creator>toxic</dc:creator>
	</item><item>
		<title>By: chrisamiller</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937881</link>	
		<description>&lt;br&gt;
To edit protected files use sudo.  Always make a backup of your bootloader first.  In this case, you&apos;ll probably use:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.backup&lt;br&gt;
&lt;br&gt;
sudo gedit /boot/grub/menu.lst&quot;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
If you have a dell it often comes with a hidden diagnostic/recovery partition built in.  In that case, your windows install will be at (hd0,1), rather than (hd0,0).&lt;br&gt;
&lt;br&gt;
Here&apos;s the relevant section from my Ubuntu/XP dual boot system:&lt;br&gt;
------------------------------&lt;br&gt;
title   Windows XP&lt;br&gt;
root    (hd0,1)&lt;br&gt;
makeactive&lt;br&gt;
chainloader     +1&lt;br&gt;
&lt;br&gt;
title           Dell Diagnostics&lt;br&gt;
root            (hd0,0)&lt;br&gt;
makeactive&lt;br&gt;
chainloader     +1&lt;br&gt;
---------------------------------------</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937881</guid>
		<pubDate>Wed, 09 May 2007 17:42:37 -0800</pubDate>
		<dc:creator>chrisamiller</dc:creator>
	</item><item>
		<title>By: jellicle</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937882</link>	
		<description>Okay, that&apos;s sort of a weird configuration, and I suppose that the Ubuntu installer failed to properly recognize your existing Windows installation.&lt;br&gt;
&lt;br&gt;
So what you need to do is: as root, edit the /boot/grub/menu.lst file.  &quot;sudo vi /boot/grub/menu.lst&quot; will work, if you know vi, a basic text editor.  If you don&apos;t know vi, try &quot;sudo gedit /boot/grub/menu.lst&quot; or &quot;sudo kedit /boot/grub/menu.lst&quot; (at least one of those graphical editors should be installed).&lt;br&gt;
&lt;br&gt;
Now that you&apos;re editing the file, add this at the end of it:&lt;br&gt;
&lt;br&gt;
title		Boot Microsoft Windows XP&lt;br&gt;
root		(hd0,1)&lt;br&gt;
savedefault&lt;br&gt;
makeactive&lt;br&gt;
chainloader	+1&lt;br&gt;
&lt;br&gt;
I find it odd that your menu.lst file doesn&apos;t have a bunch of stuff in it about a Debian automagic kernels list.  What happens when you run &quot;sudo /usr/sbin/update-grub&quot;?  Does the contents of the menu.lst file change (cat it again)?&lt;br&gt;
&lt;br&gt;
But anyway, adding those lines should let you boot Windows.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937882</guid>
		<pubDate>Wed, 09 May 2007 17:47:20 -0800</pubDate>
		<dc:creator>jellicle</dc:creator>
	</item><item>
		<title>By: chrisamiller</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937883</link>	
		<description>Another note:&lt;br&gt;
This stuff is all extensively covered over at the &lt;a href=&quot;http://ubuntuforums.org/&quot;&gt;Ubuntu Forums&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
In my experience, a few searches on that site will turn up an answer to damn near any question you have about Ubuntu.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937883</guid>
		<pubDate>Wed, 09 May 2007 17:47:28 -0800</pubDate>
		<dc:creator>chrisamiller</dc:creator>
	</item><item>
		<title>By: onshi</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937891</link>	
		<description>Thank you all for your help, I edited the file and can boot into Windows with impunity.  It does seem like the funky extra partitions (thanks, Dell!) were the problem.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937891</guid>
		<pubDate>Wed, 09 May 2007 17:55:38 -0800</pubDate>
		<dc:creator>onshi</dc:creator>
	</item><item>
		<title>By: chrisamiller</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#937971</link>	
		<description>&lt;em&gt;It does seem like the funky extra partitions (thanks, Dell!) were the problem.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
To be clear, the extra partition shouldn&apos;t have caused the problem with your install.  It just creates a problem when you manually edit your grub menu.&lt;br&gt;
&lt;br&gt;
I can&apos;t tell you exactly why the install went awry, but glad to hear that you&apos;re back up and running now.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-937971</guid>
		<pubDate>Wed, 09 May 2007 19:04:28 -0800</pubDate>
		<dc:creator>chrisamiller</dc:creator>
	</item><item>
		<title>By: onshi</title>
		<link>http://ask.metafilter.com/62298/Ubuntu-ate-my-XP-bootage#938700</link>	
		<description>chrisamiller: I was thinking that the Ubuntu install looked at my first HD and couldn&apos;t make sense of the partitioning there, hence the absence of a Windows boot option.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.62298-938700</guid>
		<pubDate>Thu, 10 May 2007 12:44:13 -0800</pubDate>
		<dc:creator>onshi</dc:creator>
	</item>
	</channel>
</rss>
