Lost /boot partition

Recently I installed Windows XP on my machine where I had only Ubuntu. The problem is that I had my /boot on a separate, 200 Mb partition at beginning of the hard-disk (the leftmost). Installing windows, it said that it can't write MBR because there's an unknown partition, so I formatted that partition as NTFS, and I could finally get windows installed. Now I want to restore that partition so I can use my Linux keeping both systems.

Now should I install grub2 there, or it's OK by restoring partition data? If the first is the correct answer then provide me a little tutorial on installing it. Keep in mind that there was my /boot folder.


First get a copy of a Windows 98 Startup Disk that has fdisk on it (it will repair the MBR if GRUB has errors see down this text).

You should start the live cd (the same cd as the version installed), chroot into the partition of linux (man chroot) and from there (not sure if it will work):

sudo nano /etc/fstab -> remove the /boot entry

sudo mkdir /boot

sudo apt-get install -y linux grub2

sudo init 6

If this did not work and Windows does not start any more, insert the Windows 98 Startup Disk, boot from it and in the command line do:

fdisk /mbr

Category: boot Time: 2010-12-30 Views: 2

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.166 (s). 12 q(s)