Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently purchased a Dell Vostro notebook with Ubuntu Netbook edition 10.04 pre-installed. I tried adding a partition and installed Windows XP but it didn't work out due to too many partitions in the system already.

Now I have restored the laptop to factory setting using Dell Utility partition and the Windows partition is completely deleted, however my grub2 still shows Windows on /dev/sda2

sudo os-probe

Microsoft Windows XP Professional (on /dev/sda2)

Any ideas how to remove it from grub? I know I can remove /etc/grub.d/30_os-probe but I am more interested in why os-probe is showing the deleted partition.

share|improve this question
up vote 1 down vote accepted

There are a few possibilities that I can think of:

  • The Dell utility deleted the marking of the partition but left all the data intact, and did not expand your Ubuntu partition to fill the space, and thus os-prober is somehow picking up on the remains of the Windows partition. That would indicate a bug in os-prober.
  • The utility didn't even delete the partition, but rather just reinstalled the boot loader when it found your Ubuntu partition still present! In that case, os-prober is actually correct. Have you checked with gparted or the like to verify that the partition is actually gone?
  • There is a restore partition there. While GRUB shouldn't treat a restore partition as an actual Windows installation, I've heard of various distributions doing so before, most recently Fedora 13, so it's not out of the realm of possibility. Very unlikely though, as your notebook came with Ubuntu pre-installed.
share|improve this answer
I have checked with gparted. The windows partition is deleted and there is no /dev/sda2 in the machine. – Sanjay Jan 31 '11 at 8:43
And is /dev/sda1 now encompassing the entire space of the drive? – farfromhome Jan 31 '11 at 18:47
yes, that is right. – Sanjay Feb 1 '11 at 4:18
That is very weird then; I think you have just found a bug in os-prober. You could try reporting the bug to Ubuntu or GRUB upstream if you want. – farfromhome Feb 1 '11 at 17:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.