Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shred]

The tag has no usage guidance.

1
vote
0answers
47 views

How to wipe a partition quickly with value zero? [duplicate]

I want to wipe a partition quickly.I search the answer in website. such as: dd if=/dev/zero of=/dev/sda1 bs=16M count=96 shred -v -z -n 1 /dev/sda1 But: All the commandline,will overwrite with ...
0
votes
2answers
55 views

What does it mean to overwrite a file but keep it?

The wipe tool has the option -k Keep files, i.e. do not remove() them after overwriting. What does that mean not to remove a file that was ... well... wiped?
0
votes
2answers
970 views

If I shred /dev/sda, do I delete partitions?

If I am wiping my /dev/sda harddrive, do I need to first repartition it (for example, with GParted), or will shred /dev/sda wipe the partition table too?
0
votes
2answers
172 views

Is the Secure Erase desired after the shred command? If so, how to do it properly?

I am about to sell a bunch of hard drives (not an SSHD or an SSD, all are normal HDDs). As I wanted to overwrite it literally 10 times, I was unsure how to execute a pure pv overwrite * 10, so I came ...
1
vote
0answers
1k views

External Drive Recognized by `ls dev` but “no medium found”

I am trying to shred an old external hard drive using Linux Mint 17 (an Ubuntu-based distro) and a Vantec IDE/SATA to USB 3.0 adapter. The system recognizes the presence of the drive. Here is the ...
1
vote
1answer
163 views

Making a Deleted folder Impossible to Recover [duplicate]

Suppose you visit a bad location on earth with your laptop. Thieves are about to break in and steal your laptop. So you run : rm -rf /folder but what if thieves have very advanced tools to recover ...
4
votes
1answer
144 views

How secure is data removal with rm followed by zerofree on the partition?

Instead of using srm, wipe or shred, one may simple unlink the file and run zerofree on the involved partition: mount /dev/sda1 /mnt rm /mnt/confidential_file umount /mnt zerofree /dev/sda1 How safe ...
3
votes
3answers
2k views

Secure delete folder CentOS 7

How do I securely delete a folder, with all of its contents, so it cannot be recovered? I have tried the shred command but it only works with files and not folders. I have also found out that there ...
0
votes
1answer
146 views

SMART test passed but I can see Hard Disk Broken Sectors in Disk Assesment

I have used shred on my HDD, but in the middle of that, I used Ctrl+C combination accidentally. After that I noticed bad sectors on Disk Assessment. I am using Linux mint 18 as my OS. Using fsck, I ...
3
votes
1answer
2k views

How to securely delete data after rm

I deleted a file I meant to shred first. $ rm somefile instead of $ shred somefile $ rm somefile Is there a way to shred a file after 'rm'-ing it?
1
vote
1answer
85 views

Wipe files from an external hard drive but not empty space

I'm using the following command to wipe an external drive. sudo shred -v -z -n 1 /dev/sdb Is it possible to wipe an external drive of the files and not empty space? So it would overwrite where there ...
2
votes
1answer
870 views

data recovery after partial shred

well i issued the following command: shred -v /dev/sdb. However I wanted to shred /dev/sda. I realized my mistake after about 2gb had been shredded (out of 2.7tb raid volume). what is the ...
1
vote
2answers
954 views

Automatically shred LUKS partition upon X failed decryption attempts?

Is it possible to set up a bootloader that automatically begins shredding the header.img file and then the encrypted partition itself upon X failed attempts at decrypting the partition? If this does ...
1
vote
2answers
535 views

How to delete the whole root with rm rf and shred together?

My task is simple: I need to able to delete the whole root which i can do with rm-rf ./* but the problem here is HFS recovery can get back the data since it is not actually deleted from disk if i ...
2
votes
2answers
208 views

Did I unintentionally delete my entire hard drive?

A while ago I backed up a Linux folder onto a Windows disk drive I had lying around. Recently I was scanning through those files when I realized that I had unintentionally copied over many unwanted ...
2
votes
1answer
528 views

What can I (not) shred from root while it is mounted?

I am performing a test migration from old server to new one. Part of the procedure involves cleaning up the old server of any traces of passwords, php scripts and custom configurations while remotely ...
5
votes
3answers
2k views

How to securely delete a directory without leaving a trace?

I already know that using shred will overwrite my files in such a way that leaves them unrecoverable. However shred can't be used to hide directories. Error Message: failed to open for writing: Is ...
3
votes
3answers
303 views

How can I shred a git repository, reasonably fast?

I'm interested in accurately removing a git repository in a reasonable time. But it takes quite a while to do so. Here, I have a small test repo where the .git folder is < 5MiB. $ du -ac ~/tmp/....
2
votes
2answers
218 views

Shredding an external HDD

How do I shred the data on an external HDD? I am trying shred "/media/me/New Volume/" but I get failed to open for writing: Is a directory. Why?
6
votes
3answers
738 views

Effectivity of shred on different file systems

man shred warns that the command is not useful on file systems that don't overwrite in-place. I don't have much knowledge about the current and upcoming file systems, but I would suspect that many of ...