<div dir="ltr"><br><br><div class="gmail_quote">On Sat, Aug 11, 2012 at 10:28 PM, Nadav Har'El <span dir="ltr"><<a href="mailto:nyh@math.technion.ac.il" target="_blank">nyh@math.technion.ac.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Aug 11, 2012, Erez D wrote about "which filesystem":<br>
<div class="im">> hello<br>
><br>
> i have and external USB hard-drive size 2TB, mounted as ext4. (ubuntu 10.10<br>
> amd64)<br>
> every time there is a power failure. i need to do a manual fsck on this<br>
> disk. and this takes around an hour ...<br>
<br>
</div>I have a 2 TB disk with ext3, and I don't have anything close to the 1 hour<br>
boots you report (even one minute looks excessive).<br>
<br>
Both ext3 and ext4 are journalling filesystems, meaning that after power<br>
failures, only a relatively small "journal" of the last modifications<br>
needs to be replayed, rather than going through the entire disk.<br>
<br>
Is it possible your filesystem for some reason has journalling disabled,<br>
or improperly configured? Try "tune2fs -l" on your filesystem and look<br>
for suspicious parameters. Look at "Filesystem features" and verify<br>
there is "has_journal". See that it doesn't force a full fsck every time<br>
("Maximum mount count" can very well be -1 and "check interval" 0).<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>it fails fsck on boot, so i have to mount without it, and later do a manual fsck ( without -a or -p ) and this takes around an hour.<br>see below for tun2fs -l output:<br>
<br>erez@h53:~$ sudo tune2fs -l /dev/sdb3<br>tune2fs 1.41.12 (17-May-2010)<br>Filesystem volume name: <none><br>Last mounted on: <not available><br>Filesystem magic number: 0xEF53<br>Filesystem revision #: 1 (dynamic)<br>
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file<br>Filesystem flags: signed_directory_hash<br>Default mount options: (none)<br>Filesystem state: clean<br>
Errors behavior: Continue<br>Filesystem OS type: Linux<br>Inode count: 121069568<br>Block count: 484274688<br>Reserved block count: 24213734<br>Free blocks: 231623057<br>
Free inodes: 117872828<br>First block: 0<br>Block size: 4096<br>Fragment size: 4096<br>Reserved GDT blocks: 908<br>Blocks per group: 32768<br>Fragments per group: 32768<br>
Inodes per group: 8192<br>Inode blocks per group: 512<br>Filesystem created: Sat Sep 11 10:16:51 2010<br>Last mount time: Sat Aug 11 21:01:37 2012<br>Last write time: Sat Aug 11 21:01:37 2012<br>
Mount count: 4<br>Maximum mount count: 32<br>Last checked: Sat Aug 11 13:24:22 2012<br>Check interval: 15552000 (6 months)<br>Next check after: Thu Feb 7 12:24:22 2013<br>
Reserved blocks uid: 0 (user root)<br>
Reserved blocks gid: 0 (group root)<br>First inode: 11<br>Inode size: 256<br>Required extra isize: 28<br>Desired extra isize: 28<br>Journal inode: 8<br>Default directory hash: half_md4<br>
Journal backup: inode blocks<br>erez@h53:~$<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
--<br>
Nadav Har'El | Saturday, Aug 11 2012, 24 Av 5772<br>
<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a> |-----------------------------------------<br>
Phone <a href="tel:%2B972-523-790466" value="+972523790466">+972-523-790466</a>, ICQ 13349191 |This signature was intentionally left<br>
<a href="http://nadav.harel.org.il" target="_blank">http://nadav.harel.org.il</a> |boring.<br>
</font></span></blockquote></div><br></div>