{"id":1325,"date":"2016-09-14T06:08:31","date_gmt":"2016-09-14T05:08:31","guid":{"rendered":"http:\/\/cdblog.cdstealer.com\/?p=1325"},"modified":"2016-11-23T05:04:24","modified_gmt":"2016-11-23T05:04:24","slug":"linux-troubleshooting","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=1325","title":{"rendered":"Linux Troubleshooting"},"content":{"rendered":"<h2>Structure needs cleaning.<\/h2>\n<form id=\"form-t1_d49y7ehvzp\" class=\"usertext warn-on-unload\" action=\"https:\/\/www.reddit.com\/r\/linuxquestions\/comments\/4b47r2\/has_anyone_ever_gotten_structure_needs_cleaning\/#\">\n<div class=\"usertext-body may-blank-within md-container \">\n<div class=\"md\">\n<p>First you need to find files that cause this issue. this is very simple - in ls -l listing they will be shown like<\/p>\n<pre><code>????????? ? ? ? 1.7K Jun  8 13:49 filename\r\n<\/code><\/pre>\n<p>then, you need to run debugfs and delete inode of this file<\/p>\n<pre><code>debugfs -w \/dev\/sda5\r\n<\/code><\/pre>\n<p>-w says that partition will be opened in read-write mode.<\/p>\n<p>In debugfs prompt you need to type<\/p>\n<pre><code>clri path\/to\/file\r\n<\/code><\/pre>\n<p>File path should be absolute for this partition. If your partition mounted to \/mnt and file you need to delete is \/mnt\/folder\/filename, you should use just folder\/filename.<\/p>\n<p>After deleting inodes of all broken files you can leave debugfs and run fsck on partition. It will automatically remove files without inodes and fix your partition.<\/p>\n<hr \/>\n<h2>Depmod Warning!<\/h2>\n<p>If you install any apps that build modules against the kernel, you may come up against the following warnings at the end of the compile. \u00a0This is a result of an option within the kernel that needs to be disabled.<\/p>\n<blockquote>\n<pre>&gt;&gt; Installing (1 of 1) net-firewall\/xtables-addons-2.8::gentoo\r\n * Removing net-firewall\/xtables-addons-2.8 from moduledb.\r\n * Updating module dependencies for 4.8.2-gentoo ...\r\ndepmod: WARNING: \/\/lib\/modules\/4.8.2-gentoo\/xtables_addons\/xt_geoip.ko needs unknown symbol _raw_spin_lock\r\ndepmod: WARNING: \/\/lib\/modules\/4.8.2-gentoo\/xtables_addons\/xt_geoip.ko needs unknown symbol xt_unregister_matches\r\ndepmod: WARNING: \/\/lib\/modules\/4.8.2-gentoo\/xtables_addons\/xt_geoip.ko needs unknown symbol synchronize_sched\r\ndepmod: WARNING: \/\/lib\/modules\/4.8.2-gentoo\/xtables_addons\/xt_geoip.ko needs unknown symbol vfree\r\ndepmod: WARNING: \/\/lib\/modules\/4.8.2-gentoo\/xtables_addons\/xt_geoip.ko needs unknown symbol xt_register_matches\r\ndepmod: WARNING: \/\/lib\/modules\/4.8.2-gentoo\/xtables_addons\/xt_geoip.ko needs unknown symbol vmalloc [ ok ]\r\n * Adding module to moduledb.<\/pre>\n<\/blockquote>\n<p>The fix is to disable the Trim\u00a0option:<\/p>\n<pre>[*] Enable loadable module support \u00a0---&gt;\r\n    [ ] \u00a0 Trim unused exported kernel symbols<\/pre>\n<\/div>\n<\/div>\n<\/form>\n","protected":false},"excerpt":{"rendered":"<p>Structure needs cleaning. First you need to find files that cause this issue. this is very simple - in ls -l listing they will be shown like ????????? ? ? ? 1.7K Jun 8 13:49 filename then, you need to run debugfs and delete inode of this file debugfs -w \/dev\/sda5 -w says that partition &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=1325\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Linux Troubleshooting<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[241,242,18],"class_list":["post-1325","post","type-post","status-publish","format-standard","hentry","category-gentoo","tag-corrupt","tag-file","tag-linux"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1325"}],"version-history":[{"count":4,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1325\/revisions"}],"predecessor-version":[{"id":1441,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1325\/revisions\/1441"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}