How can uninstall grub 1.5 of my laptop

Asked by Fiskal

I have installed Ubunto 6.0.6 in my laptop (Asus pro31f)which had installed windows vista. The problem is that now i can't enter to windows because it isn't in grub. After that i uninstalled Ubuntu and installed windows vista again with the recovery cd (formeted the whole hard disk). Now the problem is that when a reboot the laptop it doesn't enter to windows because the boot stop and shows:

     Grub 1.5 starting......wait....(something like that)
     error 2

Please can someone give me a solution to this problem....

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Fiskal
Solved:
Last query:
Last reply:
Revision history for this message
Fiskal (fiskal79) said :
#1

the error is 22

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) said :
#2

Besides partitions there is a thing called a boot-record. It usually contains just enough code (its really small) to launch a boot-manager somewhere of one of your partitions.

It still points to Grub (the Linux/Ubuntu bootloader) which you have removed. (it was part of the the Ubuntu system)

It has to point to the windows-bootloader instead of grub.

So, how do you fix this?
  - fire up that recovery cd
  - choose repair/recover (its called something like this)
  - choose repair bootloader

Now, Vista will boot correctly.

Just out of curiosity, why didn't you dual boat? You can have both Ubuntu and Vista installed... or did Ubuntu not satisfy specific needs?

Revision history for this message
Fiskal (fiskal79) said :
#3

I want to do dual boat but went i start to boot grub does't recognize windows vista so i can't enter to it!!!!!!If you have any answer to this problem it will be apreciate....thanks!!!

I used the recovery disk, but it didn't give me the option for repair. It just start to format the hard disk and install windows again. But the problem with grub is there again......

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) said :
#4

So, its more like a backup disc than a real vista installation disc?

Thats a bit problematic. You need to get a real vista installation disc. Perhaps you can make a system-repair-disc on somebody else's vista machine.

A windows XP repair wouldn't work, since Microsoft changed the bootloader with Vista .. although you could try (it might just work)

We are talking about either real offical installation CD's from Microsoft (not your computer's manufacturor) or a recovery diskette made under windows. Not a backup disc but a recovery disc: one that has fdisk on it or something simelar.

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) said :
#5

But if you want to do dual boot that might be an easier solution.
... you seem to already have vista installed (even though it doesn't boot)

If you reinstall Linux as a dual boot option you will be able to boot into both systems.

You might need to tweak something by hand, Vista is kind of anti-linux, but it should be possible.

So try to reinstall, and then come back here and we'll try to make sure grub boots you into Vista as well .. You might need to edit /boot/grub/menu.lst from within Ubuntu. And we might need to mark the vista partition as 'bootable' using gparted. But at this point reinstalling ubuntu and thereby restoring grub will be the way forward (if you still want to dual boot)

Make sure to choose 'resize' windows partition, so you don't overwrite it. Otherwise you have to reinstall vista again..

Revision history for this message
williamts99 (williamts99) said :
#6

Fiscal, even though the following references are not Vista specific, you may wish to have a look at them as they deal with Windows and Ubuntu dual booting.

Alan Pope has done a very nice screencast video that walks you through the process. http://video.google.com/videoplay?docid=-2369893842637434537

Also the wiki page is a very good reference.
https://help.ubuntu.com/community/WindowsDualBoot

Best Regards,
Williamts99

Revision history for this message
Fiskal (fiskal79) said :
#7

ok boys:

I installed Windows vista again with my backup cd, but i have not entered to it because Grub so i haven't done the first configuration to windows. After that i installed Ubunto 6.0.6 again but still i can't see my windows. Here are the data:

   Device Boot Start End Blocks Id System
/dev/sda1 2 6185 5120000 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 6185 71280 53898240 7 HPFS/NTFS
/dev/sda3 71404 117977 38563272 f W95 Ext'd (LBA)
/dev/sda5 74001 117977 36412316 83 Linux
/dev/sda6 71405 73877 2047638 82 Linux swap / Solaris

and this is my menu.lst

title Ubuntu, kernel 2.6.15-26-386
root (hd0,4)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-386
savedefault
boot

title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.15-26-386
boot

title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
boot

With this information....Can someone help me enter to windows again...

Thanks!!!!

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) said :
#8

I've googling around and it seems grub does not automatically recognizes Vista yet, so it doesn't automatically make a menu-entry. But we can do this for ourselves:

Do a "sudo nano /boot/grub/menu.lst"
.. and add this to the end of the file...

  title Microsoft Windows Vista
  root (hd0,1)
  savedefault
  makeactive
  chainloader +1

I am guessing the (hd0,1) part, if that doesn't work you should try (hd0,0). But I think its the second-partition of the first-hard-disc ..so my guess is (hd0,1).

Remember to save the menu.lst (control+O and then press [enter])
Then you should try to reboot and test the setting.

Let us know if you succeed...

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) said :
#9

Did it work?

Revision history for this message
Best Fiskal (fiskal79) said :
#10

I want to say Thank you boys...But it didn't work. I edited the menu.lst and windows was added to Grub, also when i tried to enter it was successful and started to loaded windows, but here i got another problem because windows got stuck in the screen loading and it didn't do anything. In conclusion i took the decision of uninstall Ubunto again because i need use windows and a lot of applications for it. I liked Ubuntu and the support of the people but i couldn't solve my problem so i'll use just the live cd.

Now I'll explain how i uninstaller grub and fixed the MBR. Because i had just my recovery cd and it didn't fixed my MBR just for experiment i installed my windows xp desktop cd and formated the whole hard disk. It was successful and fixed my MBR, after that i installed my recovery cd and finally i could enter to windows vista.

Now i'll wait a time until someone can do a successful installation of dual boot with Ubunto and Vista in a laptop......

Thanks mates!!!!