Opened 13 years ago

Closed 3 years ago

#8049 closed bug (not reproducible)

[BFS] Filesystem corrupt

Reported by: deejam Owned by: axeld
Priority: normal Milestone: R1
Component: File Systems/BFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

My BFS filesystem is corrupt.

My computer crashed during an installation. After that, I cannot install Haiku to the filesystem. Installer aborts after file 178 with an error message saying that an error occurred and that the installation could not be completed. The error is "Bad data".

Haiku boots ok.

Below are the output of Installer, checkfs and the syslog from when Installer was running.

GCC2Hybrid hrev42764

Installer output:

~> Installer

ScanDisksPartitions source partitions begin
SourceVisitor::Visit(BPartition *) : /dev/disk/ata/0/master/raw
SourceVisitor::Visit(BPartition *) : Haiku
SourceVisitor::Visit(BPartition *) : /dev/disk/atapi/1/master/raw
SourceVisitor::Visit(BPartition *) : Haiku

ScanDisksPartitions target partitions begin
TargetVisitor::Visit(BPartition *) : /dev/disk/ata/0/master/raw
TargetVisitor::Visit(BPartition *) : Haiku
/boot: fs_open_index_dir(): (-2147459058) Operation not supported
ignoring 'boot.catalog'.
ignoring 'haiku-boot-floppy.image'.
ignoring '_packages_'.
found .zip package: apr-1.4.5-x86-gcc2-2011-08-02.zip
50 items in 4153276 bytes
found .zip package: apr-util-1.3.12-x86-gcc2-2011-08-02.zip
44 items in 2198267 bytes
found .zip package: autoconf-2.68-r1a3-x86-gcc2-2011-05-17.zip
61 items in 3103001 bytes
found .zip package: automake-1.11.1-r1a3-x86-gcc2-2011-05-17.zip
131 items in 2226532 bytes
found .zip package: expat-2.0.1-r1a3-x86-gcc2-2011-05-20.zip
10 items in 756201 bytes
found .zip package: libtool-2.4-r1a3-x86-gcc2-2011-05-17.zip
67 items in 2540592 bytes
found .zip package: perl-5.10.1-r1a3-x86-gcc2-2011-05-17.zip
1734 items in 33712827 bytes
found .zip package: subversion-1.6.17-x86-gcc2-2011-08-02.zip
126 items in 26015402 bytes
found .zip package: texinfo-4.13a-r1a3-x86-gcc2-2011-05-18.zip
30 items in 2963831 bytes
462840906 bytes to write in 12984 files
ignoring 'boot.catalog'.
17.08 MB written (17.08 MB/s)

Installer syslog:

~> tail -f /var/log/syslog -n 0
USER: failed to create the required index for attribute BEOS:LOCALE_LANGUAGE (General system error) USER: failed to create the required index for attribute BEOS:LOCALE_SIGNATURE (General system error) USER: Image /boot/system/apps/Installer (address 22dc38) requested catalog with mimetype x-vnd.Haiku-Installer
KERN: bfs: bfs_create_index:2077: File or Directory already exists
KERN: Last message repeated 5 times.
KERN: bfs: insertDuplicate: Invalid array[2] size in fragment 6148096 == 1591687!
KERN: bfs: Insert:1342: Bad data
KERN: bfs: Update:278: Bad data
KERN: bfs: Create:2741: Bad data

Checkfs output:

~> checkfs /boot/
cp-tree.h (inode = 2100144), some blocks weren't allocated
limits.h (inode = 1590798), some blocks weren't allocated
ssp.h (inode = 1590794), some blocks weren't allocated
stdio.h (inode = 1590795), some blocks weren't allocated
string.h (inode = 1590796), some blocks weren't allocated
unistd.h (inode = 1590797), some blocks weren't allocated
priority_queue_base_dispatch.hpp (inode = 1590789), some blocks weren't allocated
standard_policies.hpp (inode = 1590790), some blocks weren't allocated
tree_trace_base.hpp (inode = 1590791), some blocks weren't allocated
type_utils.hpp (inode = 1590793), some blocks weren't allocated
types_traits.hpp (inode = 1590792), some blocks weren't allocated
standards.html (inode = 4224682), has blocks already set
Weakref.html (inode = 4720128), has blocks already set
Whitespace.html (inode = 4720129), has blocks already set
Word.html (inode = 4720130), has blocks already set
Xtensa-Automatic-Alignment.html (inode = 4720135), has blocks already set
Xtensa-Branch-Relaxation.html (inode = 4720136), has blocks already set
Xtensa-Call-Relaxation.html (inode = 4720137), has blocks already set
Xtensa-Directives.html (inode = 4720138), has blocks already set
Xtensa-Immediate-Relaxation.html (inode = 4720139), has blocks already set
Xtensa-Opcodes.html (inode = 4720140), has blocks already set
Xtensa-Optimizations.html (inode = 4720133), has blocks already set
Xtensa-Options.html (inode = 4720132), has blocks already set
Xtensa-Relaxation.html (inode = 4720131), has blocks already set
Xtensa_002dDependent.html (inode = 4720134), has blocks already set
strip (inode = 4224679), has blocks already set
crti.o (inode = 3150015), has blocks already set
crtn.o (inode = 3150016), has blocks already set
haiku_version_glue.o (inode = 3150017), has blocks already set
init_term_dyn.o (inode = 3150018), has blocks already set
liblocalestub.a (inode = 3150032), has blocks already set
libposix_error_mapper.a (inode = 3150042), has blocks already set
exception (inode = 1048587), has blocks already set
float.h (inode = 1049942), has blocks already set
iso646.h (inode = 1050043), has blocks already set
va-i860.h (inode = 1053383), has blocks already set
va-i960.h (inode = 1054177), has blocks already set
va-m32r.h (inode = 1054179), has blocks already set
va-m88k.h (inode = 1054186), has blocks already set
va-mips.h (inode = 1054188), has blocks already set
va-mn10200.h (inode = 1054192), has blocks already set
va-mn10300.h (inode = 1054198), has blocks already set
va-pa.h (inode = 1054234), has blocks already set
va-ppc.h (inode = 1054624), has blocks already set
va-pyr.h (inode = 1054637), has blocks already set
va-sh.h (inode = 1054665), has blocks already set
va-sparc.h (inode = 1055136), has blocks already set
va-spur.h (inode = 1055144), has blocks already set
va-v850.h (inode = 1055236), has blocks already set
Simple-Example.html (inode = 4719589), has blocks already set
Source-Code-Reference.html (inode = 4719590), has blocks already set
Symbols.html (inode = 4719591), has blocks already set
TI-COFF.html (inode = 4719592), has blocks already set
VERSION.html (inode = 4719593), has blocks already set
WIN32.html (inode = 4719594), has blocks already set
Xtensa.html (inode = 4719595), has blocks already set
DBX-Options.html (inode = 4727643), has blocks already set
Debugging-Info.html (inode = 4727659), has blocks already set
Debugging-Options.html (inode = 4727654), has blocks already set
Deprecated-Features.html (inode = 4727674), has blocks already set
Directory-Options.html (inode = 4727676), has blocks already set
Dispatch-Tables.html (inode = 4727678), has blocks already set
        151441 nodes checked,
        132 blocks not allocated,
        461 blocks already set,
        0 blocks could be freed

        files           120891
        directories     30246
        attributes      173
        attr. dirs      100
        indices         31

        direct block runs               149945 (3.09 GiB)
        indirect block runs             315 (in 14 array blocks, 35.46 MiB)
        double indirect block runs      0 (in 0 array blocks, 0 byte)
~>

See http://www.freelists.org/post/haiku/Installer-error

Change History (2)

comment:1 by waddlesplash, 6 years ago

Does this still happen?

comment:2 by tqh, 3 years ago

Resolution: not reproducible
Status: newclosed

No answer in three years.

Note: See TracTickets for help on using tickets.