Error allocating 1 contiguous block(s)

Help
mani
2005-02-21
2012-11-28
  • mani
    mani
    2005-02-21

    Hello,

    I have a corrupted ext2 filesystem and try to fix it with e2fsck, but unfortunatly fsck fail... Any Idee how I can fix my partition with debugfs manualy? If I mount the partition readonly, I can access all my files. Unfortunatly the partiotion is a RAID5 with 600GB and I have no other disks where I can copy all the files.

    Here is the fsck results.

    [root@not ~]# /usr/sbin/e2fsck /dev/md0
    e2fsck 1.36 (05-Feb-2005)
    Resize inode not valid.  Recreate<y>? yes

    /dev/md0 contains a file system with errors, check forced.
    Pass 1: Checking inodes, blocks, and sizes
    Group 232's block bitmap (7602176) is bad.  Relocate<y>? yes

    Group 358's block bitmap (11730944) is bad.  Relocate<y>? yes

    Group 676's block bitmap (22151168) is bad.  Relocate<y>? yes

    Group 2168's block bitmap (71041024) is bad.  Relocate<y>? yes

    Group 2102's block bitmap (68878336) is bad.  Relocate<y>? yes

    Group 3652's block bitmap (119668736) is bad.  Relocate<y>? yes

    Programming error?  block #23888883 claimed for no reason in process_bad_block.
    Programming error?  block #71664627 claimed for no reason in process_bad_block.
    Programming error?  block #78676979 claimed for no reason in process_bad_block.
    Programming error?  block #102401011 claimed for no reason in process_bad_block.

    Error allocating 1 contiguous block(s) in block group 232 for block bitmap: Could not allocate block in ext2 filesystem
    Error allocating 1 contiguous block(s) in block group 358 for block bitmap: Could not allocate block in ext2 filesystem
    Error allocating 1 contiguous block(s) in block group 676 for block bitmap: Could not allocate block in ext2 filesystem
    Error allocating 1 contiguous block(s) in block group 2102 for block bitmap: Could not allocate block in ext2 filesystem
    Error allocating 1 contiguous block(s) in block group 2168 for block bitmap: Could not allocate block in ext2 filesystem
    Error allocating 1 contiguous block(s) in block group 3652 for block bitmap: Could not allocate block in ext2 filesystem
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    Block bitmap differences:  +1544
    Fix<y>? yes

    /dev/md0: ***** FILE SYSTEM WAS MODIFIED *****

    /dev/md0: ********** WARNING: Filesystem still has errors **********

    /dev/md0: 14228/74694656 files (11.5% non-contiguous), 141706206/149361360 blocks

    regards,
    magic