Re: Why mv have no '-R'



Janis Papanagnou <Janis_Papanagnou@xxxxxxxxxxx> writes:

If the directory entry 'file2' is the only "pointer" to the file (i.e.
no additional "hard links" set and no process accessing the file) then
the file file2 *will* be removed.


Yes.

To be precise, (and perhaps more information that you really need to
know) the *contents* of the file will remain. However, the system will
also have marked those disk blocks as "available for use" and another
program may grab them and fill up the blocks with new data.

But that's going into the internals of the disk structure, and most
operating systems behave the same way. Some disk recovery tools can
recover data that have been "deleted" this way.

If you ever get rid of a computer or disk drive, simply "deleting" the
files doesn't really wipe the data. That's why some people use disk
wipe programs that write over the entire disk with 1's and 0's.

I hear about people who buy used computers off eBay and discover all
sorts of credit card numbers, etc. on the disks. Then again sometimes
you don't even need a disk recovery program - the files were never
deleted.


.



Relevant Pages

  • Re: HARD DRIVE HELP! I erased 62 gigs of stuff I cant lose!!!!!
    ... At least that way you would loose no more than 1 days work - which on balance is better than all 62 Gigs! ... I think your best bet is to get onto Google and search for companies that specialise in disk recovery. ... I've had two hard disks go on my laptop, but that was due to the disk motor going bang, but the recovery company was able to get everything off the disk. ...
    (rec.audio.pro)
  • Re: macbook data recovery
    ... Just accessing the disk doesn't do anything ... (unless the heads are crashing, but by then it's pretty hopeless anyway) ... corruption on a disk than ploughing heads. ... Do you have any idea how much disk recovery actually costs, ...
    (uk.comp.sys.mac)
  • Re: macbook data recovery
    ... Just accessing the disk doesn't do anything ... corruption on a disk than ploughing heads. ... Do you have any idea how much disk recovery actually costs, ...
    (uk.comp.sys.mac)
  • Scratched CDs,DVDs,Games.
    ... to be the experts in disk recovery so i tried them with the worst disk ... played perfectly (i rekcon they swapped the disk with a new one it was ... Prev by Date: ...
    (uk.media.dvd)
  • Re: Kernel SCM saga..
    ... should it be) and we were compressing lots a little files, ... fewer disk blocks than this. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)