{"id":695,"date":"2016-04-02T18:03:58","date_gmt":"2016-04-02T10:03:58","guid":{"rendered":"http:\/\/web.jofar.cn\/?p=695"},"modified":"2016-04-02T18:03:58","modified_gmt":"2016-04-02T10:03:58","slug":"linux%e5%bc%80%e6%9c%ba%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9fmount%e9%94%99%e8%af%af%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/web.jofar.cn\/?p=695","title":{"rendered":"linux\u5f00\u673a\u6587\u4ef6\u7cfb\u7edfmount\u9519\u8bef\u5904\u7406"},"content":{"rendered":"<p>\n\tChecking filesystems<br \/>\n\tChecking all file systems.<br \/>\n\t[\/sbin\/fsck.ext4 (1) &#8212; \/] fsck.ext4 -a \/dev\/mapper\/VolGroup-lv_root&nbsp;<br \/>\n\t\/dev\/mapper\/VolGroup-lv_root: clean, 48362\/1150560 files, 671788\/4597760 blocks<br \/>\n\t[\/sbin\/fsck.ext4 (1) &#8212; \/boot] fsck.ext4 -a \/dev\/xvda1&nbsp;<br \/>\n\t\/dev\/xvda1: clean, 38\/128016 files, 57625\/512000 blocks<br \/>\n\t[\/sbin\/fsck.ext4 (1) &#8212; \/dev\/xvdb] fsck.ext4 -a \/sdb&nbsp;<br \/>\n\tfsck.ext4: Is a directory while trying to open \/sdb<br \/>\n\t\/sdb:&nbsp;<br \/>\n\tThe superblock could not be read or does not describe a correct ext2<br \/>\n\tfilesystem. &nbsp;If the device is valid and it really contains an ext2<br \/>\n\tfilesystem (and not swap or ufs or something else), then the superblock<br \/>\n\tis corrupt, and you might try running e2fsck with an alternate superblock:<br \/>\n\t&nbsp; &nbsp; e2fsck -b 8193 &lt;device&gt;\n<\/p>\n<p>\n\t\u4e0a\u9762\u662ffstab\u9519\u8bef\uff0c\u4fee\u6539\/etc\/fstab\u6587\u4ef6\uff0c\u9020\u6210linux\u65e0\u6cd5\u542f\u52a8,\u4fee\u590d:<br \/>\n\t1.\u542f\u52a8linux\u63d0\u793a\u5931\u8d25,\u8f93\u5165root\u8d26\u6237\u5bc6\u7801\uff0c\u8fdb\u5165 repair filesystem#\uff0c\u6ce8\u610f\u6b64\u65f6\u4fee\u590dfstab\u6587\u4ef6\u4f1a\u63d0\u793areadonly\u65e0\u6cd5\u4fdd\u5b58\u4fee\u6539\u3002<br \/>\n\t2.mount \/ -o remount<br \/>\n\t3.\u4fee\u6539fstab\u6587\u4ef6 vi \/etc\/fstab<br \/>\n\t4.:wq \u4fdd\u5b58\u9000\u51fa<br \/>\n\t5.reboot\n<\/p>\n<p>\n\t\u4e00\u822c\u6302\u8f7d\u65f6\uff0c\u53ef\u4ee5\u7528<br \/>\n\techo &quot;\/dev\/sdb \/mnt ext4 default 0 1&quot; &gt;&gt; \/etc\/fstab<br \/>\n\t\u6216\u8005\u76f4\u63a5\u6539fstab<br \/>\n\tvi \/etc\/fstab<br \/>\n\t\/dev\/sdb \/mnt ext4 default 0 1\n<\/p>\n<p>\n\t\u6539\u597d\u540e\uff0c \u8bf7\u4e00\u5b9a\u7528mount -a \u8fdb\u884c\u6302\u5728\u8f7d\u6d4b\u8bd5\u3002\u4fee\u6539\u524d\u6700\u597d\u505a\u4e2a\u5907\u4efdcp \/etc\/fstab \/etc\/fstab.bak<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Checking filesystems Checking all file systems. [\/sbin\/\u2026 <span class=\"read-more\"><a href=\"https:\/\/web.jofar.cn\/?p=695\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12,5],"tags":[],"class_list":["post-695","post","type-post","status-publish","format-standard","hentry","category-cloud","category-server","category-practice-readme"],"_links":{"self":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=695"}],"version-history":[{"count":0,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/695\/revisions"}],"wp:attachment":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}