[comp.sys.amiga.tech] Help: MV'ed directory into child-dir now its gone!

pm0@springs.cis.ufl.edu (Patrick Martin) (01/27/91)

HELP!  I inadvertently found a bug in the MV command found on FF219.

I had the following directory structure:

Work:Emulations (dir)
   CPM (dir)
   File1.CPM
   File2.CPM
   .
   .
   .
   Filen.CPM

Work:Emulations/CPM (dir)
   Drive_A (Dir)

I used the mv command to move all the CPM files to Work:emulations/cpm/drive_a
by using the command:

mv work:emulations/#?CPM#? work:emulations/CPM/drive_a

And it moved the CPM directory into the child directory (I assume)
and now it is totally inaccessible!!!

I would be most appreciative if someone could help me out on this one.
I don't want to have to backup all my files and then format the hard
disk partition.

Thanks in advance,

Pat (I'll be more careful with my wildcards next time) Martin

v089pfrb@ubvmsd.cc.buffalo.edu (Jeffrey C Murphy) (01/28/91)

In article <26514@uflorida.cis.ufl.EDU>, pm0@springs.cis.ufl.edu (Patrick Martin) writes...
> [much delete...]

 Um, This was mentioned in an Amiga World issue (I'll have to check though).
It's not a bug in MV. Its a bug in amigados. Amigados allows you to move a
directory into one of its own subdir's, which it should not allow this to 
happen. However, it does and unfortunately kills everything in the directory.
I'm pretty sure there is no way to easily correct this (however try 
DiskSalvage and as a last resort DiskDoctor) at least AmigaWorld (i think)
gave no solution (but said to avoid doing that)

 I'll check my back issues for the exact acticle. Until then try DiskSalvage.

Jeff M @ SUNY at Buffalo
v089pfrb@ubvmsd

pm0@springs.cis.ufl.edu (Patrick Martin) (01/28/91)

>It's not a bug in MV. Its a bug in amigados. Amigados allows you to move a
>directory into one of its own subdir's, which it should not allow this to 
>happen. However, it does and unfortunately kills everything in the directory.

> I'll check my back issues for the exact acticle. Until then try DiskSalvage.

>Jeff M @ SUNY at Buffalo

Thanks, I finally did resort to DIskSalv.  It was not fun having to run it
8 times to make sure all the important stuff got saved.  DiskSalv was
able to recognize the Directory loop (Very good program).

I was not sure if the files had been effectively deleted or if the blocks
were still allocated to the system but inaccessible.  IE: I was not sure
if I had lost a meg of disk space.

Later,
Pat