I solved my problem!
At my HDD, I deleted the volume (partition) "System Reserved" (first I did a complete backup, preparing myself for the worst). Then, restarted my computer... and perfect!... zero problems.
My case was easy because:
1) I knew the "System Reserved" at my SSD... was the main one.
2) By googling the web, I understood that Windows creates others "System Reserved", in every drive, when BitLocker is used. Is not related to the boot, but to BitLocker. So in this case, is totally safe to delete the partition (if BitLocker is not encrypting the drive).
However, I can't recommend my solution as a general solution.
It is important to add, that even in the worst case, let's say somebody deletes all the "System Reserved" partitions... also in this case there is always a solution!:
1) Prepare a Windows Media Creation Tool.
2) Restart computer with it.
3) Open cmd prompt and write:
bootrec /fixmbr => enter
bootrec /fixboot => enter
bootrec /rebuildbcd => enter + y (yes)
... and restart the computer.
That's all!
This simple command... always will rebuild the boot.
Hope this will help.
Regards
The good news is that the data is still there and that doesn't change (unless you explicitly do something). If the data is still there, it can be recovered.
My approach would be to boot into a rescue disk (there are many options, one such thing would be the tell-tale SystemRescueCD. Then use parted
(or gparted if you don't like command line) and rm
the newly created partition there. That will leave you with 3 partition slots, one being free so you can re-create the lost one. Now run testdisk
and hope for the best.
In the best case, pressing "Simple scan" will bring up both the just-deleted new partition and the one you want to recover within one second. In the not-so-good case, you will need to do a deep scan, which can take a while.
If testdisk
, against all odds, doesn't find the partition, still all is not lost.
The partition was the last one, and it was located at the end of the disk, and of course it still is. There's no way it could have moved or gone away. As the end of E:
is known, there's not a lot of guessing where formerly-F can be found (well there's possibly alignment to consider but that's no biggie, most likely you've used the default anyway, and almost certainly the partition tool will get it right anyway).
So, firing up any partition tool (even fdisk
would do, but why not use parted
if we have it!) and creating a new partition from the beginning of unallocated space at the end to "end of disk" (which pretty much every tool can do automatically) will do the trick. Only important thing to look out is to create the partition but not to format it, which some tools/commands may do automatically for convenience. Obviously, formatting or creating a file system will destroy your data, which is not what you want.
For parted
the correct command for that would be mkpart
(see documentation).
If anything short of accidentially formatting or the disk mysteriously exploding goes wrong, you can still always remove the partition and re-create it again. No sweat. The data in the partition is not affected, you're only tampering with the "container".
A more correct and safer approach would be to first create a mirror backup of the complete disk, and then perform the above. Though, seeing as actually not much can go wrong, I would personally be too lazy for that. If you are about to install CentOS, this suggests you're reasonably Linux-savy, so you might as well dd
the disk (part of it) to an image, and work on the image instead. That, too, is safer.
Or, well, just go the real men road, which isn't the recommended way, but much faster and will work fine either way. It just depends on how vitally important that data is, I guess. If you aren't going to die in case the 0.01% that can go wrong do go wrong, well... you know.
Once the partition is restored, copy all files to another disk (preferrably two disks), then delete the partition and let parted
move the D:
and E:
partitions further up so the hole from shrinking C:
disappears. Lastly, create an extended partition filling all available space, and then two secondary partitions inside that one, of which one will finally hold CentOS and the other will hold the once-and-future drive F:
(to which you then have to copy files again).
Best Answer
To create a new partition from your separate "unallocated spaces" you must move the unallocated spaces so they make one continuous space. You cannot simply, however, "move" a partition within Windows. You must "resize" the partitions so that grow/shrink to the direction you want the unallocated space to move.
For example:
Resize your 2nd partition (Windows) so that the start of the partition is at 0 and the end of the partition is whatever size your Windows partition is. You will then need to shrink the end of the 2nd partition to re-create the 100MB. This will have the effect of "moving" the partition. You will then have 100MB at the end of your 11GB partition - thus making your unallocated space 11GB + 100MB. You can then create a new partition out of the unallocated space.
From your picture you have ANOTHER partition to the right of your Windows partition. You will need to do the same with this partition so that all your unallocated space is moved next to each other.
I would very strongly recommend you don't mess with that System Reserved partition... it's 100MB... fairly useless to you in the long run.