{"id":236215,"date":"2022-03-05T08:48:02","date_gmt":"2022-03-05T00:48:02","guid":{"rendered":"https:\/\/gulass.cn\/?p=236215"},"modified":"2022-02-21T15:49:56","modified_gmt":"2022-02-21T07:49:56","slug":"mount-yyds","status":"publish","type":"post","link":"https:\/\/gulass.cn\/mount-yyds.html","title":{"rendered":"mount\u5e38\u8bc6#yyds\u5e72\u8d27\u76d8\u70b9#"},"content":{"rendered":"
\n\u200bliunx\u4e2d\u7684\u6839\u76ee\u5f55\u4ee5\u5916\u7684\u6587\u4ef6\u60f3\u88ab\u8bbf\u95ee\uff0c\u9700\u8981\u5c06\u5176\u201c\u5173\u8054\u201d\u5230\u6839\u76ee\u5f55\u4e0b\u7684\u67d0\u4e2a\u76ee\u5f55\u6765\u5b9e\u73b0\uff0c\u8fd9\u79cd\u5173\u8054\u7684\u64cd\u4f5c\u5c31\u662f\u201c\u6302\u8f7d\u201d\uff0c\u8fd9\u4e2a\u76ee\u5f55\u5c31\u662f\u201c\u6302\u8f7d\u70b9\u201d\uff0c\u89e3\u9664\u6b21\u5173\u8054\u5173\u7cfb\u7684\u8fc7\u7a0b\u5c31\u79f0\u4e4b\u4e3a\u201c\u5378\u8f7d\u201d\u3002\u200b<\/p>\n
\u200b\u6ce8\u610f\uff1a\u201c\u6302\u8f7d\u70b9\u201d\u7684\u76ee\u5f55\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u8981\u6c42\uff1a\u200b<\/p>\n
\u200b\uff081\uff09\u76ee\u5f55\u4e8b\u5148\u5b58\u5728\uff0c\u53ef\u4ee5\u7528mkdir\u547d\u4ee4\u65b0\u5efa\u76ee\u5f55\uff1b\u200b<\/p>\n
\u200b\uff082\uff09\u6302\u8f7d\u70b9\u76ee\u5f55\u4e0d\u53ef\u88ab\u5176\u4ed6\u8fdb\u7a0b\u4f7f\u7528\u5230\uff1b\u200b<\/p>\n
\u200b\uff083\uff09\u6302\u8f7d\u70b9\u4e0b\u539f\u6709\u7684\u6587\u4ef6\u5c06\u88ab\u9690\u85cf\uff1b\u200b<\/p>\n
\u200b<\/p>\n
\u200b\u6302\u8f7d\u65b9\u6cd5\uff1amount DECE MONUT_POINT\u200b<\/p>\n
\u200bmount\uff1a\u901a\u8fc7\u67e5\u770b\/etc\/mtab\u6587\u4ef6\u663e\u793a\u5f53\u524d\u6587\u4ef6\u7cfb\u7edf\u5df2\u6302\u8f7d\u7684\u6240\u4ee5\u8bbe\u5907\u3002\u200b<\/p>\n
\u200b\u547d\u4ee4\u4f7f\u7528\u683c\u5f0f\uff1amount [-fnrsvw] [-t vfstype] [-o options] device dir\u200b<\/p>\n
\u200bdevice\uff1a\u6307\u660e\u8981\u6302\u8f7d\u7684\u8bbe\u5907\uff1b\u200b<\/p>\n
\u200b(1)\u00a0\u8bbe\u5907\u6587\u4ef6\uff1a\u4f8b\u5982\/dev\/sda5\u200b<\/p>\n
\u200b(2)\u00a0\u5377\u6807\uff1a-L 'LABEL', \u4f8b\u5982 -L 'MYDATA'\u200b<\/p>\n
\u200b(3)\u00a0UUID, -U 'UUID'\uff1a\u4f8b\u5982 -U '0c50523c-43f1-45e7-85c0-a126711d406e'\u200b<\/p>\n
\u200b(4)\u00a0\u4f2a\u6587\u4ef6\u7cfb\u7edf\u540d\u79f0\uff1aproc, sysfs, devtmpfs, configfs\u200b<\/p>\n
\u200bdir\uff1a\u6302\u8f7d\u70b9\u200b<\/p>\n
\u200b\u4e8b\u5148\u5b58\u5728\uff1b\u5efa\u8bae\u4f7f\u7528\u7a7a\u76ee\u5f55\u200b<\/p>\n
\u200b\u8fdb\u7a0b\u5728\u4f7f\u7528\u4e2d\u7684\u8bbe\u5907\u65e0\u6cd5\u88ab\u5378\u8f7d\uff1a\u200b<\/p>\n
\u200b\u5e38\u7528\u547d\u4ee4\u9009\u9879\uff1a\u200b<\/p>\n
\u200b-t vsftype\uff1a\u6307\u5b9a\u8981\u6302\u8f7d\u7684\u8bbe\u5907\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff1b\u200b<\/p>\n
\u200b-r readonly\uff1a\u53ea\u8bfb\u6302\u8f7d\uff1b\u200b<\/p>\n
\u200b-w read and write\uff1a\u8bfb\u5199\u6302\u8f7d\uff1b\u200b<\/p>\n
\u200b-n\uff1a\u4e0d\u66f4\u65b0\/etc\/mtab;\u200b<\/p>\n
\u200b-a\uff1a\u81ea\u52a8\u6302\u8f7d\u6240\u6709\u652f\u6301\u81ea\u52a8\u6302\u8f7d\u7684\u8bbe\u5907\uff1b\uff08\u5b9a\u4e49\u5728\u4e86\/etc\/fstab\u6587\u4ef6\u4e2d\uff0c\u4e14\u6302\u8f7d\u9009\u9879\u4e2d\u6709\u201c\u81ea\u52a8\u6302\u8f7d\u201d\u529f\u80fd\uff09\u200b<\/p>\n
\u200b\u6302\u8f7d\u70b9\u9700\u8981\u6ce8\u610f\u7684\u51e0\u70b9\u200b<\/p>\n
\u200b\u76ee\u5f55\u8981\u5148\u5b58\u7740\uff0c\u53ef\u4ee5\u7528mkdir\u547d\u4ee4\u65b0\u5efa\u76ee\u5f55\u200b
\n\u200b\u6302\u8f7d\u70b9\u76ee\u5f55\u4e0d\u53ef\u88ab\u5176\u4ed6\u8fdb\u7a0b\u4f7f\u7528\u5230\u200b
\n\u200b\u6302\u8f7d\u70b9\u539f\u6709\u6587\u4ef6\u88ab\u9690\u85cf\u200b<\/p>\n
\u200b\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u5df2\u6302\u8f7d\u7684\u6240\u6709\u8bbe\u5907\u200b<\/p>\n
cat \/etc\/mtab<\/p>\n
\u200b\/etc\/fstab\u9ed8\u8ba4\u7684\u6302\u8f7d\u9009\u9879\u200b<\/p>\n
\u200b\u6587\u4ef6\u7cfb\u7edf\u7684\u53c2\u6570\u200b<\/p>\n
\u200b\u8bbe\u7f6e\u662f\u5426\u4e3a\u540c\u6b65\u65b9\u5f0f\u8fd0\u884c\uff0c\u9ed8\u8ba4\u4e3aasync\u200b<\/p>\n
\u200b\u00a0\u5f53\u4e0b\u8f7dmount -a\u00a0\u7684\u547d\u4ee4\u65f6\uff0c\u6b64\u6587\u4ef6\u7cfb\u7edf\u662f\u5426\u88ab\u4e3b\u52a8\u6302\u8f7d\u3002\u9ed8\u8ba4\u4e3aauto\u200b<\/p>\n
\u200brw\/ro\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u200b<\/p>\n
\u200b\u00a0\u662f\u5426\u4ee5\u4ee5\u53ea\u8bfb\u6216\u8005\u8bfb\u5199\u6a21\u5f0f\u6302\u8f7d\u200b<\/p>\n
exec\/noexec\u00a0\u00a0\u200b<\/p>\n
\u200b\u00a0\u9650\u5236\u6b64\u6587\u4ef6\u7cfb\u7edf\u5185\u662f\u5426\u80fd\u591f\u8fdb\u884c\"\u6267\u884c\"\u7684\u64cd\u4f5c\u200b<\/p>\n
user\/nouser<\/p>\n
\u200b\u662f\u5426\u5141\u8bb8\u7528\u6237\u4f7f\u7528mount\u547d\u4ee4\u6302\u8f7d\u200b<\/p>\n
suid\/nosuid<\/p>\n
\u200b\u662f\u5426\u5141\u8bb8SUID\u7684\u5b58\u5728\u200b<\/p>\n
\u200b<\/p>\n
\u200b\u542f\u52a8\u6587\u4ef6\u7cfb\u7edf\u652f\u6301\u78c1\u76d8\u914d\u989d\u6a21\u5f0f\u200b<\/p>\n
\u200b\u542f\u52a8\u6587\u4ef6\u7cfb\u7edf\u5bf9\u7fa4\u7ec4\u78c1\u76d8\u914d\u989d\u6a21\u5f0f\u7684\u652f\u6301\u200b<\/p>\n
\u200b\u540c\u4e8b\u5177\u6709rw,suid,dev,exec,auto,nouser,async\u7b49\u9ed8\u8ba4\u53c2\u6570\u7684\u8bbe\u7f6e\u200b<\/p>\n
#\u5c06\/dev\/hda1\u6302\u8f7d\u5230\/data\u4e0b\u9762<\/p>\n
mount \/dev\/hda1 \/data<\/pre>\n#\u5c06\/dev\/hda1\u7528\u53ea\u8bfb\u7684\u6a21\u5f0f\u6302\u8f7d\u5230\/data\u4e4b\u4e0b<\/p>\n
mount -o ro \/dev\/hda1 \/data<\/pre>\n#\u5c06\/tmp\/images.iso\u8fd9\u4e2a\u5149\u76d8\u4f7f\u7528loop\u6a21\u5f0f\u6302\u5728\/mnt\/cdrom\u4e4b\u4e0b<\/p>\n
mount -o loop \/tmp\/images.iso \/mnt\/cdrom<\/pre>\n","protected":false},"excerpt":{"rendered":"\u200bliunx\u4e2d\u7684\u6839\u76ee\u5f55\u4ee5\u5916\u7684\u6587\u4ef6\u60f3\u88ab\u8bbf\u95ee\uff0c\u9700\u8981\u5c06\u5176\u201c\u5173\u8054\u201d\u5230\u6839\u76ee\u5f55\u4e0b\u7684\u67d0\u4e2a\u76ee\u5f55\u6765\u5b9e\u73b0\uff0c\u8fd9\u79cd\u5173\u8054\u7684\u64cd\u4f5c\u5c31\u662f\u201c\u6302\u8f7d […]<\/p>\n","protected":false},"author":1469,"featured_media":236216,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-236215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/236215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=236215"}],"version-history":[{"count":1,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/236215\/revisions"}],"predecessor-version":[{"id":236217,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/236215\/revisions\/236217"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/236216"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=236215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=236215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=236215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}