{"id":1511,"date":"2011-08-24T11:21:33","date_gmt":"2011-08-24T16:21:33","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=1511"},"modified":"2012-08-14T18:08:33","modified_gmt":"2012-08-14T23:08:33","slug":"how-to-clean-up-the-dmesg-message","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/how-to-clean-up-the-dmesg-message\/","title":{"rendered":"How to clean up the dmesg message"},"content":{"rendered":"<p>Recently, I found that my dmesg log are filled of junk. Or I should say it contains lots of errors and complains that I already fix. However, I don&#8217;t want to reboot the machine to get rid of these error messages. How can I do it? The solution is very simple.<\/p>\n<p>For FreeBSD and other BSD members, run the following:<\/p>\n<pre>\r\nsudo sysctl kern.msgbuf_clear=1\r\n<\/pre>\n<p>For Fedora \/ Ubuntu Linux, run the following instead:<\/p>\n<pre>\r\nsudo dmesg -c\r\n<\/pre>\n<p>Easy?<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I found that my dmesg log are filled of junk. Or I should say it contains lots of errors and complains that I already fix. However, I don&#8217;t want <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/how-to-clean-up-the-dmesg-message\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6,69],"tags":[124,49,171,48,18],"class_list":["post-1511","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-dmesg","tag-fedora","tag-freebsd","tag-linux","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-on","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3242,"url":"https:\/\/icesquare.com\/wordpress\/freebsdhow-to-remove-zfs-meta-data\/","url_meta":{"origin":1511,"position":0},"title":"[FreeBSD\/Linux]How To Remove ZFS Meta Data","author":"Derrick","date":"May 14, 2013","format":false,"excerpt":"I have many hard drives circulating among my servers for testing purpose. For example, I took a hard drive from one server and put it on a different server. After doing this for many times, I've noticed that the ZFS has put many header information \/ meta data left on\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2012\/01\/400px-broom_icon.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1927,"url":"https:\/\/icesquare.com\/wordpress\/phphow-to-get-the-number-of-cpu-cores-in-fedora-ubuntu-and-freebsd\/","url_meta":{"origin":1511,"position":1},"title":"[PHP]How to get the number of CPU cores in Fedora, Ubuntu, and FreeBSD","author":"Derrick","date":"December 2, 2011","format":false,"excerpt":"I am working on a PHP application which needs to be deploy to multiple places. One of the variables is the number of CPU core. Since each server has different number of CPU cores, I need to specify the number of CPU core in my application for each server. I\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2646,"url":"https:\/\/icesquare.com\/wordpress\/php-imagecreatefrompng-error\/","url_meta":{"origin":1511,"position":2},"title":"[PHP]imagecreatefrompng Error (After upgrading FreeBSD)","author":"Derrick","date":"January 25, 2012","format":false,"excerpt":"Today, I found that one of my PHP scripts stop working. After some investigations, I found that it was the function, imagecreatefrompng, which caused the problem. Interestingly, other similar functions such as imagecreatefromgif and imagecreatefromjpeg were completely working fine. The program stopped working when calling imagecreatefrompng only. [ad#adbrite-square] Initially, I\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1477,"url":"https:\/\/icesquare.com\/wordpress\/how-to-install-highpoint-rocketraid-2640x4sgl-on-freebsd-8-x\/","url_meta":{"origin":1511,"position":3},"title":"How to install HighPoint RocketRAID 2640X4SGL on FreeBSD 8.X","author":"Derrick","date":"July 10, 2011","format":false,"excerpt":"This tutorial is for FreeBSD 8. If you are looking for the driver for FreeBSD 9, you can forget about it. According to HighPoint, there are no plans to update the RocketRaid 26XX driver to FreeBSD 9. Since it is a binary driver, there are very limited things we can\u2026","rel":"","context":"In &quot;FreeBSD&quot;","block_context":{"text":"FreeBSD","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/freebsd\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/large-150x150.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4648,"url":"https:\/\/icesquare.com\/wordpress\/zfs-on-linux-what-to-do-when-resilver-takes-very-long\/","url_meta":{"origin":1511,"position":4},"title":"[ZFS On Linux] What to Do When Resilver Takes Very Long","author":"Derrick","date":"January 13, 2020","format":false,"excerpt":"If you check your Zpool health status and you notice an error like the following: sudo zpool status pool: myzpool state: DEGRADED status: One or more devices are faulted in response to persistent errors. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1263,"url":"https:\/\/icesquare.com\/wordpress\/harddrive-disappears-or-got-deteched-in-freebsd\/","url_meta":{"origin":1511,"position":5},"title":"[Solved]Harddrive disappears or got deteched in FreeBSD","author":"Derrick","date":"February 17, 2011","format":false,"excerpt":"Have you experienced these computer problems like mine before? You got some error messages that your system cannot read your harddrives, or your harddrives suddenly got detached by your system. You have no clue why it happens because it is a fairly new harddrive. Before you decide to discard, return\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware-150x150.png","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1511"}],"version-history":[{"count":8,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1511\/revisions"}],"predecessor-version":[{"id":2870,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1511\/revisions\/2870"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}