which filesystem

which filesystem

Erez D erez0001 at gmail.com
Sun Aug 12 11:25:56 IDT 2012


On Sat, Aug 11, 2012 at 10:28 PM, Nadav Har'El <nyh at math.technion.ac.il>wrote:

> On Sat, Aug 11, 2012, Erez D wrote about "which filesystem":
> > hello
> >
> > i have and external USB hard-drive size 2TB, mounted as ext4. (ubuntu
> 10.10
> > amd64)
> > every time there is a power failure. i need to do a manual fsck on this
> > disk. and this takes around an hour ...
>
> I have a 2 TB disk with ext3, and I don't have anything close to the 1 hour
> boots you report (even one minute looks excessive).
>
> Both ext3 and ext4 are journalling filesystems, meaning that after power
> failures, only a relatively small "journal" of the last modifications
> needs to be replayed, rather than going through the entire disk.
>
> Is it possible your filesystem for some reason has journalling disabled,
> or improperly configured? Try "tune2fs -l" on your filesystem and look
> for suspicious parameters. Look at "Filesystem features" and verify
> there is "has_journal". See that it doesn't force a full fsck every time
> ("Maximum mount count" can very well be -1 and "check interval" 0).
>
> 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.
see below for tun2fs -l output:

erez at h53:~$ sudo tune2fs -l /dev/sdb3
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index
filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              121069568
Block count:              484274688
Reserved block count:     24213734
Free blocks:              231623057
Free inodes:              117872828
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      908
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Filesystem created:       Sat Sep 11 10:16:51 2010
Last mount time:          Sat Aug 11 21:01:37 2012
Last write time:          Sat Aug 11 21:01:37 2012
Mount count:              4
Maximum mount count:      32
Last checked:             Sat Aug 11 13:24:22 2012
Check interval:           15552000 (6 months)
Next check after:         Thu Feb  7 12:24:22 2013
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Journal backup:           inode blocks
erez at h53:~$


>
> --
> Nadav Har'El                        |        Saturday, Aug 11 2012, 24 Av
> 5772
> nyh at math.technion.ac.il
> |-----------------------------------------
> Phone +972-523-790466, ICQ 13349191 |This signature was intentionally left
> http://nadav.harel.org.il           |boring.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20120812/d5c57e86/attachment.html>


More information about the Linux-il mailing list