-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: unknown entry type 0xff #192
Comments
Ejection without clean unmount can ruin FS, unfortunately. Looks like the root directory is damaged. What's your question? If you want to recover data, I'd recommend using something like PhotoRec and then run exfatfsck against the broken FS (you need exfat-utils 1.3.0 for this). If exfatfsck manages to fix the errors, copy data to some other storage and re-make the exFAT FS (mkexfatfs). Anyway some data will be lost. |
OK,Thank you, I downloaded exfat-utils_1.3.0-1_amd64.deb and installed it with dpkg -i, but there is still no way to restore the data. Thank you very much for taking the time to answer my question, thank you very much |
Could you post the log from exfatfsck 1.3.0 run against the broken FS? |
root@localhost:/# exfatfsck -n /dev/sdb1 |
Bad luck :( |
exfatfsck keeps reporting the same number of errors when running it repeatedly, even though it claims to have fixed them: The errors it keeps finding (and fixing?) are: Regards, |
This may happen when write operations fail. Does exfatfsck report any other errors besides "unknown entry type"? |
Not usually, but sometimes I think it says something about a label too long. If it matters, the file system is on a Lenovo 2 TB USB memory stick. |
Hello, let me first describe my use process. I wrote data to the U disk, and then it was full, and there was no space. I used umont, but it didn’t return for a long time. I suspected that the terminal was stuck, and I reopened it. Terminal, df -hl saw that the U disk was not mounted, so I pulled the U disk out of the machine, but when I plugged the U disk into my computer, I found that there was nothing in it, and when I executed the ls command, "ls : reading directory '.': Input/output error", I tried to search for a solution through google, and executed the command "fsck.exfat /dev/sdb1", the result is as follows:
exfatfsck 1.2.8
WARN: volume was not unmounted cleanly.
Checking file system on /dev/sdb1.
File system version 1.0
Sector size 512 bytes
Cluster size 128 KB
Volume size 500 GB
Used space 495 GB
Available space 5509 MB
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
ERROR: unknown entry type 0xff.
Totally 82 directories and 1024 files.
File system checking finished. ERRORS FOUND: 69.
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb1 4095873 4051800 44073 99% /data1
dumpexfat -s /dev/sdb1
Volume serial number 0xe23d71a1
FS version 1.0
Sector size 512
Cluster size 131072
Sectors count 1048575744
Clusters count 4095873
First sector 0
FAT first sector 128
FAT sectors count 32128
First cluster sector 32256
Root directory cluster 7
Volume state 0x0002
FATs count 1
Drive number 0x80
Allocated space 100%
mount.exfat-fuse -d /dev/sdb1 /data1
FUSE exfat 1.2.8
FUSE library version: 2.9.7
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.26
flags=0x001ffffb
max_readahead=0x00020000
INIT: 7.19
flags=0x00000031
max_readahead=0x00020000
max_write=0x00020000
max_background=0
congestion_threshold=0
unique: 1, success, outsize: 40
unique: 170, opcode: GETATTR (3), nodeid: 3, insize: 56, pid: 23107
getattr /H
unique: 170, success, outsize: 120
unique: 171, opcode: OPENDIR (27), nodeid: 3, insize: 48, pid: 23107
unique: 171, success, outsize: 32
unique: 172, opcode: READDIR (28), nodeid: 3, insize: 80, pid: 23107
readdir[0] from 0
ERROR: unknown entry type 0xff.
ERROR: failed to open directory '/H'.
unique: 172, error: -5 (Input/output error), outsize: 16
unique: 173, opcode: RELEASEDIR (29), nodeid: 3, insize: 64, pid: 0
unique: 173, success, outsize: 16
The text was updated successfully, but these errors were encountered: