Tuesday, April 16, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 406  / 3 Years ago, tue, july 27, 2021, 9:15:42

I need to completely delete the contents of the folder /data



Obviously I launched rm-rf * but it's been running from a long time (I have many large files for a total of nearly 1 TB).
Given that the folder in question is a mount point for an array of disks in a RAID5 and, in essence, is a disk (/dev/md0) is there a faster way to delete all the data without destroying the array?



Thank you,
Greetings to all!


More From » files

 Answers
5

Assuming you are not concerned about someone using recovery tools to get the data back ( and if you are you shouldn't be using rm ), then just format the disk.



mkfs.ext4 /dev/md0


Also it sounds like you are currently using ext3, which takes quite a while to delete large files. In the future, you should use ext4 which does not have this problem.


[#31644] Tuesday, July 27, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gavgenerati

Total Points: 120
Total Questions: 126
Total Answers: 119

Location: Marshall Islands
Member since Wed, Feb 9, 2022
2 Years ago
gavgenerati questions
Wed, Jun 22, 22, 17:24, 2 Years ago
Fri, Jul 30, 21, 04:32, 3 Years ago
Fri, Jan 14, 22, 14:20, 2 Years ago
Tue, Jul 27, 21, 19:05, 3 Years ago
;