Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 have two partition on my system. On one partition, I keep my data, and on other I install my OS.

By mistake, I installed Ubuntu 12.10 on the drive I had installed Windows. Now I need to get back to windows, but I don't want to loose my data.

Is there any method by which I can do that without using another hard drive ?

share|improve this question
How did you install Ubuntu? – Mitch Mar 23 '13 at 17:37
I installed ubuntu by using a pendrive. Here's how I made the bootable: And then I by mistake installed it on my OS partition – addresseerajat Mar 23 '13 at 17:40
No, what I meant did you choose along side windows, or replace windows? – Mitch Mar 23 '13 at 17:47
I replaced windows. – addresseerajat Mar 23 '13 at 17:48
Well... Windows is gone, but if your data is on the other drive, it should be fine. You'll have to reinstall windows. – Mitch Mar 23 '13 at 17:49

If you've formatted the windows drive, you're stuck.You can use your windows disc (or get an image file using your key, from the microsoft website) to reinstall windows on that partition, but as of now, you can recover some data using testdisk or photorec, but you can't restore the whole drive into it's previous state.

If you didn't format the disk, get BOOTITNG online( There is a free version available. Use it to restor MBR to Win7 MBR. It has an option to do it directly. You need to make a bootable disk/pen drive using another pc though.

share|improve this answer
You should elaborate what you chose while installing ubuntu. – Arpit Roopchandani Mar 23 '13 at 17:50
OK. And can you help me how to get access my data in the other partition. The format of that partition was NTFS, and I don't know how to access that data. – addresseerajat Mar 23 '13 at 17:52
I replaced windows while installing ubuntu – addresseerajat Mar 23 '13 at 17:53
You can just use ubuntu to access that now can't you? :D FYI - You don't see the ubuntu partition while installing windows because windows doesn't detect ext4 and swap partitions. Because windows is crap :D. If you wanna reinstall windows just in case you don't like ubuntu that much, use BOOTITNG to delete the ubuntu partitions. And then install windows – Arpit Roopchandani Mar 23 '13 at 17:55
Sorry to bother again. But will using BOOTIT NG won't delete my other partition on which I have my data saved ? – addresseerajat Mar 23 '13 at 18:42

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.