Re: deleting files with linux
From: Whoever (nobody@devnull.none)
Date: 04/22/03
- Next message: Whoever: "Re: Recent ptrace exploit effected by chroot?"
- Previous message: G. Wolfe Woodbury: "Re: deleting files with linux"
- In reply to: G. Wolfe Woodbury: "Re: deleting files with linux"
- Next in thread: G. Wolfe Woodbury: "Re: deleting files with linux"
- Reply: G. Wolfe Woodbury: "Re: deleting files with linux"
- Reply: Chris Lowth: "Re: deleting files with linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Whoever <nobody@devnull.none> Date: Mon, 21 Apr 2003 22:41:47 GMT
On Mon, 21 Apr 2003, G. Wolfe Woodbury wrote:
> Sebastián Francisco <secobau@teleco.upv.es> shaped electrons to say:
> > Do you know how linux delete files? Does it actually remove them, or by the
> > contrary, they remain intact? Is there any Eraser version for linux?
>
> The "standard" Linux filesystem (ext2/ext3) remove files by removing the
> pointer to the 'i-node' in the directory file. The i-node is then
> released for re-use, and the disk blocks in use by the inode are added
> back to the list of free blocks.
>
> There is no easy way for the file to be "un-deleted" under Linux, but
> there are some versions of "rm" that have been changed to move the file
> to a trash folder and then deleted at intervals.
>
> If you want to securely erase the file with zero's or other data before
> deleteing the file there are secure rm programs (generally known as
> shredders) or you can use available system commands:
>
> ls -l <filename> #to get the length of the file
> dd if=/dev/zero of=<filename> count=<length> #to write zero's
> dd if=/dev/urandom of=<filename> count=<length> #to write random data bytes
> rm <filename>
>
> This will generally be enough to remove the contents of the file from
> the disk drive blocks.
Are you sure that this mathod will ensure that the same space (as used by
the original file) on the disk will be overwritten? Or will it just create
a new location filled with random data and then point the directory to
that new location, leaving the old data in place on the disk?
>
>
- Next message: Whoever: "Re: Recent ptrace exploit effected by chroot?"
- Previous message: G. Wolfe Woodbury: "Re: deleting files with linux"
- In reply to: G. Wolfe Woodbury: "Re: deleting files with linux"
- Next in thread: G. Wolfe Woodbury: "Re: deleting files with linux"
- Reply: G. Wolfe Woodbury: "Re: deleting files with linux"
- Reply: Chris Lowth: "Re: deleting files with linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|