<div><div class="gmail_quote">On Wed, Jun 2, 2010 at 10:47 PM, Sean Crago <span dir="ltr">&lt;<a href="mailto:cragos@gmail.com">cragos@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If the list is coming back to life, then I&#39;ve got a weird but hopefully simple problem for you:<div><br></div><div>I&#39;ve got a Synology DiskStation DS209 NAS that&#39;s giving me erroneous free space readings, or erroneous du output. On installation, it dedicated 2.4GB to its root partition /dev/md0 and according to du -cx / is using less than 587192K of that space. Unfortunately, however, df says it&#39;s full. </div>

<div><div><br></div><div>bash-3.2# df -k</div><div>Filesystem           1K-blocks      Used Available Use% Mounted on</div><div>rootfs                 2451064   2425764         0 100% /</div><div>/dev/root              2451064   2425764         0 100% /</div>

</div><div><br></div><div><div>bash-3.2# mount</div><div>/dev/md0 on / type ext3 (rw,data=ordered)</div></div><div><br></div><div>As a result, any number of apps from the stock firmware are prevented from running and those that do hobble along spam the logs to the point of uselessness w/complaints. The catch? I can&#39;t find a safe way to fsck it. Conventional shutdown commands to force a fsck aren&#39;t an option/are just plain missing on the box. Using tune2fs to set the check interval ridiculously low to force a check upon reboot similarly didn&#39;t work. Unfortunately, the ARM-based architecture also doesn&#39;t support booting to a removable USB device, knocking out the only other safe way I can think of to fsck it. Pop new firmware on to start from scratch? I&#39;d love to at this point, but the firmware installation process requires 1024 megs of free disk space.</div>

<div><br></div><div>Thoughts?  Any ideas on how to safely get it cleaned up and accurately reporting its free space while the root filesystem is live and booted?</div><div>
<br></div><font color="#888888"><div>-Sean</div>
</font></blockquote></div><br></div><div>Oh, and I really doubt this changes the solution, but for full disclosure&#39;s sake:<div><br></div><div>Last change I made to the system was to install the ipkg for mlocate, which stores its small 500k db on a different partition. Also, power situation is abysmal here, and I&#39;m not convinced it&#39;s shutting down properly when it detects that it&#39;s on UPS power.<br>
</div></div>