Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

secure wiping in BTRFS filesystem ?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

secure wiping in BTRFS filesystem ?

#1 Post by bester69 »

Hi,
Can anyone of you put some light in this subject, how to do to wipe files from a btrfs filesytem?

(wipe, sfill, shred, dd,..) I think most of them should work as long as there's not a taken snapshot, but im not sure about it...


Now, im using snaphots as a shrindding method, I'm taking a btrfs snapshot before adding files, then to wipe thoses files, I rollback to the previously snapshot, and then, i delete the subvolume with the files to be wiped, so this way (subvolume deleted) should prevent any information to be recovered,
and finally, i shrink the free filesystem space which should contain deleted subvolume (sfill -fvl /), but im not sure if this is enought..
(i'd like need to know if this method can be hacked, and files recovered) :?:
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: secure wiping in BTRFS filesystem ?

#2 Post by edbarx »

The crucial question to ask yourself is: does the disk's microcontroller delete everything I command it to delete? If you don't know the answer for sure, you cannot be rationally confident any software will delete everything. Somewhere, I read that some manufacturers make disks that do not erase everything, but I must be sincere to admit that I don't know that this was a joke.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: secure wiping in BTRFS filesystem ?

#3 Post by pylkko »

The btrfs code base is based on ext4, it is similar in many respects. Subvolumes are like files. But that does not even matter as if you overwrite the disk, then it cannot be recovered (albeit for major players like nation states usign creative means like firmware hacking, but let's just leave that aside for now). So if you dd over the disk space it does not matter whether the data is in btrfs or ext4 or even fat32. But I am not sure I undersatnd what you are asking and maybe I am not reponding to your concern?

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: secure wiping in BTRFS filesystem ?

#4 Post by dasein »

pylkko wrote:if you dd over the disk space it does not matter whether the data is in btrfs or ext4 or even fat32.
+1

Precisely correct; everything else is irrelevant.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: secure wiping in BTRFS filesystem ?

#5 Post by Head_on_a_Stick »

deadbang

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: secure wiping in BTRFS filesystem ?

#6 Post by bester69 »

pylkko wrote:The btrfs code base is based on ext4, it is similar in many respects. Subvolumes are like files. But that does not even matter as if you overwrite the disk, then it cannot be recovered (albeit for major players like nation states usign creative means like firmware hacking, but let's just leave that aside for now). So if you dd over the disk space it does not matter whether the data is in btrfs or ext4 or even fat32. But I am not sure I undersatnd what you are asking and maybe I am not reponding to your concern?
ok,
So, readings all of your posts, We can conclude i was right.

As long as there arent any snapshot with the file we wish to erase, we can use any wipping regular method.
So that, we should ensure as well, the snapshots are also shredding if they contained the files to erase (sfill -fvl / from subvolume 0), to prevent any snapshot can be undeleted, just in case.


Thanks a lot. :)
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply