<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>The partition table is still in memory</tt><tt> so you will have
      some luck till you reboot or force the system to do a partprobe.</tt><tt><br>
      <br>
    </tt><tt>The following link points to how to recover your partition
      from the in system data:</tt><tt><br>
    </tt><tt><a class="moz-txt-link-freetext" href="http://unix.stackexchange.com/questions/43922/how-to-read-the-in-memory-kernel-partition-table-of-dev-sda">http://unix.stackexchange.com/questions/43922/how-to-read-the-in-memory-kernel-partition-table-of-dev-sda</a></tt><tt><br>
    </tt><tt><br>
    </tt><tt>That being said first you should  back up all the data you
      can to an external drive</tt><tt><br>
    </tt><tt>If your going to play with testdisk then it is best to
      learn on an image of the broken drive so copy the whole drive off
      to some other system to play with.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>I have trashed enough systems in my time to know that a
      good backup is the best way to insure that things go well.</tt><tt><br>
    </tt><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/25/2016 07:33 AM, Matt Price via
      talk wrote:<br>
    </div>
    <blockquote
cite="mid:CAN_Dec9ZS7HHrs0omkCikk4icxUeSoV3sDg8kpGTd3Q=CKQ9Ww@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>OK, so I did this<br>
              <br>
            </div>
            dd if=some.iso of=/dev/sdb<br>
            <br>
          </div>
          oops -- that's not the USB key! that's my internal m.2 drive!
          <br>
          <br>
        </div>
        <div>The partition table is gone, but it used to contain 2
          partitions, both of them in an LVM, one of them part of an
          extended logical volume that added space to /home on my
          overburdened main drive. I haven't lost much data (just the
          first 700mb were overwritten), and amazingly my laptop
          continues to run just fine -- even though lvscan reports a
          missing drive, apparently the data is still findable.  <br>
        </div>
        <div><br>
        </div>
        <div>I'd like to restore the partition table but I don't know
          where the partition boundaries are, and in any case I don't
          know how to write a partition table (!). What tools should I
          use? Preferably without turning off my laptop, since I'm
          afraid it won't boot back up again!<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">---
Talk Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:talk@gtalug.org">talk@gtalug.org</a>
<a class="moz-txt-link-freetext" href="https://gtalug.org/mailman/listinfo/talk">https://gtalug.org/mailman/listinfo/talk</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
<a class="moz-txt-link-abbreviated" href="mailto:alvin@netvel.net">alvin@netvel.net</a>              ||
</pre>
  </body>
</html>