Skip to content

new sequence : fat . for exfat SD card with dos windows file names limitations #136

Open
john-peterson wants to merge 1 commit into
dharple:mainfrom
john-peterson:fat
Open

new sequence : fat . for exfat SD card with dos windows file names limitations #136
john-peterson wants to merge 1 commit into
dharple:mainfrom
john-peterson:fat

Conversation

@john-peterson
Copy link
Copy Markdown

@john-peterson john-peterson commented Jan 27, 2026

new sequence : fat . for exfat SD card with dos windows file names limitations
if you have book files with book titles as filenames and an SD card you will constantly need this to copy to SD card after down load

book titles often contain these letters especially colon

when you get this message

cp -v \"* $sdd/books/
'"#*:<>?\|' -> '/storage/075C-9000/books/"#*:<>?\|'
cp: cannot create regular file '/storage/075C-9000/books/"#*:<>?\|': Operation not permitted

you probably have an exfat SD card

moint|ack exfat
/dev/block/vold/public:179,1 on /mnt/media_rw/075C-9000 type exfat (rw,dirsync,nosuid,nodev,noexec,noatime,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,iocharset=utf8,errors=remount-ro)

test

vim ~/.detoxrc
sequence fat {
	safe {
		filename "/data/data/com.termux/files/home/etc/fat.tbl";
	};
};
printf '"#*:<>?\|'|xxd -g1
touch '"#*:<>?\|'
detox -Lv
detox -n -s fat \"*

perl rename will accomplish the same thing

cpan -D File::Replace
cpanm --info File::Replace
perl-rename -v -n 'y,"#*:<>?\\,^@^;();;,' \"*

back ground

exfat became the standard SD card format some time after 2006

exFAT has been adopted by the SD Association as the default file system for SDXC and SDUC cards larger than 32 GB.

and carried over this ancient limitation to the present world of Linux computers that never had this lazy solution and found a way to avoid it from the beginning

this design limitation appeared in CPM in 70s and was carried over to disk OS in 1981 in great haste with no time for better solution . this is a way to inspect such an old system

dosemu -dumb
C:\>dir d:\?osem*

one short cut in the design was to forbid all letters that caused annoying bugs and development delays

todo aria2 patch

I need detox or perl rename because aria2c don't have any windows flags for SD cards

I will patch aria2 so I can down load directly to my SD card

@john-peterson john-peterson changed the title new fat sequence for file allocation table file name limitations * " / \ < > : | ? new sequence : fat . for exfat SD card with dos windows file names limitations Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant