<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>Problem in e2fsck ? read error in journal inode</TITLE>
</HEAD>
<BODY >
<DIV>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2> Hi<BR>
<BR>
I'm experiencing some problems on a harddisk (it has crashed for no known reason),<BR>
and in pursuit of getting some of the data out of the disk I'm learning to use the<BR>
e2fs progs package.<BR>
<BR>
Origianlly I used version 1.38, but after experiencing segfaults in e2fsck -which now is solved,<BR>
I upgraded to 1.39, but now I have hit another problem (on another partition):<BR>
<BR>
The partition was formatted as ext3, and debugfs / dumpfs showed that the feature 'has_journal' was present<BR>
(as expected).<BR>
The e2fsck command gave the following:<BR>
<BR>
# e2fsck -B4096 -b32768  /dev/hda11<BR>
e2fsck 1.39 (29-May-2006)<BR>
e2fsck: Attempt to read block from filesystem resulted in short read while checking ext3 journal for /var<BR>
<BR>
So it seemed like a problem in the journal, as I could not find any option to e2fsck to tell<BR>
it to skip applying (and reading) the journal, I set the filesystem festure 'has_jounal' off, using debugfs:<BR>
<BR>
# debugfs -b4096 -s32768 -w /dev/hda11<BR>
debugfs 1.39 (29-May-2006)<BR>
debugfs:   feature -has_journal<BR>
Filesystem features: filetype sparse_super<BR>
debugfs:   show_super_stats -h<BR>
Filesystem volume name:   /var<BR>
Last mounted on:          <not available><BR>
Filesystem UUID:          2e8920a2-0460-4a87-b729-af812327fce7<BR>
Filesystem magic number:  0xEF53<BR>
Filesystem revision #:    1 (dynamic)<BR>
Filesystem features:      filetype sparse_super<BR>
Default mount options:    (none)<BR>
Filesystem state:         not clean<BR>
Errors behavior:          Continue<BR>
 :<BR>
<BR>
Now trying e2fsck again did not make any difference:<BR>
<BR>
# e2fsck -B4096 -b32768 -y /dev/hda11<BR>
e2fsck 1.39 (29-May-2006)<BR>
e2fsck: Attempt to read block from filesystem resulted in short read while checking ext3 journal for /var<BR>
<BR>
I also tried to get tune2fs to turn off the journalling, but got the response:<BR>
<BR>
 First turn 'has_journal' back using debugfs:<BR>
<BR>
# debugfs -b4096 -s32768 -w /dev/hda11<BR>
debugfs 1.39 (29-May-2006)<BR>
debugfs:  feature has_journal<BR>
Filesystem features: has_journal filetype sparse_super<BR>
debugfs:  quit<BR>
<BR>
 Then use tune2fs:<BR>
<BR>
# tune2fs -O ^has_journal  /dev/hda11<BR>
tune2fs 1.39 (29-May-2006)<BR>
tune2fs: Attempt to read block from filesystem resulted in short read while reading journal inode<BR>
<BR>
So my questios are:<BR>
1) How can I make e2fsck skip reading a faulty journal (in my case there might be a HW error on the block) ?<BR>
2) What makes e2fsck act on a journal (is it because journal inode is set) ?<BR>
3) Shouldn't e2fsck act on wether the filesystem features (and in case of no 'has_journal' just ignore<BR>
   any journal information - of course it still need to make sure the inode used for the journal isn't<BR>
   used by anybody else) ?<BR>
<BR>
It was a bit long, if you need any more info - please let me know<BR>
One problem is that I have problems reading the raw partition 'dev/hda11' - I tried<BR>
to 'dd' it but it failed...<BR>
<BR>
Regards<BR>
<BR>
Erik Haukjær Andersen<BR>
<BR>
</FONT>
</P>

</DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"> </DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"> </DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New">--</DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New">This e-mail and any attachments are confidential and may also be legally<BR>privileged and/or copyright material of Intec Telecom Systems PLC (or its<BR>affiliated companies). If you are not an intended or authorised recipient<BR>of this e-mail or have received it in error, please delete it immediately<BR>and notify the sender by e-mail. In such a case, reading, reproducing,<BR>printing or further dissemination of this e-mail or its contents is strictly<BR>prohibited and may be unlawful.<BR>Intec Telecom Systems PLC does not represent or warrant that an attachment<BR>hereto is free from computer viruses or other defects. The opinions<BR>expressed in this e-mail and any attachments may be those of the author and<BR>are not necessarily those of Intec Telecom Systems PLC.<BR></DIV></BODY></HTML>