Unknown entry type 0xe2 when mounting

656 views
Skip to first unread message

Griffin Smith

unread,
Aug 29, 2014, 12:12:26 PM8/29/14
to ex...@googlegroups.com

Hi,

An exfat drive that I had safely unmounted is now refusing to mount with
"unknown entry type 0xe2". I'm currently running through the drive with
testdisk to see if I can recover the data off of it, but I'm wondering
if we can investigate more into the issue to see what might have caused
it originally / what can be done to prevent it happening / what can be
done in the driver to more robustly handle these sorts of errors.

Happy to provide any more information if necessary.


--

Griffin Smith
wildgr...@gmail.com

Griffin Smith

unread,
Aug 29, 2014, 12:31:30 PM8/29/14
to ex...@googlegroups.com
More diagnostic information:

I changed the error printing line in libexfat/node.c to the following:

exfat_error("unknown entry type 0x%hhx at %p", entry->type, entry);

And commented out the `goto error;` line. Mounting now prints out the
following output:

ERROR: unknown entry type 0xe2 at 0x7f609c169950.
ERROR: unknown entry type 0x80 at 0x7f609c16a650.
ERROR: unknown entry type 0x90 at 0x7f609c16aa90.
ERROR: unknown entry type 0xe2 at 0x7f609c16af10.
ERROR: unknown entry type 0x80 at 0x7f609c144c10.
ERROR: unknown entry type 0xe2 at 0x7f609c147470.
ERROR: unknown entry type 0x80 at 0x7f609c149470.
ERROR: unknown entry type 0xa6 at 0x7f609c1518d0.
ERROR: unknown entry type 0x99 at 0x7f609c162710.
ERROR: unknown entry type 0x80 at 0x7f609c14a4f0.
ERROR: unknown entry type 0x99 at 0x7f609c14aed0.
ERROR: unknown entry type 0xb2 at 0x7f609c1541d0.
ERROR: unknown entry type 0xe2 at 0x7f609c1655f0.
ERROR: unknown entry type 0x9c at 0x7f609c166c10.
ERROR: unknown entry type 0x80 at 0x7f609c16b5f0.
ERROR: unknown entry type 0xe2 at 0x7f609c16b8b0.
ERROR: unknown entry type 0x99 at 0x7f609c16c350.
ERROR: unknown entry type 0xc2 at 0x7f609c17b450.
ERROR: unknown entry type 0xc2 at 0x7f609c17b570.
ERROR: unknown entry type 0xc2 at 0x7f609c17cbb0.
ERROR: unknown entry type 0xc2 at 0x7f609c17d3b0.
ERROR: unknown entry type 0xb2 at 0x7f609c17d730.
ERROR: unknown entry type 0xc2 at 0x7f609c17ec70.
ERROR: unknown entry type 0xc2 at 0x7f609c17f350.
ERROR: unknown entry type 0xc2 at 0x7f609c17f5f0.
ERROR: unknown entry type 0xb2 at 0x7f609c140010.
ERROR: unknown entry type 0xb2 at 0x7f609c140ab0.
ERROR: unknown entry type 0xb2 at 0x7f609c141790.
ERROR: unknown entry type 0xe2 at 0x7f609c1479d0.
ERROR: unknown entry type 0x80 at 0x7f609c1485d0.
ERROR: unknown entry type 0x99 at 0x7f609c155390.
ERROR: unknown entry type 0x99 at 0x7f609c156df0.
ERROR: unknown entry type 0x96 at 0x7f609c1574b0.
ERROR: unknown entry type 0xe2 at 0x7f609c1574d0.
ERROR: unknown entry type 0x96 at 0x7f609c1574f0.
ERROR: unknown entry type 0x96 at 0x7f609c157530.
ERROR: unknown entry type 0x88 at 0x7f609c157590.
ERROR: unknown entry type 0x84 at 0x7f609c157770.
ERROR: unknown entry type 0xe2 at 0x7f609c1607f0.
ERROR: unknown entry type 0xe2 at 0x7f609c161230.
ERROR: unknown entry type 0xc3 at 0x7f609c147110.
ERROR: unknown entry type 0x99 at 0x7f609c14ca50.
ERROR: unknown entry type 0x99 at 0x7f609c15f610.
ERROR: unknown entry type 0xe3 at 0x7f609c178330.
ERROR: too long label (227 chars).

Don't know if this is helpful at all, just figured I'd gather as much
information about the fs as possible.
--

Griffin Smith
wildgr...@gmail.com
(720) 206-7218

Andrew Nayenko

unread,
Aug 30, 2014, 3:18:50 AM8/30/14
to ex...@googlegroups.com, wildgr...@gmail.com
Hi,

This does not look like a valid directory. Please checkout the latest
source (svn co http://exfat.googlecode.com/svn/trunk exfat), apply the
attached patch, build (no need to install), run fsck/exfatfsck against
the faulty volume and send me the output.
Andrew Nayenko <res...@gmail.com>
exfat-debug-bad-entry.patch

anton.f...@gmail.com

unread,
Jun 9, 2015, 7:43:57 AM6/9/15
to ex...@googlegroups.com, wildgr...@gmail.com
Hi,
I've got the same problem -- error ERROR: unknown entry type 0xc2 while mounting exfat SDXC card.
I recompiled most recent sources with patch from this discussion. Please, check attached logs.
entry_0xc2.log

Andrew Nayenko

unread,
Jun 10, 2015, 2:16:28 AM6/10/15
to anton.f...@gmail.com, ex...@googlegroups.com
Hi Anton,

Your case is different: the root directory in general looks valid except
this 0xe2 entry. Could you please describe in detail what you've done
with this memory card before it became unreadable by fuse-exfat?
Especially whether you've used it in a digital camera or some other
gadget. I need steps to reproduce this issue.

It would be absolutely awesome it you managed to send me a dump of this
card (the first megabyte would be sufficient I guess).

Thanks for reporting this issue!
>>>> wildgr...@gmail.com <javascript:>
>>>
>>
>> --
>> Andrew Nayenko <res...@gmail.com <javascript:>>
>>
>

--
Andrew Nayenko <res...@gmail.com>
Reply all
Reply to author
Forward
0 new messages