Questions tagged [deleted-files]
The deleted-files tag has no usage guidance.
121
questions
0
votes
1
answer
29
views
remove files after x hours but ignore hidden folder/files
I have a mounted a folder to a seedbox. and in the folder i use syncthing. so it creates a " .stfolder" which is used for syncthing . basically i am having trouble finding a script to run ...
0
votes
0
answers
39
views
Recover files from a tmpfs?
How do I recover files from a tmpfs?
Some people say to use Volatility, but Python 2 Volatility doesn't have any Linux modules, and I don't see where to do file recovery in the Python 3 Volatility ...
2
votes
1
answer
188
views
Restore deleted contents of a text file
Due to this bug, the content of one of my source files was deleted. I searched a lot and found that I can read the raw data on the storage device with the dd command, and I can find the address of ...
2
votes
1
answer
49
views
`rsync` deletes all after input/output error mapping
I'm running a rsync command between two servers with the following command:
rsync -auv -P --delete --delete-excluded --stats --progress -e "ssh -i ~/.ssh/$ssh_pkey -p $port -l $user" $...
0
votes
0
answers
19
views
Restore a deleted file from a folder in AWS EC2 Instance [duplicate]
I'm a total newbie to the world of Linux/UNIX and I have the following situation:
I was doing a deployment of changes to an AWS EC2 instance, which as I understand is pretty much a server that is ...
0
votes
1
answer
350
views
mkdir gives "No space left on device" message but sudo mkdir works [duplicate]
When I try to use mkdir test in /home/, I get mkdir: cannot create directory ‘test’: No space left on device. I've deleted over 1Gb of files and restarted some processes that were using deleted files, ...
1
vote
0
answers
182
views
File deletion bypasses trash bin on Btrfs subvolumes
Nautilus trash do not move file to trash bin on btrfs file system
instead it deletes them permanently. Thunar seems to do the same thing,
and it seems related to lower level library implementation of ...
-1
votes
1
answer
81
views
Tab completion error: bash: cannot create temp file for here-document: No space left on device
I am absolutely new to Linux.
I downloaded 50GB of data on the server disk via SSH.
Then I deleted them using midnight commander.
Now, the tab-completion doesn't work, and it is giving me the ...
-2
votes
1
answer
1k
views
How to recover files deleted by rm -vr?
When looking up a way to uninstall minecraft using console commands, the very first result on google told me to use the command: rm -vr ~/ .minecraft/*.
I thought, oh well, I'm specifying the ...
2
votes
0
answers
167
views
Undelete a specific folder with text files on a LUKS-encrypted, btrfs-formatted partition on GNU/Linux
How can I "undelete" a folder full of files on a GNU/LINUX system, where the partition is LUKS-encrypted and formatted using btrfs *?
On my Debian Stable (currently Bullseye) machine I have ...
0
votes
0
answers
86
views
df shows that no space left, but du disagree
df -h show that I'm almost out of space on my / (output is truncated):
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3,2G 2,2M 3,2G 1% ...
2
votes
1
answer
36
views
Ensuring no files were deleted from directory at a certain time
I accidentally started an rm -rf on a large directory that I was working in. The directory contains, among other things, a data directory containing a number of subdirectories that each contain ...
1
vote
0
answers
129
views
ext4magic segfault
I am trying to restore a directory I accidentally deleted which contained many files. Ironically this was a fat finger error while trying to set up a backup! I am following the instructions here:
The ...
33
votes
3
answers
4k
views
I just deleted everything in my home directory. How? And why are some files still there?
Never thought this would happen to me, but there you go. ¯\_(ツ)_/¯
I ran a build script from a repository inside the wrong directory without looking at the source first. Here's the script Scripts/...
0
votes
1
answer
189
views
linux /proc/mounts deleted, how to fix?
I have no idea how it happened but /proc/mounts is gone
root# cat /proc/mounts
cat: /proc/mounts: No such file or directory
I can no long mount NFS shares anymore either.
# mount -t nfs 10.10.10.10:/...
7
votes
7
answers
3k
views
How to recover “deleted” files in Linux on an NTFS filesystem (files originally from macOS)
My girlfriend has a external hard disk with 10 years+ of photos, documents and more. A lot of these files originate from her old iPhone 5 and her MacBook. The hard disk itself is NTFS Format. Since ...
1
vote
0
answers
189
views
Why does redshift use the deleted file /memfd:pulseaudio?
I ran a rkhunter scan (sudo rkhunter -c --enable all --disable none --rwo) and it showed me that redshift is accessing a deleted file.
I'd like to find out why it's doing so and why it would need ...
3
votes
1
answer
460
views
Is ~/.local/share/Trash/files used by GNOME only for deleted files and not by rm command?
I am using RHEL8, and I see the directory - ~/.local/share/Trash/files
And there were so many files in it. Looking at the name and files present there it gave me an intuition that it is similar to ...
2
votes
1
answer
1k
views
Does anyone know the way to undelete file on ZFS?
Is there any way to undelete file on ZFS.
I overwrote JPG file with the scanned image.
Unfortunately, I didn't take snapshot.
But ZFS uses the CoW mechanism, overwritten data may still alive, I think.
...
1
vote
2
answers
180
views
Find command in linux and delete, but test with print, give no results
I'm trying to find some files on my NAS and then delete the files/folders that's more then 5 days old. I can use the find command as:
find /volume1/docker/UV/videos -type f -print
And then i get all ...
1
vote
1
answer
1k
views
Restore deleted version of nginx configuration
I applied the following wrong Sed command to my nginx configuration:
sed 's/php7.2-fpm/php7.4-fpm/g' /etc/nginx/sites-enabled/default > /etc/nginx/sites-enabled/default
And the entire file is gone....
0
votes
1
answer
407
views
100% disk usage. what to do?
root@vps559:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 960M 0 960M 0% /dev
tmpfs 195M 648K 194M 1% /run
/dev/sda1 20G 20G 82M 100% /
...
1
vote
1
answer
39
views
Is it possible to read a .sh that was deleted from file system but is being executed? [duplicate]
I've received a project that some dude did and it's on production stage. But that guy had some issues with project managers and other team members (bad attitude, being an ass.. etc). Intentionally he ...
0
votes
0
answers
86
views
how to delete a file physically from disk in linux so that there is no way it can be recovered?
I am trying to delete a file in linux, (Ubuntu 20.04). As per my understanding, when we delete a file, the inode and directory entry structures are modified first and the file is actually deleted at a ...
-4
votes
1
answer
369
views
I need a script to delete files that are more than a certain size, in centos 7 [closed]
Given the name and size of a file, if the files size is more then the given size it should be deleted.
1
vote
0
answers
35
views
Copy a file with zero links but still open in some process
I like to copy this file:
# lsof +L -p XXX
Anime4KCP 78674 evar 14w REG 1,6 101187628 0 8682526126 /Users/evar/Base/_Code/Misc/Anime4KCPP/bin/output/...
0
votes
1
answer
423
views
I accidentally deleted var directory in my linux opensuse system. I can't acces the GUI as var/lib/gdm also got deleted
Message shown:
Server authorization directory (daemon/ServeAuthDir) is set to /var/lib/gdm but this doesn't exist.
0
votes
1
answer
661
views
What is the impact of deleting /etc/rc.d and /etc/rc0.d?
I am relatively new to black-screen Os-es (*nix)
I was given few commands to run on Linux:
remove etc/rc.d/rc0.d remove only logscan, procscan and gpp
I got confused and did:
rm -rf rc.d
rm -rf rc0....
-2
votes
1
answer
106
views
after deleting some files. space is not freed
after deleting some files. space is not freed.
by running the command df -h the free space is always 0.
/dev/sda3 233G 224G 0 100% /
even after rebooting the system
output df -h;ls -l ...
0
votes
1
answer
855
views
Recovering files on CentOS 7
I would like to know if it is possible to recover files that I have deleted?
I have VPS with CentOS 7 and if it is possible I would like to look for (and recover) deleted files by their file ...
1
vote
3
answers
550
views
Accidentally deleted /usr/ directory in CentOS 8
Accidentally /usr/ directory got deleted, in Cent OS 8. For recovering CentOS, I have found this link which needs live CentOS 8 installed in USB drive. However CentOS 8 doesn't have live ISO release ...
1
vote
2
answers
1k
views
/var/log/messages growing indefinately because rsyslog won't let it be deleted
I had an issue with /var running low on space despite it only appearing to have only 2 gigs of files allocated on the 5 gig partition. I determined the issue was that /var/log/messages was deleted but ...
3
votes
1
answer
220
views
Problems with apt in Raspbian where /var content has been removed or corrupt
Apparently on a production server there has been some problem and someone has deleted the contents of the /var folder.
This has caused several errors that I have been solving with various services ...
-1
votes
1
answer
337
views
Restore deleted images (png/gif/jpg/jpeg)
I inadvertently deleted images from my Linux filesystem today with classic command rm -f.
All deleted images were in one single folder. Not all my images were in this folder, it was only very specific ...
0
votes
2
answers
91
views
Delete one type of file from specific directory however not from subdirectory
I am currently working on HP-UX and have a cron job which runs every morning which deletes file older than certain number of days based on retention policy. Recently I added a sub directory at the ...
1
vote
1
answer
248
views
Recovery software for corrupted files when running a linux system?
I am looking for options regarding recovering deleted files (don't recall if corrupted applied).
Filesystem for the corrupted files are VFAT-formatted on a USB, though I run a Linux system (but can ...
1
vote
1
answer
395
views
Use rsync to mirror source for website deployment, but not delete selected files in destination
I have been working on this for several days and no matter what I do I can't get it to work. I've read practically every Q&A on StackExchange network about rsync but still not found the answer.
...
0
votes
2
answers
409
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?
7
votes
2
answers
439
views
On Mac OSX, how can I open a deleted file which is still open by a process?
b2-osx108v8-01:~ bamboo$ lsof -p 264
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
<lines removed>
java 264 bamboo 20w REG 1,2 240906 ...
7
votes
2
answers
2k
views
What happens when the current directory is deleted?
In the first terminal A, I create a directory, enter the directory, and create a file:
$ mkdir test
$ cd test
$ touch file1.txt
$ ls
file1.txt
Then in another terminal B, I delete the directory:
$ ...
1
vote
1
answer
133
views
Is there a way to completely delete a previously deleted file without formatting the whole drive?
I am working on a server with others and I want to completely delete files which were previously deleted using 'rm'. I cannot format the server disk as others share it with me. Is it effective to ...
0
votes
1
answer
152
views
rm -rf destroyed directories of the files set to be deleted (multiple arguments)
In a testing environment I executed:
rm -rf /var/www/html/${domain} /etc/nginx/sites-available/${domain} /etc/nginx/sites-enabled/${domain}
The result was that html, sites-available and sites-...
2
votes
1
answer
2k
views
How to undelete a file on a btrfs filesystem
Which software and commands are required, to undelete a file on a btrfs filesystem?
1
vote
1
answer
612
views
Removing speed using `srm` and the Gutmann method is too low
I need to delete some files using Gutmann method. Deleting files using
srm -rvz took for me more than 16 hours and after that I canceled it.
After that I do a test: I tried to delete a 5GB file ...
2
votes
1
answer
84
views
Accidentally trashed large file
I accidentally moved an entire directory of ~100GB to trash. I was trying to place it in bookmarks but dragged it into trash. It's there in the trash. But
when i try to restore I run out of space ...
0
votes
0
answers
504
views
Recovering files deleted by rsync
I entered the command
rsync -rltpHS --delete-excluded rsync://ftp.gnu.org/gnu/ /your/dir/
with /your/dir/ as my home directory, which resulted in all of my files being deleted and replaced with the ...
-4
votes
1
answer
19k
views
How to Check the location of a deleted file in CentOS Linux distribution? [duplicate]
I have deleted a file and now I want it on the same place from where I have deleted? How I can check that deleted file in my system from CLI?
I tried find command but end up nothing.
2
votes
1
answer
2k
views
Deleted files still in use: memfd:pulseaudio(pulsaudi), memfd:xshmfence(Xorg), /tmp/ib...(mysqld)
So I'm running a freshly installed Debian 9.1 with KDE and some tool showed me that these files have been deleted but are still in use:
memfd:pulseaudio(pulsaudi)
memfd:xshmfence(Xorg)
/tmp/ibAbCdEf(...
1
vote
2
answers
960
views
Delete files in Linux unrecoverable
What's the ideal command or software to erase files in Linux so they are unrecoverable?
A kernel command or any other command or software that would delete the files and make them unrecoverable
0
votes
1
answer
399
views
What constitutes a Scrub "Pass"?
The Scrub utility on Linux can accept different methods of scrubbing. These allow for different types and orders of 'passes'. For example, the 4-pass DoD 5220.22-M section 8-306 procedure is a 4-pass ...