<div dir="ltr">Thanks for the suggestion, Richard. gparted is what I used after restoring my partition via testdisk. It did everything automagically, including resizing the file system.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jan 27, 2014 at 8:41 AM, Richard Hornsby <span dir="ltr"><<a href="mailto:richardjhornsby@gmail.com" target="_blank">richardjhornsby@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><br><div><div class="im"><div>On Jan 26, 2014, at 21:55 , Steve Roggenkamp <<a href="mailto:roggenkamps@acm.org" target="_blank">roggenkamps@acm.org</a>> wrote:</div><br><blockquote type="cite">
<div dir="ltr"><div>Thanks for this. This sounds like a great program to have in your back pocket for situations like this. Glad to hear it recovered your original partitions.<br></div></div></blockquote><div><br></div>
</div>You may take a look at gparted. </div><div><br></div><div><a href="http://gparted.org" target="_blank">http://gparted.org</a></div><div><br></div><div>It is basically Partition Magic for linux. It is graphical, which I'm usually not a fan of in Linux but it definitely helps here to be able see everything, and has been a solid tool for me to accomplishing the type of task you're trying. There are also bootable gparted LiveCDs available.</div>
<div><div class="h5"><div><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div dir="ltr">Steve<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Jan 26, 2014 at 10:46 PM, Joshua Kramer <span dir="ltr"><<a href="mailto:joskra42.list@gmail.com" target="_blank">joskra42.list@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>So I finally got around to putting an SSD in my laptop. This meant that I now have a 640GB hard disk that I could put into an external enclosure, so I did so.<br><br></div>But alas, the partitioning on this 640GB drive was inconvenient. It had a 500MB boot partition, a 550GB /home partition, and 85GB / partition. I wanted to be able to use most of the 650GB as one contiguous filesystem. So, I deleted the third (85GB) partition and did the simple fdisk trick of deleting the second partiton and then re-creating it with the same beginning cylinder and a different ending cylinder. I did this and wrote the partition table to disk.<br>
<br></div>Strangely, it wasn't automounting. I then tried to mount /dev/sdb2 and it gave me the dreaded "You must specify filesystem type" message. Drat! I tried to re-create the exact structure as before via fdisk, but that didn't work either. The problem was that the boundaries between partition 1 and partition 2 were not on cylinder boundaries... so instead of beginning on sector 26, it began on sector 25.5.<br>
<br></div>Not sure how to get out of this, I did some Google-FU and found a program called testdisk. Supposedly, this would re-create your partition table for you. And indeed it did! I deleted all of the partitions via fdisk. Testdisk scanned the entire disk and re-created the original partition table, and all three partitions magically re-appeared.<br>
</div>
<br>_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net" target="_blank">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>colug-432 mailing list<br><a href="mailto:colug-432@colug.net" target="_blank">colug-432@colug.net</a><br><a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
</blockquote></div><br></div></div></div><br>_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
<br></blockquote></div><br></div>