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

Re: Question about "mv" operation.



Le mardi 04 août 2015 à 08:49 -0400, James Montgomery a écrit :
> On Tue, Aug 4, 2015 at 4:11 AM, Magicloud Magiclouds
> <magicloud.magiclouds@gmail.com> wrote:
> > Hi,
> >
> > Say I am moving a file between two harddisks. Both filesystems are Ext4.
> > During the operation, I cut off the power. Then boot the host, and fix the
> > filesystems.
> >
> > Now, I see in both locations, there are the file. My question is, is it safe
> > to remove file in dest, and move to it again from src?
> >
> One way to be completely sure is to compare the hash of the two files
> with SHA or MD5 and ensure they match.
> 
> 

>From what I understood, there is a lot of files. And more importantly,
the operation was interrupted, so there is a part of the source that is
not in the destination.

I think saving the current destination, removing it, and doing again the
whole move is the easiest and safest solution.


Reply to: