{"id":48,"date":"2026-08-17T14:32:08","date_gmt":"2026-08-17T14:32:08","guid":{"rendered":"https:\/\/blog.lcsh.top\/?p=48"},"modified":"2026-08-19T10:34:22","modified_gmt":"2026-08-19T10:34:22","slug":"fstab%e6%8c%82%e8%bd%bd%e4%b8%8d%e7%a8%b3%e5%ae%9a%e7%a3%81%e7%9b%98","status":"publish","type":"post","link":"https:\/\/speedtest.lcsh.top\/?p=48","title":{"rendered":"fstab\u6302\u8f7d\u4e0d\u7a33\u5b9a\u78c1\u76d8"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>$ sudo vim \/etc\/fstab \n\n# \/etc\/fstab: static file system information.\n#\n# Use 'blkid' to print the universally unique identifier for a\n# device; this may be used with UUID= as a more robust way to name devices\n# that works even if disks are added and removed. See fstab(5).\n#\n# &lt;file system> &lt;mount point>   &lt;type>  &lt;options>       &lt;dump>  &lt;pass>\n\/dev\/mapper\/vgubuntu-root \/               ext4    errors=remount-ro 0       1\n# \/boot\/efi was on \/dev\/sda2 during installation\nUUID=2278-45D8  \/boot\/efi       vfat    umask=0077      0       1\n\/dev\/mapper\/vgubuntu-swap_1 none            swap    sw              0       0\n\nUUID=a8797f76-ef30-47f0-939a-05deb2ddcba0 \/home\/user\/media\/G2000    ext4    defaults,nofail    0    0\n~                                                                                                            <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">lsblk \u67e5\u770b\u78c1\u76d8UUID<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">defaults\u610f\u5473\u4f7f\u7528\u6587\u4ef6\u7cfb\u7edf\u7684\u9ed8\u8ba4\u6302\u8f7d\u53c2\u6570,\u4f8b\u5982 ext4 \u7684\u9ed8\u8ba4\u53c2\u6570\u4e3a:rw,suid,dev,exec,autonouser,async<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">nofail\u53ef\u4ee5\u5728\u542f\u52a8\u65f6\u82e5\u8bbe\u5907\u4e0d\u5b58\u5728\u5219\u76f4\u63a5\u5ffd\u7565\u5b83\u800c\u4e0d\u62a5\u9519<\/p>\n","protected":false},"excerpt":{"rendered":"<p>lsblk \u67e5\u770b\u78c1\u76d8UUID defaults\u610f\u5473\u4f7f\u7528\u6587\u4ef6\u7cfb\u7edf\u7684\u9ed8\u8ba4\u6302\u8f7d\u53c2\u6570,\u4f8b\u5982 ext4 \u7684\u9ed8\u8ba4\u53c2\u6570\u4e3a:rw,suid,dev,exec,autonouser,async nofail\u53ef\u4ee5\u5728\u542f\u52a8\u65f6\u82e5\u8bbe\u5907\u4e0d\u5b58\u5728\u5219\u76f4\u63a5\u5ffd\u7565\u5b83\u800c\u4e0d\u62a5\u9519<\/p>\n","protected":false},"author":1,"featured_media":51,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category--tech-notes"],"_links":{"self":[{"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":1,"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions\/49"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=\/wp\/v2\/media\/51"}],"wp:attachment":[{"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/speedtest.lcsh.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}