{"id":48,"date":"2003-10-26T13:13:36","date_gmt":"2003-10-26T13:13:36","guid":{"rendered":"http:\/\/maydanoz.arved.priv.at\/blog\/?p=48"},"modified":"2003-10-26T13:13:36","modified_gmt":"2003-10-26T13:13:36","slug":"recovering_supe","status":"publish","type":"post","link":"https:\/\/arved.priv.at\/weblog\/2003\/10\/26\/recovering_supe\/","title":{"rendered":"Recovering Superblocks."},"content":{"rendered":"<p>The weekend started with a catastrophe. After the last crash of my workstation<br \/>\nthe disklabel was messed up and it didn&#8217;t wanted to boot.<br \/>\nI tried to reinstall FreeBSD on the \/ partition, but that did&#8217;t help anything, fsck(8) threw out thousands of error messages and didn&#8217;t reconstruct the disklabel.<br \/>\nBeing clueless what to do, I first started with my other Computer maintenance.<br \/>\nI extended huckfinn&#8217;s too small \/var partition from 20MB to 500MB.<br \/>\nI exchanged the SCSI Controller for my CD Burner from the Dawicontrol UW Controller with a broken BIOS to a used Adaptec Controller that was built into Olga. Suprisingly the CD Burner was detected and I didn&#8217;t had to deal with Jumpers, Termination and SCSI IDs.<br \/>\nNow I plugged the Dawicontrol Controller into the last-but-one PCI Slot of Sauna and connected it with a spare 6GB UW Seagate HD. Again i jumpered everything right and I installed FreeBSD over an old Windows partition that was on the drive. After reading the fsck_ffs(8) manpage I tried fsck with the -b 32 option and that went well. So only the primary superblock was damaged. Now I just had to find a way to recover the original one. That was difficult, since most postings on the FreeBSD mailinglist said that fsck will do that automagically. But my fsck didn&#8217;t!<br \/>\nSince it was already late at night and I went to bed. After sleeping long and an extensive breakfast I tried some different search queries on Google.<br \/>\nAnd finally I found this <a href=\"http:\/\/lists.freebsd.org\/pipermail\/freebsd-current\/2003-August\/009196.html\">thread<\/a>.<\/p>\n<pre>dd if=&lt;disk&gt; skip=32 of=&lt;disk&gt; seek=16 bs=512 count=16<\/pre>\n<p> saved my life, everything is mountable again and most data was recovered.<br \/>\nSince I now have two disks in my workstation, I am going to share the diskload between the two drives and perhaps I should think about a better backup solution \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The weekend started with a catastrophe. After the last crash of my workstation the disklabel was messed up and it didn&#8217;t wanted to boot. I tried to reinstall FreeBSD on the \/ partition, but that did&#8217;t help anything, fsck(8) threw out thousands of error messages and didn&#8217;t reconstruct the disklabel. Being clueless what to do, &hellip; <a href=\"https:\/\/arved.priv.at\/weblog\/2003\/10\/26\/recovering_supe\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Recovering Superblocks.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":0,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}