osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does mv on a FAT filesystem actually rename or does it copy and delete?


On Sat, Feb 03, 2018 at 09:14:39AM -0500, Little Girl wrote:
> Hey there,
> 
> Chris Green wrote:
> 
> > I want to rename some picture files on a mounted digital camera
> > filesystem.  It is a VFAT filesystem.
> > 
> > If I rename one of the files using 'mv <xxxx.yyy>' will the file
> > *actually* be renamed by changing the directory entry only or will
> > mv copy the file to one with the new name and then delete the old
> > one? 
> 
> This page might be useful:
> 
> https://unix.stackexchange.com/questions/149795/move-preserves-ownership-of-source-files-not-allowing-writes 
> 

It doesn't really address my issue which is whether mv will work the
same on FAT/VFAT as it does on 'native' Linux filesystems.

-- 
Chris Green