{"id":20,"date":"2006-07-27T02:00:00","date_gmt":"2006-07-27T02:00:00","guid":{"rendered":"http:\/\/www.houquner.com\/?p=54"},"modified":"2006-07-27T02:00:00","modified_gmt":"2006-07-27T02:00:00","slug":"openbsd%e5%90%af%e5%8a%a8%e6%97%b6%e5%80%99%e4%b8%80%e4%ba%9b%e5%8f%82%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.houquner.com\/index.php\/archives\/20","title":{"rendered":"openbsd\u542f\u52a8\u65f6\u5019\u4e00\u4e9b\u53c2\u6570"},"content":{"rendered":"<p>Delaying the Boot<br \/>\n? boot&gt; set timeout 60<br \/>\n boot&gt;<\/p>\n<p>This tells OpenBSD to boot after being idle for 60 seconds, which is not an unreasonable delay when you&#8217;re poking around the boot loader trying to figure out what you want to do! Now, let&#8217;s look at some more useful functions than slowing your system down<\/p>\n<p>Booting Single-User<br \/>\n boot&gt; boot -s<\/p>\n<p>\u5982\u679c\u7cfb\u7edf\u5d29\u6e83\u5728mount\u524d\u9700\u8981fsck<\/p>\n<h1>fsck -p<\/h1>\n<h1>mount -a<\/h1>\n<p>Starting the Network in Single-User Mode<\/p>\n<h1>\/bin\/sh \/etc\/netstart<\/h1>\n<p>Other Useful Boot Commands<br \/>\nIf you forget which kernels you have on a system, the &#8220;ls&#8221; command lists all the files in the root directory. You can list other directories on the root partition by giving a full path, i.e., &#8220;ls \/etc.&#8221;<br \/>\nThe &#8220;boot&#8221; command by itself will boot the system immediately, without waiting for the five-second timeout. Similarly, the &#8220;reboot&#8221; command tells the system to do a warm boot.<br \/>\nThe &#8220;help&#8221; command lists all available boot loader commands, including the less frequently used ones that we don&#8217;t discuss here. If you want truly detailed help with the boot loader, however, you should go read the boot(8) man page.<br \/>\nFinally, you can combine the boot flags to achieve exactly the effects you want. To boot an old kernel in single-user mode, you would do this:<\/p>\n<p>boot&gt; boot -s \/bsd.old<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.houquner.com\">Kermit\u7684\u7f51\u7ad9<\/a> &raquo; <a href=\"https:\/\/www.houquner.com\/index.php\/archives\/20\">openbsd\u542f\u52a8\u65f6\u5019\u4e00\u4e9b\u53c2\u6570<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Delaying the Boot ? boot&gt; set timeout 60 boot&gt; This tells OpenBSD to boot after being idle for 60 seconds, which is not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/20"}],"collection":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":0,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}