The uninstaller fails to remove "Ubuntu" from boot.ini

Bug #400936 reported by Tarnay Kálmán
54
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Wubi
Fix Committed
High
Agostino Russo

Bug Description

When one uninstalls wubi he expects it to disappear altogether, yet it doesn't remove itself from boot.ini.

If one has multiple options in his boot.ini Windows by default will wait 30 seconds for him to make a decision during every boot.

This behaviour is quite irritating. No one wants a 30-second delay which he didn't have before.

Related branches

Revision history for this message
Agostino Russo (ago) wrote :

Hi if this is the case, it is a bug.
Can you please install and uninstall again using the latest version available at wubi-installer.org and post the wubi log?
The log is in the user temp folder.

Changed in wubi:
status: New → Incomplete
Revision history for this message
Richard Bailey (rmjb) wrote :

I also experience this bug with the version of Wubi on the 9.04 CD.

Changed in wubi:
status: Incomplete → Confirmed
Revision history for this message
Agostino Russo (ago) wrote :

Incomplete until there is a log

Changed in wubi:
status: Confirmed → Incomplete
Revision history for this message
David Balažic (xerces8) wrote :

Here is mine.

Changed in wubi:
status: Incomplete → New
Revision history for this message
Agostino Russo (ago) wrote :

I can see it tried to modify boot.ini but there is no error.
Is there anything peculiar about your set-up?

Revision history for this message
Bowmore (bowmore) wrote :

Agostino, what does this error message tell in David's log?

10-03 18:45 DEBUG TaskList: ## Running Remove bootloader entry...
10-03 18:45 ERROR WindowsBackend: Cannot find bcdedit
10-03 18:45 DEBUG WindowsBackend: undo_bootini C:

Is it just the result of a check whether the BCD boot loader is there or not?

I have the same error message and the same behaviour meaning that boot.ini is never reset at WinXP Wubi removals. The error message is correct in the sence that bcdedit is not present as a BCD boot loader is not installed i my WinXP.

I do have Windows 7 installed as well but its BCD boot loader is neither used to boot WinXP nor Wubi Ubuntu.

Revision history for this message
Agostino Russo (ago) wrote :

The log is fine. Yes it checks whether BCD is there which is not normally the case in XP.
It does then call undo_bootini which is the routine that should reset boot.ini to its previous state.

Revision history for this message
Bowmore (bowmore) wrote :

I've done some more testing and noticed that boot.ini is touched but not reset to previous state.

The boot.ini normally write protected. I unchecked that (made it writable) and then uninstalled Wubi Ubuntu. What happened was that boot.ini was reset to write protected but the task was not done, i.e ubuntu boot option is still there. Seems like it doesn't find what it looks for in there.

Revision history for this message
Agostino Russo (ago) wrote :

can you please attach your boot.ini?

Revision history for this message
Bowmore (bowmore) wrote :

Here's the boot.ini (attached)

Revision history for this message
Rob Beard (rob-esdelle) wrote :

I can confirm this also happens on the Ubuntu 9.10 CD.

Installed a fresh copy of XP Home SP3 on VirtualBox, then installed Ubuntu 9.10 on top of Windows XP using Wubi on the Ubuntu 9.10 CD. Booted into and configured Ubuntu and then rebooted back into Windows XP. Removed Ubuntu using add/remove programs, rebooted and Ubuntu is still an option on the boot menu. Selecting Ubuntu displays an error about hal.dll. Booting XP still works fine.

Changed in wubi:
status: New → Confirmed
Revision history for this message
Rob Beard (rob-esdelle) wrote :

Just tried the above in Windows Vista Home Premium SP1, removing Ubuntu does actually remove all traces of Ubuntu correctly, so rebooting after removing Ubuntu on Vista, everything starts correctly without any error messages.

Revision history for this message
David Balažic (xerces8) wrote :

> Just tried the above in Windows Vista Home Premium SP1

Vista has no boot.ini file, so this bug does not apply to Vista (and Windows 7).

Revision history for this message
Tarnay Kálmán (tarnay-kalman) wrote :

I can also confirm that this happens with Wubi 9.10 (rev160) on Windows Xp SP3 English version(downloaded straight from MSDN).

I did a fresh install of Windows XP English version(with SP3 preintegrated by Microsoft). Everything left at the default settings. No updates(after sp3), no activation, no fancy partition names. Installed Wubi from the website and then uninstalled it right away and Ubuntu was left in boot.ini.

Agostino Russo (ago)
Changed in wubi:
assignee: nobody → Agostino Russo (ago)
importance: Undecided → Medium
Agostino Russo (ago)
Changed in wubi:
importance: Medium → Critical
importance: Critical → High
Revision history for this message
Agostino Russo (ago) wrote :

Please test: http://wubi-installer.org/devel/minefield/Wubi-9.10-rev168.exe
To uninstall, replace C:\ubuntu\uninstall-wubi.exe with the file downloaded from the link above
Apologies for the inconvenience

Changed in wubi:
status: Confirmed → Fix Committed
Revision history for this message
Tarnay Kálmán (tarnay-kalman) wrote :

fix works for me

Revision history for this message
Rob Beard (rob-esdelle) wrote :

Also works here, after removing Ubuntu, it boots straight into XP.

Rob

Revision history for this message
Bowmore (bowmore) wrote :

Another me too!
Tested the patched uninstaller and the boot.ini was reset, i.e the Ubuntu boot option was removed.

Revision history for this message
avinamal (avinamal2) wrote :

V did the trick for me too, 10X.

Revision history for this message
Pdorman (pdorman1) wrote :

I have Windows 7 and continue to get the screen for dual boot up. I used Wubi to install Kubuntu and did an uninstall on Kubuntu but the dual boot screen continues to appear. Any help would be greatly appreciated. Thank you.

Revision history for this message
Pdorman (pdorman1) wrote :

I posted the above problem and found a solution to share. It worked and seems to be far easier than alternative methods of eliminating the boot up screen. The easiest way is download EasyBCD from NeoSmart Technologies. This is a free download which makes it easy to change boot up settings. After installation, click on Change Settings and delete the unwanted entry. This method was far easier than the many other methods.

Revision history for this message
Rob Beard (rob-esdelle) wrote : Re: [Bug 400936] Re: The uninstaller fails to remove "Ubuntu" from boot.ini

Quoting Pdorman <email address hidden>:

> I posted the above problem and found a solution to share. It worked
> and seems to be far easier than alternative methods of eliminating the
> boot up screen. The easiest way is download EasyBCD from NeoSmart
> Technologies. This is a free download which makes it easy to change
> boot up settings. After installation, click on Change Settings and
> delete the unwanted entry. This method was far easier than the many
> other methods.
>

Did you use the Wubi installer from the Ubuntu 9.10 CD?

There has been a fixed version released since but I'm guessing it
won't make it on to the Ubuntu CD until Ludid is released (unless it's
already on the Lucid Alpha CDs).

Rob

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.