wellerson Posted September 19, 2009 Share Posted September 19, 2009 So... when i was installing the new version of ubuntu on my laptop(sony vaio) vgnfw250j i accidentally wrote over my windows partition... i still have a restore partition but it wont work because when it goes through the process restarts and says grub error 22 i need to reinstall the boot loader maybe? but how? please help im trying to reinstall windows and dual boot with ubuntu 9.04 thanks. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted September 20, 2009 Share Posted September 20, 2009 Humm error 22, sounds like you messed up the ubuntu partition, in any case, boot from a windows recovery disk (or windows boot disk and choose recovery console) and type FIXBOOT FIXMBR that should sort it for the restore partition, but your loss grub you could also try to keep grub Boot off of the live CD Open a Terminal sudo grub root (hd0,0) setup (hd0) To Add windows to grub, sudo gedit /boot/grub/menu.lst and add title Windows XP root (hd0,0) makeactive chainloader +1 hope that helps Quote Link to comment Share on other sites More sharing options...
broseph Posted September 22, 2009 Share Posted September 22, 2009 MadTechies instructions will work if your linux partition is /dev/sda1. If you have trouble, please post the output of sudo fdisk -l And we can give you step by step instructions. Quote Link to comment Share on other sites More sharing options...
wellerson Posted September 28, 2009 Author Share Posted September 28, 2009 i dont have a windows live cd is there anything else i can do? Quote Link to comment Share on other sites More sharing options...
broseph Posted September 29, 2009 Share Posted September 29, 2009 To restore the windows MBR you need a windows CD. You can *try* to recover everything by reinstalling grub per MadTechie's suggestions but I dont have high hopes thats going to work for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.