{"id":224,"date":"2009-07-10T12:15:48","date_gmt":"2009-07-10T10:15:48","guid":{"rendered":"http:\/\/www.bjoern-b.de\/wordpress\/?p=224"},"modified":"2009-07-10T12:15:48","modified_gmt":"2009-07-10T10:15:48","slug":"backup-encrypted-ubuntu-linux-harddisk","status":"publish","type":"post","link":"https:\/\/www.bjoern-b.de\/wordpress\/?p=224","title":{"rendered":"Backup encrypted Ubuntu Linux harddisk"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_224 social_share_privacy clearfix 1.6.4 locale-de_DE sprite-de_DE\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_224')){$('.twoclick_social_bookmarks_post_224').socialSharePrivacy({\"txt_help\":\"Wenn Sie diese Felder durch einen Klick aktivieren, werden Informationen an Facebook, Twitter, Flattr, Xing, t3n, LinkedIn, Pinterest oder Google eventuell ins Ausland \\u00fcbertragen und unter Umst\\u00e4nden auch dort gespeichert. N\\u00e4heres erfahren Sie durch einen Klick auf das <em>i<\\\/em>.\",\"settings_perma\":\"Dauerhaft aktivieren und Daten\\u00fcber-tragung zustimmen:\",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/www.bjoern-b.de\\\/wordpress\\\/?p=224\",\"post_id\":224,\"post_title_referrer_track\":\"Backup+encrypted+Ubuntu+Linux+harddisk\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Some days ago, I switched from Ubuntu to Fedora 11. Before overwriting my old system I of course backed up the old one. What I did was simply a <\/p>\n<p><code>dd if=\/dev\/sda of=\/mnt\/somedisk\/mybackup.img<\/code><\/p>\n<p>The tricky part now is to get access to your old data when you used &#8222;Full disk encryption&#8220; for the old system. Here is what I had to do:<\/p>\n<p><code><br \/>\nlosetup \/dev\/loop1 \/mnt\/somedisk\/mybackup.img<br \/>\nkpartx -a -v \/dev\/loop1<br \/>\ncryptsetup luksOpen \/dev\/loop1p1 foobar<br \/>\nlvchange -a y \"\/dev\/oldhostname\/root\"<br \/>\nmkdir \/mnt\/oldsys<br \/>\nmount \/dev\/mapper\/your_old_root \/mnt\/oldsys<\/code><\/p>\n<p>If you can&#8217;t find the name of your old lv, use lvscan.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some days ago, I switched from Ubuntu to Fedora 11. Before overwriting my old system I of course backed up the old one. What I did was simply a dd if=\/dev\/sda of=\/mnt\/somedisk\/mybackup.img The tricky part now is to get access &hellip; <a href=\"https:\/\/www.bjoern-b.de\/wordpress\/?p=224\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/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":[4],"tags":[],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=224"}],"version-history":[{"count":2,"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":226,"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions\/226"}],"wp:attachment":[{"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bjoern-b.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}