{"id":1430,"date":"2019-04-27T22:09:11","date_gmt":"2019-04-27T14:09:11","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1430"},"modified":"2022-05-04T06:10:16","modified_gmt":"2022-05-03T22:10:16","slug":"mount","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mount","title":{"rendered":"mount\u547d\u4ee4 – \u628a\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5230\u76ee\u5f55"},"content":{"rendered":"\n

mount\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u628a\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5230\u76ee\u5f55\uff0c\u6587\u4ef6\u7cfb\u7edf\u6307\u7684\u662f\u88ab\u683c\u5f0f\u5316\u8fc7\u7684\u786c\u76d8\u6216\u5206\u533a\u8bbe\u5907\uff0c\u8fdb\u884c\u6302\u8f7d\u64cd\u4f5c\u540e\uff0c\u7528\u6237\u4fbf\u53ef\u4ee5\u5728\u6302\u8f7d\u76ee\u5f55\u4e2d\u4f7f\u7528\u786c\u76d8\u8d44\u6e90\u4e86\u3002<\/p>\n\n\n\n

\u9ed8\u8ba4\u60c5\u51b5\u4e0bLinux\u7cfb\u7edf\u5e76\u4e0d\u4f1a\u50cfWindows\u7cfb\u7edf\u90a3\u6837\u81ea\u52a8\u7684\u6302\u8f7d\u5149\u76d8\u548cU\u76d8\u8bbe\u5907\uff0c\u9700\u8981\u81ea\u884c\u5b8c\u6210\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>mount [\u53c2\u6570] [\u8bbe\u5907] [\u6302\u8f7d\u70b9]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a\ufeff<\/strong><\/p>\n\n\n\n

-t<\/td>\u6307\u5b9a\u6302\u8f7d\u7c7b\u578b<\/td><\/tr>
-l<\/td>\u663e\u793a\u5df2\u52a0\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u5217\u8868 <\/td><\/tr>
-h<\/td>\u663e\u793a\u5e2e\u52a9\u4fe1\u606f\u5e76\u9000\u51fa <\/td><\/tr>
-V<\/td>\u663e\u793a\u7a0b\u5e8f\u7248\u672c <\/td><\/tr>
-n<\/td>\u52a0\u8f7d\u6ca1\u6709\u5199\u5165\u6587\u4ef6\u201c\/etc\/mtab\u201d\u4e2d\u7684\u6587\u4ef6\u7cfb\u7edf <\/td><\/tr>
-r<\/td>\u5c06\u6587\u4ef6\u7cfb\u7edf\u52a0\u8f7d\u4e3a\u53ea\u8bfb\u6a21\u5f0f <\/td><\/tr>
-a<\/td>\u52a0\u8f7d\u6587\u4ef6\u201c\/etc\/fstab\u201d\u4e2d\u63cf\u8ff0\u7684\u6240\u6709\u6587\u4ef6\u7cfb\u7edf <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b\ufeff<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u5df2\u6709\u7684\u6587\u4ef6\u7cfb\u7edf\u4fe1\u606f\uff08\u53ef\u7ed3\u5408\u7ba1\u9053\u7b26\u4e0egrep\u547d\u4ee4\u8fdb\u884c\u8fc7\u6ee4\uff09\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mount \r\nsysfs on \/sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)\r\nproc on \/proc type proc (rw,nosuid,nodev,noexec,relatime)\r\ndevtmpfs on \/dev type devtmpfs (rw,nosuid,seclabel,size=99130k,nr_inodes=27835,mode=755)\r\nsecurityfs on \/sys\/kernel\/security type securityfs (rw,nosuid,nodev,noexec,relatime)\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n\n\n\n

\u6302\u8f7d\/etc\/fstab\u6587\u4ef6\u4e2d\u6240\u6709\u5df2\u5b9a\u4e49\u7684\u8bbe\u5907\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mount -a<\/pre>\n\n\n\n

\u5c06\u5149\u76d8\u8bbe\u5907\u6302\u8f7d\u5230\u6307\u5b9a\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mount \/dev\/cdrom \/media\/cdrom\r\nmount: \/media\/cdrom: WARNING: device write-protected, mounted read-only.\r<\/pre>\n\n\n\n

\u5f3a\u5236\u4ee5xfs\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u786c\u76d8\u8bbe\u5907\u5230\u6307\u5b9a\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# mount -t xfs \/dev\/sdb \/disk<\/pre>\n","protected":false},"excerpt":{"rendered":"

mount\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u628a\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5230\u76ee\u5f55\uff0c\u6587\u4ef6\u7cfb\u7edf\u6307\u7684\u662f\u88ab\u683c\u5f0f\u5316\u8fc7\u7684\u786c\u76d8\u6216\u5206\u533a\u8bbe\u5907\uff0c\u8fdb\u884c\u6302\u8f7d\u64cd\u4f5c\u540e\uff0c\u7528\u6237 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1430"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=1430"}],"version-history":[{"count":9,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1430\/revisions"}],"predecessor-version":[{"id":9223,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1430\/revisions\/9223"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}