:: Re: [DNG] slashes in FAT file names
Kezdőlap
Delete this message
Reply to this message
Szerző: Hendrik Boom
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] slashes in FAT file names
On Sat, Dec 22, 2018 at 02:42:13PM -0800, Rick Moen wrote:
> Quoting Hendrik Boom (hendrik@???):
>
> > On Fri, Dec 21, 2018 at 10:24:24PM -0800, Rick Moen wrote:
> > > Quoting Hendrik Boom (hendrik@???):
> > >
> > > > I have a 32GiB microSD card an am reying to read it on my Devuan system.
> > > > I munted it with a simpel mount /dev/sdb1 /nedia/hendrik/
> > > >
> > > > It reads almost everything fine, except for a few files whose names
> > > > contain '/' characters. I can handle the other horribly weird
> > > > characters in file names -- emacs Rename in the directory
> > > > editor works just fine. But the names containing '/'s even have
> > > > emacs stymied.
> > >
> > > Rename them.
> > >
> > > 1. 'ls -i' #Gets the inode number.
> > > 2. 'find . -inum "inode-number-from-ls -i" -exec mv {} "newfilename" \;'
> > >
> > > Man, I hate files with pathological filenames, and some of the
> > > other-OS-originating examples are among the worst.
> >
> > Do VFAT files systems have inode numbers?
>
> The only way Unix ever dereferences files is by inode number, so I think
> (speculate) that the Linux vfat filesystem layer allocates them to
> observed files. Anyway, I'd give the inode trick a try.


Yes, I see inode numbers. Unfortunately, the files with slashes in
their names have question marks for their inode numbers.

hendrik@midwinter:/media/hendrik/FC30-3DA9/Pure disco$ ls -i
ls: cannot access '07/TRA~1.MP3': No such file or directory
ls: cannot access '18/TRA~1.MP3': No such file or directory
2522 @  2523 ?  2526 ?                    ? 07/TRA~1.MP3       2516 
16-TRA~1.M?3                 2520 21 - Traɣk 21.mp3
2522 @  2521 ?  2524 ?                 2508 08-URA~1.MP3       2517 
17-TRA~1.MP3                 2525 Ç
2522 @  2521 ?  2502 01-TRA~1.MP│      2509 09=TRA~1.MP3          ? 
18/TRA~1.MP3                 2525 Ç
2522 @  2521 ?  2504 03 - Track 3.mp3  2503 0" - Track 2.mp䀳  2518 19 
- Ŕrack 19.mp3䀀????????  2510 q0-TRA~1.MP3
2523 ?  2527 ?  2505 04,TRA~1.MP3      2512 12!- Track 12.mŰ3  2515 
1%-TRA~1.MP3
2523 ?  2526 ?  2506 05  Track 5.mp3   2513 13-TRA~1.MP3       2511 !1 
- Track 11.mp3ࠀ????????
2523 ?  2526 ?  2507 06 - Track 6.mq3  2514 14 - Track 14.mp3  2519 
20-T╥A~1.MP3


-- hendrik