{"id":784,"date":"2013-07-21T21:51:07","date_gmt":"2013-07-21T19:51:07","guid":{"rendered":"http:\/\/blog.rabahi.net\/?page_id=784"},"modified":"2013-07-27T12:33:41","modified_gmt":"2013-07-27T10:33:41","slug":"diskstation-recover-survival-guide","status":"publish","type":"page","link":"https:\/\/blog.rabahi.net\/?page_id=784","title":{"rendered":"Diskstation Survival Guide"},"content":{"rendered":"<h1>Recover data<\/h1>\n<p>Here are the following commands to recover your data stored in your diskstation.<br \/>\n<font color=\"red\"><b>IMPORTANT:<\/b><\/font> You must insert all the hard disk in your linux operating system.<\/p>\n<ol>\n<li>First, install a centos. You can have a look <a href=\"?page_id=103\">here<\/a><\/li>\n<li> Run the following commands:\n<pre lang=\"bash\">\r\n# Install mdadm\r\nyum install mdadm\r\n\r\n# Examine disk \/dev\/sdb3, and create \/etc\/mdadm.conf\r\necho DEVICE \/dev\/sdb3 > \/etc\/mdadm.conf\r\nmdadm --examine --scan \/dev\/sdb3 >> \/etc\/mdadm.conf\r\n\r\n# Start raid\r\nmdadm -A -s -R\r\n\r\n# Now mount raid:\r\nmkdir \/mnt\/diskstation\r\nmount \/dev\/md2 \/mnt\/diskstation\r\n\r\n# Verify that's ok:\r\ndf -h \r\n      \r\n<\/pre>\n<\/li>\n<\/ol>\n<h2>Troubleshooting<\/h2>\n<p>mdadm: \/dev\/md2 is already in use.<br \/>\n> Solution, stop the raid: mdadm &#8211;stop &#8211;scan<\/p>\n<h1>Install git<\/h1>\n<p>Installation:<\/p>\n<pre lang=\"bash\">\r\nexport PATH=\/opt\/bin:$PATH\r\n\/opt\/bin\/ipkg update\r\n# \/opt\/bin\/ipkg list | grep git\r\n\/opt\/bin\/install git\r\n<\/pre>\n<p>My first repo:<\/p>\n<pre lang=\"bash\">\r\nmkdir -p \/volume1\/git\/test.git\r\ncd \/volume1\/git\/test.git\r\ngit init --bare\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Recover data Here are the following commands to recover your data stored in your diskstation. IMPORTANT: You must insert all the hard disk in your linux operating system. First, install a centos. You can have a look here Run the following commands: # Install mdadm yum install mdadm # Examine disk \/dev\/sdb3, and create \/etc\/mdadm.conf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":440,"menu_order":10,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-784","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=784"}],"version-history":[{"count":12,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/784\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/784\/revisions\/795"}],"up":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/440"}],"wp:attachment":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}