[Top][All Lists]

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

Re: UNDELETION EXT3 workaround

From: Bauke Jan Douma
Subject: Re: UNDELETION EXT3 workaround
Date: Mon, 18 Feb 2008 07:59:06 +0100
User-agent: Thunderbird (X11/20071031)

Vincent wrote on 18-02-08 02:11:
The Linux EXT3 file system zero's the file pointers when you delete a
file.  The EXT2-Undeletion command does not exist with-in EXT3.  The
following is a more modern solution to the problem.

alias rm="mv --force --target-directory=$HOME/.Trash/"
alias rmdir="mv --force --target-directory=$HOME/.Trash/"

Removed files go into GNOME trash, and the icon even show papers in the
trash.  You can click on the trash icon anytime you want to delete or
un-delete a file or directory from the Trash.

I installed the following aliases in the aliases section of ~/.bashrc
for each user, except /root, where I specified

as root should never login into GNOME.

Now even if one has an accidental deletion of a file or entire directory
of files, one can simply copy the files back into place in the future,
from either the console or the trash icon on the task bar.

In a world with 500 GIG hard drives, these aliases should probably be
installed in all new ubuntu installations automatically, and advanced
users can remove them if they so desire.  The OS is not user friendly
with-out an undeletion or recovery method.

As has been pointed out here more than once, this runs the risk,
in a different place and time, of the user not being OS-friendly.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]