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

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 system and network administrators.

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
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

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

You must log in to answer this question.

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