:: Re: [DNG] slashes in FAT file names
Page principale
Supprimer ce message
Répondre à ce message
Auteur: karl
Date:  
À: dng
Sujet: Re: [DNG] slashes in FAT file names
Hendrik:
> 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:

...
> > > > Rename them.
> > > >
> > > > 1. 'ls -i' #Gets the inode number.
> > > > 2. 'find . -inum "inode-number-from-ls -i" -exec mv {} "newfilename" \;'

...
> 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 

...

Perhaps you can see them if you tell ls to not to sort the entries:
ls -iU1

If that doesn't work, you could possible use the example program in
man getdents.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden