{"id":47405,"date":"2025-07-30T07:42:00","date_gmt":"2025-07-29T23:42:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/47405.html"},"modified":"2025-07-30T07:42:00","modified_gmt":"2025-07-29T23:42:00","slug":"%e3%80%90%e8%ae%b0%e5%bd%95%e3%80%91ubuntu%ef%bd%9cubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%8c%82%e8%bd%bd%e6%96%b0%e7%9a%84%e7%a1%ac%e7%9b%98%e7%9a%84%e6%b5%81%e7%a8%8b%ef%bc%88%e5%bc%80%e6%9c%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/47405.html","title":{"rendered":"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09"},"content":{"rendered":"<p>\u7b80\u800c\u8a00\u4e4b&#xff0c;\u770b\u8fd9\u5f20\u56fe\u7247\u5c31\u597d&#xff08;\u53ef\u4ee5\u5b58\u4e00\u4e0b&#xff0c;\u6ce8\u610f\u6302\u8f7d\u70b9\/data\u53ef\u4ee5\u81ea\u5b9a\u4e49&#xff0c;\u6302\u8f7d\u786c\u76d8\u7684\u4f4d\u7f6e\/dev\/sdb\u8981\u6539\u6210\u6b65\u9aa41\u4e2d\u68c0\u67e5\u7684\u65f6\u5019\u67e5\u5230\u7684\u90a3\u4e2a\u4f4d\u7f6e&#xff0c;\u4e0d\u8fc7\u8fd9\u4e2a\u56fe\u7684\u81ea\u52a8\u6302\u8f7d\u6f0f\u4e86UUID&#xff0c;\u53ef\u4ee5\u901a\u8fc7blkid\u6307\u4ee4\u67e5\u627e&#xff09;&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729234158-68895c463dcbe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4ee5\u4e0b\u662f\u8be6\u7ec6\u8bf4\u660e&#xff08;\u7531AI\u4e30\u5bcc\u8865\u5168&#xff0c;\u4e0d\u8fc7\u622a\u56fe\u662f\u6211\u81ea\u5df1\u622a\u7684&#xff09;\u3002<\/p>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u4e00\u3001\u68c0\u67e5\u786c\u76d8&#xff0c;\u627e\u5230\u8981\u6302\u8f7d\u7684\u786c\u76d8<\/li>\n<li>\u4e8c\u3001\u521b\u5efa\u6302\u8f7d\u70b9<\/li>\n<li>\u4e09\u3001\u683c\u5f0f\u5316\u4e0e\u6302\u8f7d\u786c\u76d8<\/li>\n<li>\n<ul>\n<li>3.1 \u683c\u5f0f\u5316\u786c\u76d8&#xff08;\u9488\u5bf9\u672a\u4f7f\u7528\u8fc7\u7684\u786c\u76d8&#xff09;<\/li>\n<li>3.2 \u6302\u8f7d\u786c\u76d8<\/li>\n<li>3.3\u3001\u67e5\u627eUUID<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u542f\u7528\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/li>\n<li>\n<ul>\n<li>4.1 \u6253\u5f00 fstab \u6587\u4ef6<\/li>\n<li>4.2 \u6dfb\u52a0\u6302\u8f7d\u4fe1\u606f <\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u7ed9\u6302\u8f7d\u76ee\u5f55\u8d4b\u6743<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5728\u4f7f\u7528 Ubuntu \u7cfb\u7edf\u65f6&#xff0c;\u968f\u7740\u6570\u636e\u91cf\u7684\u4e0d\u65ad\u589e\u52a0&#xff0c;\u6302\u8f7d\u65b0\u786c\u76d8\u6765\u6269\u5c55\u5b58\u50a8\u7a7a\u95f4\u662f\u4e00\u9879\u5e38\u89c1\u4e14\u5b9e\u7528\u7684\u64cd\u4f5c\u3002\u65e0\u8bba\u662f\u4e3a\u4e86\u5b58\u50a8\u5927\u91cf\u6587\u4ef6\u3001\u642d\u5efa\u670d\u52a1\u5668\u73af\u5883&#xff0c;\u8fd8\u662f\u5907\u4efd\u91cd\u8981\u6570\u636e&#xff0c;\u638c\u63e1 Ubuntu \u6302\u8f7d\u786c\u76d8\u7684\u65b9\u6cd5\u90fd\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u5c06\u4e3a\u4f60\u8be6\u7ec6\u4ecb\u7ecd Ubuntu \u6302\u8f7d\u786c\u76d8\u7684\u5b8c\u6574\u6d41\u7a0b&#xff0c;\u5305\u62ec\u68c0\u67e5\u786c\u76d8\u3001\u521b\u5efa\u6302\u8f7d\u70b9\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u4ee5\u53ca\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\u7b49\u64cd\u4f5c&#xff0c;\u5e76\u9644\u4e0a\u5173\u952e\u6b65\u9aa4\u7684&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729234158-68895c463dcbe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5e2e\u52a9\u4f60\u8f7b\u677e\u5b8c\u6210\u786c\u76d8\u6302\u8f7d\u4efb\u52a1\u3002<\/p>\n<h3>\u4e00\u3001\u68c0\u67e5\u786c\u76d8&#xff0c;\u627e\u5230\u8981\u6302\u8f7d\u7684\u786c\u76d8<\/h3>\n<p>\u5728\u6302\u8f7d\u786c\u76d8\u4e4b\u524d&#xff0c;\u6211\u4eec\u9996\u5148\u9700\u8981\u786e\u5b9a\u7cfb\u7edf\u4e2d\u786c\u76d8\u7684\u8bbe\u5907\u540d\u79f0&#xff0c;\u4ee5\u4fbf\u540e\u7eed\u64cd\u4f5c\u3002Ubuntu \u7cfb\u7edf\u4e2d&#xff0c;\u786c\u76d8\u8bbe\u5907\u901a\u5e38\u4ee5 \/dev\/sd \u5f00\u5934&#xff0c;\u540e\u9762\u8ddf\u7740\u4e00\u4e2a\u5b57\u6bcd\u8868\u793a\u4e0d\u540c\u7684\u786c\u76d8&#xff0c;\u4f8b\u5982 \/dev\/sda \u4e00\u822c\u662f\u7cfb\u7edf\u5b89\u88c5\u7684\u786c\u76d8&#xff0c;\u800c\u65b0\u6dfb\u52a0\u7684\u786c\u76d8\u53ef\u80fd\u662f \/dev\/sdb \u3001 \/dev\/sdc \u7b49\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 sudo fdisk -l \u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u4e2d\u5df2\u8fde\u63a5\u7684\u786c\u76d8\u53ca\u5176\u5206\u533a\u4fe1\u606f\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u8be5\u547d\u4ee4\u5e76\u56de\u8f66&#xff0c;\u7cfb\u7edf\u4f1a\u5217\u51fa\u6240\u6709\u786c\u76d8\u8bbe\u5907\u53ca\u5176\u5206\u533a\u7684\u8be6\u7ec6\u4fe1\u606f&#xff0c;\u5305\u62ec\u8bbe\u5907\u540d\u79f0\u3001\u5927\u5c0f\u3001\u5206\u533a\u7c7b\u578b\u7b49\u3002<\/p>\n<p>sudo fdisk -l<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729234158-68895c46534bd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e0a\u56fe\u5c55\u793a\u4e86\u6267\u884c sudo fdisk -l \u547d\u4ee4\u540e\u7684\u8f93\u51fa\u7ed3\u679c\u793a\u4f8b&#xff0c;\u4f60\u53ef\u4ee5\u6839\u636e**\u786c\u76d8\u7684\u5927\u5c0f&#xff08;\u4e0a\u56fe2&#xff09;\u3001\u54c1\u724c&#xff08;\u4e0a\u56fe3&#xff09;\u3001\u6807\u8bc6\u7b26&#xff08;\u4e0a\u56fe4&#xff09;**\u7b49\u4fe1\u606f&#xff0c;\u51c6\u786e\u627e\u5230\u9700\u8981\u6302\u8f7d\u7684\u786c\u76d8\u8bbe\u5907\u540d\u79f0&#xff0c;\u4f8b\u5982 \/dev\/nvme0n1 \u3002<\/p>\n<p>\u6ce8&#xff1a;\u4e5f\u53ef\u4ee5\u4f7f\u7528sudo lsblk\u68c0\u67e5\u662f\u5426\u6709&#xff0c;\u4e0d\u8fc7\u8fd9\u4e2a\u4fe1\u606f\u4f1a\u5c11\u5f88\u591a\u3002<\/p>\n<p>\u5982\u679c\u4e24\u79cd\u6307\u4ee4\u4f60\u90fd\u53d1\u73b0\u6839\u672c\u627e\u4e0d\u5230\u4f60\u81ea\u5df1\u7684\u786c\u76d8&#xff0c;\u90a3\u4e48\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u542f\u4e00\u4e0b\u4f60\u7684\u670d\u52a1\u5668\u6216\u8005\u7535\u8111&#xff0c;\u5982\u679c\u8fd8\u4e0d\u884c\u5c31\u5f97\u95ee\u786c\u76d8\u7684\u5382\u5546\u4e86\u3002<\/p>\n<h3>\u4e8c\u3001\u521b\u5efa\u6302\u8f7d\u70b9<\/h3>\n<p>\u6302\u8f7d\u70b9\u662f\u786c\u76d8\u5728\u7cfb\u7edf\u4e2d\u7684 \u201c\u843d\u811a\u70b9\u201d&#xff0c;\u5b83\u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u7a7a\u76ee\u5f55&#xff0c;\u901a\u8fc7\u6302\u8f7d\u64cd\u4f5c&#xff0c;\u5c06\u786c\u76d8\u4e0e\u8be5\u76ee\u5f55\u5173\u8054\u8d77\u6765&#xff0c;\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee\u8fd9\u4e2a\u76ee\u5f55\u6765\u8bfb\u5199\u786c\u76d8\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<p>\u4f7f\u7528 sudo mkdir \/data \u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55\u4f5c\u4e3a\u6302\u8f7d\u70b9\u3002\u8fd9\u91cc\u7684 \/data \u53ea\u662f\u4e00\u4e2a\u793a\u4f8b&#xff0c;\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u548c\u4e60\u60ef\u81ea\u5b9a\u4e49\u6302\u8f7d\u70b9\u76ee\u5f55\u540d\u79f0\u548c\u8def\u5f84&#xff0c;\u4f8b\u5982 \/mnt\/newdisk \u3001 \/home\/user\/storage \u7b49\u3002\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f&#xff0c;\u786e\u4fdd\u4f60\u521b\u5efa\u7684\u76ee\u5f55\u662f\u7a7a\u76ee\u5f55&#xff0c;\u5426\u5219\u6302\u8f7d\u540e&#xff0c;\u539f\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\u5c06\u88ab\u786c\u76d8\u4e2d\u7684\u6570\u636e\u6682\u65f6\u8986\u76d6&#xff0c;\u76f4\u5230\u53d6\u6d88\u6302\u8f7d\u3002<\/p>\n<p>sudo mkdir \/data<\/p>\n<h3>\u4e09\u3001\u683c\u5f0f\u5316\u4e0e\u6302\u8f7d\u786c\u76d8<\/h3>\n<h4>3.1 \u683c\u5f0f\u5316\u786c\u76d8&#xff08;\u9488\u5bf9\u672a\u4f7f\u7528\u8fc7\u7684\u786c\u76d8&#xff09;<\/h4>\n<p>\u5982\u679c\u786c\u76d8\u662f\u5168\u65b0\u7684&#xff0c;\u6216\u8005\u4e4b\u524d\u4f7f\u7528\u7684\u6587\u4ef6\u7cfb\u7edf\u4e0e Ubuntu \u4e0d\u517c\u5bb9&#xff0c;\u90a3\u4e48\u5728\u6302\u8f7d\u4e4b\u524d\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u683c\u5f0f\u5316&#xff0c;\u5c06\u5176\u683c\u5f0f\u5316\u4e3a Ubuntu \u652f\u6301\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff0c;\u5e38\u89c1\u7684\u6709 ext4 \u3002\u683c\u5f0f\u5316\u64cd\u4f5c\u4f1a\u5220\u9664\u786c\u76d8\u4e0a\u539f\u6709\u7684\u6240\u6709\u6570\u636e&#xff0c;\u56e0\u6b64\u5728\u6267\u884c\u524d\u8bf7\u52a1\u5fc5\u786e\u8ba4\u786c\u76d8\u4e2d\u6ca1\u6709\u91cd\u8981\u6570\u636e&#xff0c;\u6216\u8005\u5df2\u505a\u597d\u6570\u636e\u5907\u4efd\u3002<\/p>\n<p>\u4f7f\u7528 sudo mkfs -t ext4 \/dev\/sdb \u547d\u4ee4\u5bf9\u786c\u76d8\u8fdb\u884c\u683c\u5f0f\u5316&#xff0c;\u5176\u4e2d -t ext4 \u6307\u5b9a\u4e86\u8981\u683c\u5f0f\u5316\u4e3a ext4 \u6587\u4ef6\u7cfb\u7edf&#xff0c; \/dev\/sdb \u662f\u4f60\u8981\u683c\u5f0f\u5316\u7684\u786c\u76d8\u8bbe\u5907\u540d\u79f0&#xff0c;\u9700\u66ff\u6362\u4e3a\u5b9e\u9645\u7684\u786c\u76d8\u8bbe\u5907\u540d\u3002\u6267\u884c\u8be5\u547d\u4ee4\u540e&#xff0c;\u7cfb\u7edf\u4f1a\u5f00\u59cb\u683c\u5f0f\u5316\u786c\u76d8&#xff0c;\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4&#xff0c;\u76f4\u5230\u683c\u5f0f\u5316\u5b8c\u6210\u3002<\/p>\n<p>sudo mkfs -t ext4 \/dev\/sdb<\/p>\n<p>\u4e00\u8def\u56de\u8f66\u5c31\u597d&#xff0c;\u5982\u679c\u53d1\u73b0\u8fd9\u6837\u4e0d\u884c&#xff0c;\u90a3\u7b2c\u4e00\u4e2a\u547d\u4ee4\u884c\u7684\u5730\u65b9\u8f93\u5165y\u3002<\/p>\n<h4>3.2 \u6302\u8f7d\u786c\u76d8<\/h4>\n<p>\u5b8c\u6210\u683c\u5f0f\u5316\u540e&#xff0c;\u5c31\u53ef\u4ee5\u5c06\u786c\u76d8\u6302\u8f7d\u5230\u4e4b\u524d\u521b\u5efa\u7684\u6302\u8f7d\u70b9\u4e0a\u4e86\u3002\u4f7f\u7528 sudo mount \/dev\/sdb \/data \u547d\u4ee4\u8fdb\u884c\u6302\u8f7d&#xff0c;\u5176\u4e2d \/dev\/sdb \u662f\u8981\u6302\u8f7d\u7684\u786c\u76d8\u8bbe\u5907\u540d\u79f0&#xff0c; \/data \u662f\u4e4b\u524d\u521b\u5efa\u7684\u6302\u8f7d\u70b9\u76ee\u5f55\u3002\u6267\u884c\u8be5\u547d\u4ee4\u540e&#xff0c;\u786c\u76d8\u5c31\u6210\u529f\u6302\u8f7d\u5230\u7cfb\u7edf\u4e2d\u4e86&#xff0c;\u4f60\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee \/data \u76ee\u5f55\u6765\u8bfb\u5199\u786c\u76d8\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<p>sudo mount \/dev\/sdb \/data<\/p>\n<h4>3.3\u3001\u67e5\u627eUUID<\/h4>\n<p>\u8fd0\u884c\u5c31\u884c\u3002<\/p>\n<p>blkid<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729234158-68895c46abcbe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u56db\u3001\u542f\u7528\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/h3>\n<p>\u867d\u7136\u624b\u52a8\u6302\u8f7d\u786c\u76d8\u80fd\u591f\u6ee1\u8db3\u4e34\u65f6\u4f7f\u7528\u9700\u6c42&#xff0c;\u4f46\u6bcf\u6b21\u91cd\u542f\u7cfb\u7edf\u540e&#xff0c;\u90fd\u9700\u8981\u91cd\u65b0\u6267\u884c\u6302\u8f7d\u547d\u4ee4&#xff0c;\u8fd9\u65e0\u7591\u589e\u52a0\u4e86\u64cd\u4f5c\u7684\u7e41\u7410\u6027\u3002\u4e3a\u4e86\u8ba9\u786c\u76d8\u5728\u7cfb\u7edf\u5f00\u673a\u65f6\u81ea\u52a8\u6302\u8f7d&#xff0c;\u6211\u4eec\u9700\u8981\u5bf9 \/etc\/fstab \u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n<h4>4.1 \u6253\u5f00 fstab \u6587\u4ef6<\/h4>\n<p>\u4f7f\u7528 sudo nano \/etc\/fstab \u547d\u4ee4\u6253\u5f00 \/etc\/fstab \u6587\u4ef6&#xff0c; nano \u662f\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u6587\u672c\u7f16\u8f91\u5668\u3002\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u4e2d\u6ca1\u6709\u5b89\u88c5 nano &#xff0c;\u4e5f\u53ef\u4ee5\u4f7f\u7528 vim \u7b49\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668&#xff0c;\u4f8b\u5982 sudo vim \/etc\/fstab \u3002\u6267\u884c\u547d\u4ee4\u540e&#xff0c;\u4f1a\u8fdb\u5165\u6587\u672c\u7f16\u8f91\u754c\u9762&#xff0c;\u663e\u793a \/etc\/fstab \u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n<p>sudo nano \/etc\/fstab<\/p>\n<h4>4.2 \u6dfb\u52a0\u6302\u8f7d\u4fe1\u606f <\/h4>\n<p>\u5728 \/etc\/fstab \u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4e00\u884c\u65b0\u7684\u5185\u5bb9&#xff0c;\u683c\u5f0f\u4e3a \u8bbe\u5907\u540d\u79f0 \u6302\u8f7d\u70b9 \u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b \u9ed8\u8ba4\u9009\u9879 \u5907\u4efd\u9891\u7387 \u68c0\u67e5\u987a\u5e8f &#xff08;\u5efa\u8baetab\u952e\u5206\u9694&#xff0c;\u4e0d\u8fc7\u5b9e\u9645\u4e0a\u7a7a\u683c\u5206\u9694\u597d\u50cf\u4e5f\u6ca1\u5f71\u54cd&#xff1f;&#xff09;\u3002\u4f8b\u5982&#xff0c;\u5bf9\u4e8e\u6211\u4eec\u4e4b\u524d\u7684\u64cd\u4f5c&#xff0c;\u6dfb\u52a0 dev\/sdb \/data ext4 defaults 0 0 &#xff0c;\u5176\u4e2d dev\/sdb \u662f\u786c\u76d8\u8bbe\u5907\u540d\u79f0&#xff0c; \/data \u662f\u6302\u8f7d\u70b9&#xff0c; ext4 \u662f\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff0c; defaults \u8868\u793a\u4f7f\u7528\u9ed8\u8ba4\u6302\u8f7d\u9009\u9879&#xff0c;\u540e\u9762\u4e24\u4e2a 0 \u5206\u522b\u8868\u793a\u5907\u4efd\u9891\u7387\u548c\u68c0\u67e5\u987a\u5e8f&#xff08;\u4e00\u822c\u60c5\u51b5\u4e0b\u8bbe\u7f6e\u4e3a 0 \u5373\u53ef&#xff09;\u3002\u6dfb\u52a0\u5b8c\u6210\u540e&#xff0c;\u6309\u4e0b Ctrl &#043; X &#xff0c;\u7136\u540e\u6309 Y \u4fdd\u5b58\u4fee\u6539&#xff0c;\u6700\u540e\u6309 Enter \u786e\u8ba4\u4fdd\u5b58\u6587\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729234159-68895c473b306.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e0a\u56fe\u5c55\u793a\u4e86\u5728 \/etc\/fstab \u6587\u4ef6\u4e2d\u6dfb\u52a0\u6302\u8f7d\u4fe1\u606f\u7684\u64cd\u4f5c\u8fc7\u7a0b\u53ca\u6dfb\u52a0\u540e\u7684\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n<p>\/dev\/sdb \/data ext4 defaults 0 0<\/p>\n<h3>\u4e94\u3001\u7ed9\u6302\u8f7d\u76ee\u5f55\u8d4b\u6743<\/h3>\n<p>\u4e3a\u4e86\u786e\u4fdd\u4e0d\u540c\u7528\u6237\u90fd\u80fd\u6b63\u5e38\u8bbf\u95ee\u548c\u64cd\u4f5c\u6302\u8f7d\u7684\u786c\u76d8&#xff0c;\u6211\u4eec\u9700\u8981\u7ed9\u6302\u8f7d\u76ee\u5f55\u8d4b\u4e88\u5408\u9002\u7684\u6743\u9650\u3002\u4f7f\u7528 sudo chmod -R 777 \/data \u547d\u4ee4\u7ed9 \/data \u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\u8d4b\u4e88\u6240\u6709\u7528\u6237\u8bfb\u3001\u5199\u3001\u6267\u884c\u7684\u6743\u9650\u3002\u8fd9\u91cc\u7684 777 \u662f\u6743\u9650\u8bbe\u7f6e\u7684\u516b\u8fdb\u5236\u8868\u793a&#xff0c;\u5176\u4e2d\u7b2c\u4e00\u4e2a 7 \u8868\u793a\u6587\u4ef6\u6240\u6709\u8005\u7684\u6743\u9650&#xff0c;\u7b2c\u4e8c\u4e2a 7 \u8868\u793a\u6587\u4ef6\u6240\u5c5e\u7ec4\u7684\u6743\u9650&#xff0c;\u7b2c\u4e09\u4e2a 7 \u8868\u793a\u5176\u4ed6\u7528\u6237\u7684\u6743\u9650&#xff0c;\u6bcf\u4e2a 7 \u90fd\u5305\u542b\u8bfb&#xff08; 4 &#xff09;\u3001\u5199&#xff08; 2 &#xff09;\u3001\u6267\u884c&#xff08; 1 &#xff09;\u6743\u9650&#xff08; 4 &#043; 2 &#043; 1 &#061; 7 &#xff09;\u3002  -R \u9009\u9879\u8868\u793a\u9012\u5f52\u64cd\u4f5c&#xff0c;\u5373\u5bf9\u76ee\u5f55\u53ca\u5176\u4e0b\u7684\u6240\u6709\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\u90fd\u5e94\u7528\u76f8\u540c\u7684\u6743\u9650\u8bbe\u7f6e\u3002<\/p>\n<p>sudo chmod -R 777 \/data<\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u6211\u4eec\u5b8c\u6210\u4e86\u5728 Ubuntu \u7cfb\u7edf\u4e2d\u6302\u8f7d\u786c\u76d8\u7684\u5168\u90e8\u64cd\u4f5c&#xff0c;\u5305\u62ec\u68c0\u67e5\u786c\u76d8\u3001\u521b\u5efa\u6302\u8f7d\u70b9\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u4ee5\u53ca\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\u548c\u8d4b\u4e88\u76ee\u5f55\u6743\u9650\u3002\u638c\u63e1\u8fd9\u4e9b\u64cd\u4f5c\u540e&#xff0c;\u4f60\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u6269\u5c55 Ubuntu \u7cfb\u7edf\u7684\u5b58\u50a8\u7a7a\u95f4&#xff0c;\u6ee1\u8db3\u5404\u79cd\u6570\u636e\u5b58\u50a8\u548c\u4f7f\u7528\u9700\u6c42\u3002\u5728\u5b9e\u9645\u64cd\u4f5c\u8fc7\u7a0b\u4e2d&#xff0c;\u5982\u679c\u9047\u5230\u4efb\u4f55\u95ee\u9898&#xff0c;\u4f8b\u5982\u786c\u76d8\u65e0\u6cd5\u6302\u8f7d\u3001\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\u5931\u8d25\u7b49&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u3001\u641c\u7d22\u76f8\u5173\u9519\u8bef\u4fe1\u606f\u7b49\u65b9\u5f0f\u6765\u89e3\u51b3\u95ee\u9898\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9&#xff0c;\u5982\u679c\u4f60\u8fd8\u6709\u5176\u4ed6\u5173\u4e8e Ubuntu \u7cfb\u7edf\u7684\u95ee\u9898\u6216\u9700\u6c42&#xff0c;\u6b22\u8fce\u968f\u65f6\u5173\u6ce8\u6211\u7684\u535a\u5ba2\u83b7\u53d6\u66f4\u591a\u5185\u5bb9\u3002<\/p>\n<p>\u4ee5\u4e0a\u535a\u5ba2\u5df2\u8be6\u7ec6\u9610\u8ff0 Ubuntu \u6302\u8f7d\u786c\u76d8\u6d41\u7a0b\u3002\u4f60\u82e5\u89c9\u5f97\u67d0\u4e9b\u90e8\u5206\u9700\u8981\u4fee\u6539&#xff0c;\u6216\u60f3\u8865\u5145\u7279\u5b9a\u5185\u5bb9&#xff0c;\u6bd4\u5982\u5e38\u89c1\u95ee\u9898\u89e3\u7b54&#xff0c;\u53ef\u968f\u65f6\u548c\u6211\u8bf4\u3002<\/p>\n<p>\u672c\u8d26\u53f7\u6240\u6709\u6587\u7ae0\u5747\u4e3a\u539f\u521b&#xff0c;\u6b22\u8fce\u8f6c\u8f7d&#xff0c;\u8bf7\u6ce8\u660e\u6587\u7ae0\u51fa\u5904&#xff1a;https:\/\/shandianchengzi.blog.csdn.net\/article\/details\/148957370\u3002\u767e\u5ea6\u548c\u5404\u7c7b\u91c7\u96c6\u7ad9\u7686\u4e0d\u53ef\u4fe1&#xff0c;\u641c\u7d22\u8bf7\u8c28\u614e\u9274\u522b\u3002\u6280\u672f\u7c7b\u6587\u7ae0\u4e00\u822c\u90fd\u6709\u65f6\u6548\u6027&#xff0c;\u672c\u4eba\u4e60\u60ef\u4e0d\u5b9a\u671f\u5bf9\u81ea\u5df1\u7684\u535a\u6587\u8fdb\u884c\u4fee\u6b63\u548c\u66f4\u65b0&#xff0c;\u56e0\u6b64\u8bf7\u8bbf\u95ee\u51fa\u5904\u4ee5\u67e5\u770b\u672c\u6587\u7684\u6700\u65b0\u7248\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf31\u6b21\u3002Ubuntu \u6302\u8f7d\u786c\u76d8\u5168\u6d41\u7a0b\uff0c\u6db5\u76d6\u5206\u533a\u3001\u683c\u5f0f\u5316\u5230\u81ea\u52a8\u6302\u8f7d \u3002_ubuntu \u6302\u8f7d\u786c\u76d8<\/p>\n","protected":false},"author":2,"featured_media":47401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4324,58,103,43,602],"topic":[],"class_list":["post-47405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-4324","tag-linux","tag-ubuntu","tag-43","tag-602"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/47405.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf31\u6b21\u3002Ubuntu \u6302\u8f7d\u786c\u76d8\u5168\u6d41\u7a0b\uff0c\u6db5\u76d6\u5206\u533a\u3001\u683c\u5f0f\u5316\u5230\u81ea\u52a8\u6302\u8f7d \u3002_ubuntu \u6302\u8f7d\u786c\u76d8\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/47405.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T23:42:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729234158-68895c463dcbe.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47405.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/47405.html\",\"name\":\"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T23:42:00+00:00\",\"dateModified\":\"2025-07-29T23:42:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/47405.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/47405.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47405.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/47405.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf31\u6b21\u3002Ubuntu \u6302\u8f7d\u786c\u76d8\u5168\u6d41\u7a0b\uff0c\u6db5\u76d6\u5206\u533a\u3001\u683c\u5f0f\u5316\u5230\u81ea\u52a8\u6302\u8f7d \u3002_ubuntu \u6302\u8f7d\u786c\u76d8","og_url":"https:\/\/www.wsisp.com\/helps\/47405.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T23:42:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729234158-68895c463dcbe.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/47405.html","url":"https:\/\/www.wsisp.com\/helps\/47405.html","name":"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T23:42:00+00:00","dateModified":"2025-07-29T23:42:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/47405.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/47405.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/47405.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u8bb0\u5f55\u3011Ubuntu\uff5cUbuntu\u670d\u52a1\u5668\u6302\u8f7d\u65b0\u7684\u786c\u76d8\u7684\u6d41\u7a0b\uff08\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=47405"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/47401"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=47405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=47405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=47405"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=47405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}