[Solved] NTFS Disk / Non-Latin folder names

Hello, it's me again!

Router is Archer C7 V2. OpenWrt is 18.06.1.

In this set-up, I wanted to use the router as Media server. I have an external 1 TB HDD with my media files. It's NTFS; I work mostly on Windows and can't change the file system to a Unix-friendly one.

Therefore, after setting up USB support as per https://openwrt.org/docs/guide-user/storage/usb-installing, I skipped the creating partition thing. System is already recognizing the partition. I got kmod-fs-ntfs and ntfs-3g installed. I got the partition mounted to /HP, samba and minidlna installed and setup. I can access the samba share form my PC as well as from WinSCP, and I can also watch media from TV.

The issue, however, is that I noticed some media are not available on the TV. I though it was a media server/client thing, but tracing the issue back I found out that those missing folders are not shown in Samba, or WinSCP. Listing the contents of the folder in SSH I got:

> root@OpenWrt:/HP/Media# ls ./"مسلسلات"
> ls: ./مسلسلات/الشهد والدموع: No such file or directory
> ls: ./مسلسلات/الطوفان: No such file or directory
> ls: ./مسلسلات/القاهرة والناس: No such file or directory
> ls: ./مسلسلات/القيصر: No such file or directory
> ls: ./مسلسلات/الكبريت الأحمر: No such file or directory
> ls: ./مسلسلات/المال والبنون: No such file or directory
> ls: ./مسلسلات/المشربية: No such file or directory
> ls: ./مسلسلات/الميزان: No such file or directory
> ls: ./مسلسلات/الوتد: No such file or directory
> ls: ./مسلسلات/بين عالمين: No such file or directory
> ls: ./مسلسلات/حواري بوخاريست: No such file or directory
> ls: ./مسلسلات/خالتي صفية والدير: No such file or directory
> ls: ./مسلسلات/دائرة الاشتباه: No such file or directory
> ls: ./مسلسلات/دموع في عيون وقحة: No such file or directory
> ls: ./مسلسلات/ذئاب الجبل: No such file or directory
> ls: ./مسلسلات/رأفت الهجان: No such file or directory
> ls: ./مسلسلات/زيزينيا: No such file or directory
> ls: ./مسلسلات/طاقة نور: No such file or directory
> ls: ./مسلسلات/ظرف أسود: No such file or directory
> ls: ./مسلسلات/فوق السحاب: No such file or directory
> ls: ./مسلسلات/في اللالا لاند: No such file or directory
> ls: ./مسلسلات/قلب ميت: No such file or directory
> ls: ./مسلسلات/كلبش: No such file or directory
> ls: ./مسلسلات/لعبة إبليس: No such file or directory
> ls: ./مسلسلات/لعنة كارما: No such file or directory
> ls: ./مسلسلات/ليالي الحلمية: No such file or directory
> ls: ./مسلسلات/مارد الجبل: No such file or directory
> ls: ./مسلسلات/ملح الأرض: No such file or directory
> ls: ./مسلسلات/مملكة الجبل: No such file or directory
> ls: ./مسلسلات/نجن لا نزرع الشوك: No such file or directory
> ls: ./مسلسلات/ومن الذي لا يحب فاطمة: No such file or directory
> أرض النعام             أيوب                        الحقيقة والسراب
> أرض جو                     اختيار إجباري       الخروج
> أسرار                      الثعلب                    الخروج من المأزق
> أمر واقع                 الحساب يجمع           الرحلة
> أوبرا عايدة           الحفار

As you may guess, the ones "found", at the bottom of the list are the ones that show up in SMB or DLNA. the others with the error are the missing ones.

I tried to make sense of what's shown or what's not, but I couldn't. It could be the first few ones that are shown (alphabetically), but then I moved the all of the shown one (except one) and restarted the router, expecting that more may show up instead, but I got only the one I didn't move.

I couldn't make sense of a particular character or path length that causes the issue.

So I don't know if that's an NTFS issue or character issue. anything I could try? Thanks.

Connect the drive to Windows and run as Administrator:

chkdsk %DRIVE_LABEL%: /r /f
1 Like

Makes perfect sense. I reconnected the disk to Windows machine and the folders aren't there. But they were there before I connected the disk to the router without any problems--that's probably why file system or disk corruption didn't cross my mind.

Thanks @vgaetera.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.