{"id":1693,"date":"2025-03-13T14:05:05","date_gmt":"2025-03-13T06:05:05","guid":{"rendered":"https:\/\/hkc.nasclub.vip\/?p=1693"},"modified":"2025-03-13T14:05:05","modified_gmt":"2025-03-13T06:05:05","slug":"synology-nas-%e5%87%ba%e7%8e%b0%e6%95%85%e9%9a%9c%e6%97%b6%ef%bc%8c%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-pc-%e6%81%a2%e5%a4%8d%e6%95%b0%e6%8d%ae%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/hkc.nasclub.vip\/?p=1693","title":{"rendered":"Synology NAS \u51fa\u73b0\u6545\u969c\u65f6\uff0c\u5982\u4f55\u4f7f\u7528 PC \u6062\u590d\u6570\u636e\uff1f"},"content":{"rendered":"<div class=\"kb_accordion has_accordion\">\n<h2 class=\"kb_accordion_title\">\u76ee\u7684<\/h2>\n<div class=\"kb_accordion_content\">\n<div>\n<p>\u672c\u6587\u5c06\u6307\u5bfc\u60a8\u5728 Synology NAS \u6545\u969c\u65f6\u6062\u590d PC \u4e0a\u7684\u6570\u636e\u3002<\/p>\n<div class=\"note\">\n<p class=\"note_title\">\u6ce8\u610f\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li><a id=\"x_anchor_id573948425f\"><\/a>\u786c\u76d8\u8fc1\u79fb\u5230\u65b0 NAS \u540e\uff0c\u53ef\u80fd\u65e0\u6cd5\u518d\u6b21\u6302\u8f7d\u5377\u3002<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"kb_accordion has_accordion\">\n<h2 class=\"kb_accordion_title\"><a id=\"x_anchor_id0ba29c6a1a\"><\/a>\u73af\u5883<\/h2>\n<div class=\"kb_accordion_content\">\n<div>\n<p>\u9002\u7528\u4e8e\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>DSM \u7248\u672c 6.2.x \u53ca\u4ee5\u4e0a<\/li>\n<li>\u4f7f\u7528 Btrfs \u6216 ext4 \u6587\u4ef6\u7cfb\u7edf\u7684\u5377<\/li>\n<li>Ubuntu \u7248\u672c 18.04 (\u4e0b\u8f7dubuntu-18.04-desktop-amd64.iso<a href=\"https:\/\/old-releases.ubuntu.com\/releases\/18.04\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">\u8fd9\u91cc<\/a>)<\/li>\n<\/ul>\n<p>\u4e0d\u9002\u7528\u4e8e\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u4f7f\u7528\u8bfb\u5199 SSD \u7f13\u5b58\u7684\u5377<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"kb_accordion has_accordion\">\n<h2 class=\"kb_accordion_title\"><a id=\"x_anchor_idb5a4b64b2a\"><\/a>\u89e3\u51b3\u65b9\u6848<\/h2>\n<div class=\"kb_accordion_content\">\n<div>\n<h3><a id=\"x_anchor_id32571c7e4c\"><\/a>\u4f7f\u7528 PC \u6062\u590d\u6570\u636e<\/h3>\n<ol class=\"type_lower-decimal list-paddingleft-2\">\n<li>\u786e\u4fdd\u60a8\u7684 PC \u5177\u6709\u8db3\u591f\u7684\u786c\u76d8\u63d2\u69fd\u4ee5\u5b89\u88c5\u786c\u76d8\u3002<\/li>\n<li>\u4ece Synology NAS \u4e2d\u53d6\u51fa\u786c\u76d8\u5e76\u5c06\u5176\u5b89\u88c5\u5230 PC \u4e2d\u3002\u5bf9\u4e8e RAID \u6216 SHR \u914d\u7f6e\uff0c\u60a8\u5fc5\u987b\u540c\u65f6\u5728 PC \u4e2d\u5b89\u88c5\u6240\u6709\u786c\u76d8\uff08\u4e0d\u5305\u62ec Hot Spare \u786c\u76d8\uff09\u3002<\/li>\n<li>\u6309\u7167<a href=\"https:\/\/tutorials.ubuntu.com\/tutorial\/tutorial-create-a-usb-stick-on-windows#0\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">\u672c\u6559\u7a0b<\/a>\u4e2d\u7684\u8bf4\u660e\u51c6\u5907 Ubuntu \u73af\u5883\u3002<\/li>\n<li>\u524d\u5f80\u5de6\u4fa7\u680f\u7684\u6587\u4ef6\u5e76\u9009\u62e9Home\u3002<\/li>\n<li>\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9\u65b0\u5efa\u6587\u4ef6\u5939\uff0c\u521b\u5efa\u4e00\u4e2a\u6216\u591a\u4e2a\u6587\u4ef6\u5939\u4f5c\u4e3a\u88c5\u8f7d\u70b9\u4ee5\u8bbf\u95ee\u6570\u636e\u3002<sup><a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_id01\">1<\/a><\/sup><\/li>\n<li>\u53f3\u952e\u5355\u51fb\u65b0\u6587\u4ef6\u5939\uff0c\u70b9\u51fb\u5c5e\u6027\uff0c\u7236\u6587\u4ef6\u5939\u7684\u6587\u4ef6\u5939\u540d\u79f0\u4e3a\u00a0<code>${mount_point}<\/code>\u00a0\u3002\n<ul class=\" list-paddingleft-2\">\n<li>\u793a\u4f8b\uff1a\u5982\u679c\u7236\u6587\u4ef6\u5939\u662f\u00a0<code>\/home\/ubuntu\/<\/code>\u00a0\uff0c\u6587\u4ef6\u5939\u540d\u79f0\u662f\u00a0<code>Test<\/code>\u00a0\uff0c\u5219\u88c5\u8f7d\u70b9\u5c06\u662f\u00a0<code>\/home\/ubuntu\/Test\/<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u524d\u5f80\u5de6\u4e0b\u89d2\u7684\u663e\u793a\u5e94\u7528\u7a0b\u5e8f\u00a0&gt;\u00a0\u8f93\u5165\u641c\u7d22&#8230;\u3002<\/li>\n<li>\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u7ec8\u7aef\u5e76\u9009\u62e9\u7ec8\u7aef\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u83b7\u53d6 root \u6743\u9650\u3002\n<div class=\"code_div\"><code>sudo -i<\/code><\/div>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5b89\u88c5\u00a0<code>mdadm<\/code>\u00a0\u548c\u00a0<code>lvm2<\/code>\u00a0\uff0c\u5b83\u4eec\u90fd\u662f RAID \u7ba1\u7406\u5de5\u5177\u3002\u5fc5\u987b\u5b89\u88c5\u00a0<code>lvm2<\/code>\u00a0\uff0c\u5426\u5219\u00a0<code>vgchange<\/code>\u00a0\u5c06\u65e0\u6cd5\u5de5\u4f5c\u3002\n<div class=\"code_div\"><code>apt-get update<br \/>\napt-get install -y mdadm lvm2<\/code><\/div>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u7ec4\u88c5\u4ece Synology NAS \u4e2d\u53d6\u51fa\u7684\u6240\u6709\u786c\u76d8\u3002\u7ed3\u679c\u53ef\u80fd\u4f1a\u6839\u636e Synology NAS \u4e0a\u7684\u5b58\u50a8\u6c60\u914d\u7f6e\u800c\u6709\u6240\u4e0d\u540c\u3002\n<div class=\"code_div\"><code>mdadm -AsfR &amp;&amp; vgchange -ay<\/code><\/div>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u83b7\u53d6\u00a0<code>${device_path}<\/code>\u00a0\u7684\u4fe1\u606f\u3002\n<div class=\"code_div\"><code>cat \/proc\/mdstat<br \/>\nlvs<\/code><\/div>\n<p>\u6839\u636e\u00a0<code>pvs\/vgs\/lvs<\/code>\u00a0\u7684\u8f93\u51fa\uff0c\u8bbe\u5907\u8def\u5f84\u5982\u4e0b\uff1a<\/p>\n<table>\n<tbody>\n<tr class=\"firstRow\">\n<td valign=\"top\" width=\"489\"><\/td>\n<td valign=\"top\" width=\"489\">${device_path}<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"489\">\u65e0 lvs \u8f93\u51fa<\/td>\n<td valign=\"top\" width=\"489\"><code>\/dev\/${md}<\/code><a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_id02\"><sup>2<\/sup><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"489\">\u6709 lvs \u8f93\u51fa<\/td>\n<td valign=\"top\" width=\"489\"><code>\/dev\/${VG}\/${LV}<\/code><a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_id03\"><sup>3<\/sup><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0b\u662f\u00a0<code>md status<\/code>\u00a0\u5bf9\u5e94\u5176 RAID \u548c\u5377\u7c7b\u578b\u7684\u793a\u4f8b\uff1a<\/p>\n<table>\n<tbody>\n<tr class=\"firstRow\">\n<td valign=\"top\" width=\"647\">\u8bbe\u5907\u8def\u5f84<\/td>\n<td valign=\"top\" width=\"647\">\u5355\u5377\u7ecf\u5178 RAID<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>cat \/proc\/mdstat<\/code><\/td>\n<td valign=\"top\" width=\"647\">root@ubuntu:~# cat \/proc\/mdstat<br \/>\nPersonalities : [raid1]<br \/>\nmd4: active raid1 sdc3[0]<br \/>\n73328704 blocks super 1.2 [1\/1] [U]<br \/>\nunused devices:&lt;none&gt;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>lvs<\/code><\/td>\n<td valign=\"top\" width=\"647\">\u65e0\u8f93\u51fa<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>${device_path}<\/code><\/td>\n<td valign=\"top\" width=\"647\">\/dev\/md4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table width=\"1445\">\n<tbody>\n<tr class=\"firstRow\">\n<td valign=\"top\" width=\"647\">\u8bbe\u5907\u8def\u5f84<\/td>\n<td valign=\"top\" width=\"647\">\u5355\u5377 SHR<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>cat \/proc\/mdstat<\/code><\/td>\n<td valign=\"top\" width=\"647\">root@ubuntu:~# cat \/proc\/mdstat<br \/>\nPersonalities : [raid1]<br \/>\nmd3 : active raid1 sda5[0]<br \/>\n73328704 blocks super 1.2 [2\/2] [UU]<br \/>\nunused devices:&lt;none&gt;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>lvs<\/code><\/td>\n<td valign=\"top\" width=\"647\">root@ubuntu:~# lvs<br \/>\nLV VG\u00a0Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert<br \/>\nlv vg1000\u00a0-wi-a&#8212;&#8211; 69.92g<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>${device_path}<\/code><\/td>\n<td valign=\"top\" width=\"647\">\/dev\/vg1000\/lv<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table width=\"1445\">\n<tbody>\n<tr class=\"firstRow\">\n<td valign=\"top\" width=\"647\">\u8bbe\u5907\u8def\u5f84<\/td>\n<td valign=\"top\" width=\"647\">\u591a\u5377\u7ecf\u5178 RAID\/SHR<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>cat \/proc\/mdstat<\/code><\/td>\n<td valign=\"top\" width=\"647\">Personalities : [raid1]<br \/>\nmd3 : active raid1 sdc3[0] sdd3[1]<br \/>\n73328704 blocks super 1.2 [2\/2] [UU]<br \/>\nunused devices:&lt;none&gt;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>lvs<\/code><\/td>\n<td valign=\"top\" width=\"647\">root@ubuntu:~# lvs<br \/>\nLV VG\u00a0Attr LSize Pool Origin Data% Meta% Move Log Cpy% Sync Convert<br \/>\nsyno_vg_reserved_area vg1 -wi-a&#8212;&#8211; 12.00m<br \/>\nvolume_1 vg1\u00a0-wi-a&#8212;&#8211; 30.00g<br \/>\nvolume_3 vg1\u00a0-wi-a&#8212;&#8211; 30.00g<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"647\"><code>${device_path}<\/code><\/td>\n<td valign=\"top\" width=\"647\">\/dev\/vg1\/volume_1<br \/>\n\/dev\/vg1\/volume_3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u88c5\u8f7d\u6240\u6709\u786c\u76d8\u4ee5\u8bbf\u95ee\u60a8\u7684\u6570\u636e\u3002\u5728\u00a0<code>${device_path}<\/code>\u00a0\u4e2d\u8f93\u5165\u60a8\u7684\u8bbe\u5907\u8def\u5f84\uff08\u6839\u636e<a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_idstep12\">\u6b65\u9aa4 12<\/a>\u00a0\u4e2d\u7684 RAID \u548c\u5377\u7c7b\u578b\uff09\uff0c\u5728\u00a0<code>${mount_point}<\/code>\u00a0\u4e2d\u8f93\u5165\u88c5\u8f7d\u70b9\uff08\u5728<a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_idstep6\">\u6b65\u9aa4 6<\/a>\u00a0\u4e2d\u521b\u5efa\uff09\u3002\u60a8\u7684\u6570\u636e\u5c06\u653e\u7f6e\u5728\u88c5\u8f7d\u70b9\u4e0b\u3002\n<div class=\"code_div\"><code>mount ${device_path} ${mount_point} -o ro<\/code><\/div>\n<\/li>\n<li>\u5728\u6587\u4ef6\u00a0&gt;\u00a0Home\u00a0&gt;\u60a8\u5728<a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_idstep5\">\u6b65\u9aa4 5<\/a>\u00a0\u4e2d\u521b\u5efa\u7684\u6587\u4ef6\u5939\u4e2d\u68c0\u67e5\u6570\u636e\u3002<\/li>\n<li>\u5bf9\u4e8e\u52a0\u5bc6\u7684\u5b58\u50a8\u7a7a\u95f4\u548c\u5171\u4eab\u6587\u4ef6\u5939\uff1a\n<ul class=\" list-paddingleft-2\">\n<li><a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_encryptedvolume\">\u5728 PC \u4e0a\u88c5\u8f7d\u52a0\u5bc6\u5b58\u50a8\u7a7a\u95f4<\/a>\u3002<\/li>\n<li><a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_encrypted\">\u5728 PC \u4e0a\u88c5\u8f7d\u52a0\u5bc6\u5171\u4eab\u6587\u4ef6\u5939<\/a>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u5982\u679c\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\u4ecd\u65e0\u6cd5\u6062\u590d\u6570\u636e\uff0c\u8bf7\u907f\u514d\u5c1d\u8bd5\u5176\u4ed6\u4fee\u590d\u65b9\u6cd5\uff0c\u56e0\u4e3a\u8fd9\u53ef\u80fd\u4f1a\u5bf9\u60a8\u7684\u6570\u636e\u9020\u6210\u66f4\u5927\u7684\u635f\u5bb3\u3002\u4f5c\u4e3a\u6700\u540e\u7684\u9009\u62e9\uff0c\u8bf7\u5bfb\u6c42\u5f53\u5730\u6570\u636e\u6551\u63f4\u516c\u53f8\u7684\u5e2e\u52a9\u3002\u8bf7\u7406\u89e3\uff0c\u6570\u636e\u68c0\u7d22\u4ecd\u7136\u65e0\u6cd5\u4fdd\u8bc1\u3002<\/p>\n<h3><a id=\"x_anchor_encryptedvolume\"><\/a>\u5728 PC \u4e0a\u88c5\u8f7d\u52a0\u5bc6\u5b58\u50a8\u7a7a\u95f4<\/h3>\n<p>\u786e\u4fdd\u60a8\u62e5\u6709\u52a0\u5bc6\u5b58\u50a8\u7a7a\u95f4\u7684\u6062\u590d\u5bc6\u94a5\u3002\u4ee5\u4e0b\u6b65\u9aa4\u4ec5\u5728\u6062\u590d\u5bc6\u94a5\u6b63\u786e\u7684\u60c5\u51b5\u4e0b\u6709\u6548\u3002<\/p>\n<ol class=\"type_lower-decimal list-paddingleft-2\">\n<li>\u5728\u7ec8\u7aef\u673a\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5b89\u88c5\u00a0<code>cryptsetup<\/code>\u00a0\u3002\n<div class=\"code_div\"><code>apt-get install cryptsetup<\/code><\/div>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u89e3\u7801\u60a8\u7684\u6062\u590d\u5bc6\u94a5\u3002\u5c06\u00a0<code>${your_recovery_key_path}<\/code>\u00a0\u66ff\u6362\u4e3a\u6062\u590d\u5bc6\u94a5\u7684\u4f4d\u7f6e\uff0c\u5e76\u5c06\u00a0<code>${base64_decode_output_path}<\/code>\u00a0\u66ff\u6362\u4e3a\u6240\u9700\u7684\u8f93\u51fa\u6587\u4ef6\u540d\u548c\u4f4d\u7f6e\u3002\n<div class=\"code_div\"><code>base64 --decode ${your_recovery_key_path} &gt; ${base64_decode_output_path}<\/code><\/div>\n<ul class=\" list-paddingleft-2\">\n<li>\u793a\u4f8b\uff1a\u5982\u679c\u6062\u590d\u5bc6\u94a5\u4f4d\u4e8e\u00a0<code>\/mnt\/volume1.rkey<\/code>\u00a0\uff0c\u5e76\u4e14\u60a8\u5e0c\u671b\u8f93\u51fa\u6587\u4ef6\u547d\u540d\u4e3a\u00a0<code>decode_output<\/code>\u00a0\u5e76\u4f4d\u4e8e\u00a0<code>\/mnt<\/code>\u00a0\uff0c\u5219\u8f93\u5165\u7684\u547d\u4ee4\u5c06\u662f\uff1a\u00a0<code>base64 --decode \/mnt\/volume1.rkey &gt; \/mnt\/decode_output<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u6d4b\u8bd5\u6062\u590d\u5bc6\u94a5\u662f\u5426\u6b63\u786e\u3002\u5c06\u00a0<code>${base64_decode_output_path}<\/code>\u00a0\u66ff\u6362\u4e3a\u8f93\u51fa\u6587\u4ef6\u540d\u548c\u4f4d\u7f6e\u3002\n<div class=\"code_div\"><code>cryptsetup open --test-passphrase \/dev\/vgX\/volume_Y -S 1 -d ${base64_decode_output_path} -v<\/code><\/div>\n<ul class=\" list-paddingleft-2\">\n<li>\u793a\u4f8b\uff1a\u5982\u679c\u8f93\u51fa\u6587\u4ef6\u540d\u4e3a\u00a0<code>decode_output<\/code>\u00a0\u5e76\u4f4d\u4e8e\u00a0<code>\/mnt<\/code>\u00a0\uff0c\u5219\u8f93\u5165\u7684\u547d\u4ee4\u5c06\u662f\uff1a\u00a0<code>cryptsetup open --test-passphrase \/dev\/vgX\/volume_Y -S 1 -d \/mnt\/decode_output -v<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u68c0\u67e5\u7ed3\u679c\u4ee5\u67e5\u770b\u6062\u590d\u5bc6\u94a5\u662f\u5426\u6b63\u786e\uff1a\n<ul class=\" list-paddingleft-2\">\n<li>\u6b63\u786e\u7684\u5bc6\u94a5\uff1a\n<div class=\"code_div\"><code>Key slot 1 unlocked.<br \/>\nCommand successful.<\/code><\/div>\n<\/li>\n<li>\u9519\u8bef\u7684\u5bc6\u94a5\uff1a\n<div class=\"code_div\"><code>No key available with this passphrase.<br \/>\nCommand failed with code -2 (no permission or bad passphrase).<\/code><\/div>\n<p>\u627e\u5230\u6b63\u786e\u7684\u5bc6\u94a5\u5e76\u8fd4\u56de\u4e0a\u4e00\u6b65\u91cd\u65b0\u89e3\u7801\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4f7f\u7528\u89e3\u7801\u540e\u7684\u6062\u590d\u5bc6\u94a5\u89e3\u5bc6\u52a0\u5bc6\u5b58\u50a8\u7a7a\u95f4\u3002\n<div class=\"code_div\"><code>cryptsetup open --allow-discards \/dev\/vgX\/volume_Y cryptvol_Y -S 1 -d ${base64_decode_output_path}<\/code><\/div>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u88c5\u8f7d\u6240\u6709\u786c\u76d8\u4ee5\u8bbf\u95ee\u60a8\u7684\u6570\u636e\u3002\u5c06\u00a0<code>${device_path}<\/code>\u00a0\u66ff\u6362\u4e3a\u60a8\u7684\u8bbe\u5907\u8def\u5f84\u00a0<code>\/dev\/mapper\/cryptvol_Y<\/code>\u00a0\uff0c\u5e76\u5c06\u00a0<code>${mount_point}<\/code>\u00a0\u66ff\u6362\u4e3a\u5728<a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_idstep6\">\u6b65\u9aa4 6<\/a>\u00a0\u4e2d\u521b\u5efa\u7684\u88c5\u8f7d\u70b9\u3002\u60a8\u7684\u6570\u636e\u5c06\u653e\u7f6e\u5728\u88c5\u8f7d\u70b9\u4e0b\u3002\n<div class=\"code_div\"><code>mount ${device_path} ${mount_point} -o ro<\/code><\/div>\n<\/li>\n<li>\u8bf7\u53c2\u9605<a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_idstep14\">\u6b65\u9aa4 14<\/a>\u00a0\u4ee5\u6062\u590d\u60a8\u7684\u6570\u636e\u3002<\/li>\n<\/ol>\n<h3><a id=\"x_anchor_encrypted\"><\/a>\u5728 PC \u4e0a\u88c5\u8f7d\u52a0\u5bc6\u5171\u4eab\u6587\u4ef6\u5939<\/h3>\n<p>\u786e\u4fdd\u60a8\u62e5\u6709\u52a0\u5bc6\u5171\u4eab\u6587\u4ef6\u5939\u7684\u52a0\u5bc6\u5bc6\u94a5\u3002\u4ee5\u4e0b\u6b65\u9aa4\u4ec5\u5728\u52a0\u5bc6\u5bc6\u94a5\u6b63\u786e\u65f6\u6709\u6548\u3002<\/p>\n<ol class=\"type_lower-decimal list-paddingleft-2\">\n<li>\u5728\u7ec8\u7aef\u673a\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u83b7\u53d6 root \u6743\u9650\u3002\n<div class=\"code_div\"><code>sudo -i<\/code><\/div>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u542f\u7528\u00a0<code>universe repo<\/code>\u00a0\u5e76\u5b89\u88c5\u00a0<code>ecryptfs-utils<\/code>\u00a0\u3002\n<div class=\"code_div\"><code>apt-get-repository universe<br \/>\napt-get update<br \/>\napt-get install ecryptfs-utils<\/code><\/div>\n<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u83b7\u53d6\u52a0\u5bc6\u5bc6\u94a5\u7684 FNEK\uff08\u6587\u4ef6\u540d\u52a0\u5bc6\u5bc6\u94a5\uff09\u503c\u3002\n<div class=\"code_div\"><code>ecryptfs-add-passphrase --fnek<\/code><\/div>\n<ol class=\"type_lower-alpha list-paddingleft-2\">\n<li>\u5f53\u63d0\u793a\u65f6\uff0c\u5c06\u60a8\u7684\u52a0\u5bc6\u5bc6\u94a5\u8f93\u5165\u5230\u00a0<code>Passphrase<\/code>\u00a0\u5b57\u6bb5\u3002<\/li>\n<li>\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u8f93\u51fa\uff1a\n<div class=\"code_div\"><code>Inserted auth tok with sig [79d78a9afb5ebc95] into the user session keyring<br \/>\nInserted auth tok with sig\u00a0[e4e4e8a3ca7d5d54]\u00a0into the user session keyring<\/code><\/div>\n<p>\u7b2c\u4e8c\u4e2a\u65b9\u62ec\u53f7\u5185\u7684\u503c\u662f\u60a8\u7684 FNEK \u503c\u3002\u8bf7\u8bb0\u4e0b\u6b64\u503c\uff0c\u56e0\u4e3a\u60a8\u5c06\u5728\u540e\u7eed\u6b65\u9aa4\u4e2d\u9700\u8981\u5b83\u3002<\/li>\n<\/ol>\n<\/li>\n<li>\u4f7f\u7528\u00a0<code>cd<\/code>\u00a0\u547d\u4ee4\u5bfc\u822a\u5230\u60a8\u5728\u4e0a\u4e00\u8282<a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_idstep6\">\u6b65\u9aa4 6<\/a>\u00a0\u4e2d\u521b\u5efa\u7684\u88c5\u8f7d\u70b9\u3002\n<div class=\"code_div\"><code>cd\u00a0${mount_point}<\/code><\/div>\n<ul class=\" list-paddingleft-2\">\n<li>\u793a\u4f8b\uff1a\u5982\u679c\u88c5\u8f7d\u70b9\u00a0<code>${mount_point}<\/code>\u00a0\u662f\u00a0<code>\/home\/ubuntu\/Test\/<\/code>\u00a0\uff0c\u5219\u8f93\u5165\u7684\u547d\u4ee4\u5c06\u5982\u4e0b\u6240\u793a\uff1a\u00a0<code>cd \/home\/ubuntu\/Test\/<\/code>\u00a0\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a\u4e34\u65f6\u6587\u4ef6\u5939\u4f5c\u4e3a\u52a0\u5bc6\u5171\u4eab\u6587\u4ef6\u5939\u7684\u88c5\u8f7d\u70b9\u3002\u4f7f\u7528\u00a0<code>mkdir<\/code>\u00a0\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u5939\u3002\n<div class=\"code_div\"><code>mkdir\u00a0folder_name<\/code><\/div>\n<p>\u5728\u4e0a\u8ff0\u547d\u4ee4\u4e2d\uff0c\u5c06\u00a0<code>folder_name<\/code>\u00a0\u66ff\u6362\u4e3a\u60a8\u60f3\u8981\u7ed9\u6587\u4ef6\u5939\u547d\u540d\u7684\u540d\u79f0\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u88c5\u8f7d\u60a8\u7684\u52a0\u5bc6\u5171\u4eab\u6587\u4ef6\u5939\u3002\n<div class=\"code_div\"><code>mount -t ecryptfs\u00a0folder_name<\/code><\/div>\n<p>\u786e\u4fdd\u5c06\u00a0<code>folder_name<\/code>\u00a0\u66ff\u6362\u4e3a\u60a8\u5728\u4e0a\u4e00\u6b65\u4e2d\u521b\u5efa\u7684\u4e34\u65f6\u6587\u4ef6\u5939\u7684\u540d\u79f0\u3002\u8981\u5b8c\u6210\u88c5\u8f7d\uff0c\u8fd8\u9700\u8981\u989d\u5916\u7684\u8f93\u5165\u3002\u8bf7\u6309\u7167\u4ee5\u4e0b\u8bf4\u660e\u64cd\u4f5c\uff1a<\/p>\n<ol class=\"type_lower-alpha list-paddingleft-2\">\n<li><code>Passphrase<\/code>\u00a0\uff1a\u8f93\u5165\u60a8\u7684\u52a0\u5bc6\u5bc6\u94a5\u3002<\/li>\n<li><code>Select cipher<\/code>\u00a0\uff1a\u8f93\u5165\u00a0<code>1<\/code>\u00a0\u4ee5\u9009\u62e9aes\u4f5c\u4e3a\u52a0\u5bc6\u7b97\u6cd5\u3002<\/li>\n<li><code>Select key bytes<\/code>\u00a0\uff1a\u8f93\u5165\u00a0<code>2<\/code>\u00a0\u4ee5\u9009\u62e932\u4f5c\u4e3a\u5bc6\u94a5\u5b57\u8282\u6570\u3002<\/li>\n<li><code>Enable plaintext passthrough<\/code>\u00a0\uff1a\u8f93\u5165\u00a0<code>n<\/code>\u00a0\u4ee5\u7981\u7528\u6b64\u9009\u9879\u3002<\/li>\n<li><code>Enable filename encryption<\/code>\u00a0\uff1a\u8f93\u5165\u00a0<code>y<\/code>\u00a0\u4ee5\u542f\u7528\u6b64\u9009\u9879\u3002<\/li>\n<li><code>Filename Encryption Key (FNEK) Signature<\/code>\u00a0\uff1a\u8f93\u5165\u60a8\u5728<a href=\"https:\/\/kb.synology.cn\/zh-cn\/DSM\/tutorial\/How_can_I_recover_data_from_my_DiskStation_using_a_PC#x_anchor_idstep3\">\u6b65\u9aa4 3<\/a>\u00a0\u4e2d\u83b7\u53d6\u7684 FNEK \u503c\u3002<\/li>\n<li>\u8f93\u5165\u60a8\u7684 FNEK \u503c\u540e\uff0c\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u8f93\u51fa\uff1a\n<div class=\"code_div\"><code>Attempting to mount with the following options:<br \/>\necryptfs_unlink_sigs<br \/>\necryptfs_fnek_sig=e4e4e8a3ca7d5d54<br \/>\necryptfs_key_bytes=32<br \/>\necryptfs_cipher=aes<br \/>\necryptfs_sig=79d78a9afb5ebc95<\/p>\n<p>WARNING: Based on the contents of [\/root\/.ecryptfs\/sig-cache.txt], it looks like you have never mounted with this key before. This could mean that you have typed your passphrase wrong.<\/code><\/div>\n<p>\u8b66\u544a\u4fe1\u606f\u53ea\u662f\u4e00\u4e2a\u63d0\u9192\u3002\u5982\u679c\u60a8\u5df2\u786e\u8ba4\u60a8\u7684\u52a0\u5bc6\u5bc6\u94a5\u662f\u6b63\u786e\u7684\uff0c\u53ef\u4ee5\u5b89\u5168\u5730\u5ffd\u7565\u6b64\u8b66\u544a\u5e76\u7ee7\u7eed\u3002<\/li>\n<li><code>Would you like to proceed with the mount<\/code>\u00a0\uff1a\u8f93\u5165\u00a0<code>y<\/code>\u00a0\u4ee5\u540c\u610f\u7ee7\u7eed\u88c5\u8f7d\u3002<\/li>\n<li><code>Would you like to append sig \u2026 in order to avoid this warning in the future<\/code>\u00a0\uff1a\u8f93\u5165\u00a0<code>n<\/code>\u00a0\u4ee5\u7ee7\u7eed\u3002<\/li>\n<li>\u5982\u679c\u88c5\u8f7d\u6210\u529f\uff0c\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u8f93\u51fa\uff1a\n<div class=\"code_div\"><code>Mounted eCryptfs<\/code><\/div>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"note\">\n<p class=\"note_title\">\u6ce8\u610f\uff1a<\/p>\n<ol class=\"type_lower-decimal list-paddingleft-2\">\n<li><a id=\"x_anchor_id01\"><\/a>\u4e00\u4e2a\u88c5\u8f7d\u70b9\u7b49\u4e8e\u4e00\u4e2a\u5b58\u50a8\u7a7a\u95f4\u3002\u5982\u679c\u60a8\u6709\u591a\u4e2a\u9700\u8981\u6062\u590d\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u8bf7\u521b\u5efa\u4e0e\u5b58\u50a8\u7a7a\u95f4\u6570\u91cf\u76f8\u540c\u7684\u6587\u4ef6\u5939\u3002<\/li>\n<li><a id=\"x_anchor_id02\"><\/a>md\uff08\u9635\u5217\uff09\u7684\u6570\u91cf\u5c06\u5728\u00a0<code>cat \/proc\/mdstat<\/code>\u00a0\u7684\u7ed3\u679c\u4e2d\u5217\u51fa\u3002<\/li>\n<li><a id=\"x_anchor_id03\"><\/a><code>syno_vg_reserved_area<\/code>\u00a0\u53ef\u4ee5\u5ffd\u7565\uff0cvolume_x \u7684\u6570\u91cf\u7b49\u4e8e\u5b58\u50a8\u7a7a\u95f4\u7684\u6570\u91cf\u3002<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 \u672c\u6587\u5c06\u6307\u5bfc\u60a8\u5728 Synol&#46;&#46;&#46;<\/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-1693","post","type-post","status-publish","format-standard","hentry","category-hkc"],"_links":{"self":[{"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=\/wp\/v2\/posts\/1693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1693"}],"version-history":[{"count":1,"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=\/wp\/v2\/posts\/1693\/revisions"}],"predecessor-version":[{"id":1694,"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=\/wp\/v2\/posts\/1693\/revisions\/1694"}],"wp:attachment":[{"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hkc.nasclub.vip\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}