Super User is a question and answer site for computer enthusiasts and power users. 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 was trying to make some space to install linux in my HP notebook.
The computer had 4 partitions, I made space shrinking one and created a new one (facepalm) using the windows partitioning tool. It show me some warning message saying something about dynamic partitions, I ingored it, and went to the linux live CD.
I installed linux in the new partition, after the installation completed it told me that GRUB cannot be installed I dont remember why.

So now, it doesnt boot, neither windows nor linux.
After google for a while I found the diskpart command, it gives me this info:

DISKPART> list disk

DISK ###  Status
--------  ---------------
DISK 0    Invalid

DISKPART> select disk 0
DISKPART> select partition

Partition ###  TYPE     
-------------  --------------
Partition 1    Dynamic Data
Partition 2    Dynamic Data
Partition 3    Dynamic Data
Partition 4    Primary        <- I think I put linux here

Any idea whats happening? Or how to solve it?


share|improve this question
How big is your HDD and did you not add an swap? – HackToHell Mar 20 '12 at 4:36
If I am not mistaken you are limited to 4 dynamic partitions. In the future don't ignore warning messages. Furthermore if you cannot give us exact error messages its hard for us to help you. – Ramhound Mar 20 '12 at 11:45
Any success, how did you solve the problem? I ran into the same issue and it seems like "bootrec /fixboot" (running it off a windows 7 DVD) doesn't seem to see any windows installation. – watain Jun 29 '12 at 9:25
I didn't solve it. I did a back up, formatted the disk and installed linux again – pomber Jun 30 '12 at 20:27

Repair Windows 7 bootloader using the DVD, here are the instructions.

Once you get into windows, use


and figure out what you did to your partitions

share|improve this answer

Firstly, I have to mention that your question is unclear on some details.

After google for a while I found the diskpart command, it gives me this info:

How exactly did you use the "diskpart command" if your computer was already not booting? It's a command-line utility in Windows, so how can you use it when it's not booting?

Anyway, from your info it seems like you might have a conflict with the primary partition and who gets to use it. Windows must be installed on a primary partition; Linux does not have to be. So if it's true that your HDD has only 1 primary partition, and the Linux installation is on that one, then that would explain why Windows is not booting. I don't understand how such a situation could even occur unless you installed Linux over Windows and wiped out Windows in the process... But you did say that you installed it on the newly created partition, so that would mean that you must've placed it on a logical partition (which is okay).

To repair the situation, probably HackToHell's solution is appropriate. But check out this article about dealing with partitions if you want to set up a dual boot: It's not exactly like what you were trying to accomplish, but it does explain the basic ideas behind partitioning pretty clearly and succinctly.

share|improve this answer

I don't have much experience with Linux but I know how to set the windows back. If you have the backup disk of windows 7 then it's quite easy. Just restore the data using your backup image disk. Or you can try to restore your windows to a restore point. I hope it will work for you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .