Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As the title says I incorrectly ran:

pvcreate /dev/sdb1

Where sdb1 was a Windows System Reserved partition. Now I know I could probably use the Windows CD to recreate it, but is there a way to do it from within GNU/Linux?

I can mount the partition from Linux and also see the boot sector.

share|improve this question

migrated from serverfault.com Dec 17 '12 at 13:55

This question came from our site for professional system and network administrators.

add comment

3 Answers

If you haven't got a backup, the answer is no.

share|improve this answer
    
If it means anything, testdisk can see all the files. –  atx Dec 17 '12 at 0:20
add comment
up vote 1 down vote accepted

Figured it out - Just copy over the Boot/ directory and bootmgr file on to your root partition and install/modify GRUB to boot into the root partition. This is a bit of a quick fix as I wasn't able to revert the operation.

Read more here

share|improve this answer
add comment

Same happened to me - I issued pvcreate on a 200GB music partition :) Successfully recovered it using testdisk: Go to [Advanced] Filesystem Utils, select the damaged partiton. You may need to specify its [Type] explicitly. Go to [Boot] and [Rebuild BS], and after it succeeds, [Repair MFT].

Hope this helps someone.

share|improve this answer
add comment

Your Answer

 
discard

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.