:: Re: [DNG] slashes in FAT file names
Top Page
Delete this message
Reply to this message
Author: Rick Moen
Date:  
To: dng
Subject: Re: [DNG] slashes in FAT file names
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.