Ubuntu :: Deleted Photorec Backup Files Taking Up Disk Space?
Mar 13, 2011
I used photorec to recover lost files and it brought up 70gb worth of files, when I was done looking through them I deleted these files. but these files still seem to be taking up my disk space. When I try to access my trash bin with root I get a message that reads...."The folder contents could not be displayed. sorry, could not display all the contents of "trash": operation not supported." if I open my trash bin when I'm not in root, the bin is empty.
My /var/ partition continues to fill up on all my servers, and it is because the logs in /var/log/apache2 or /var/log/mysql are being deleted during log rotate, but their file handles are being held open. Thus, a "du -sh /var/log" shows the correct values, but "df | grep /var" shows something much different.
It seems that the log files rotate, however if I run "lsof | grep deleted" it returns lots of files that are no longer visible in the directory, however refuse to clear themselves off the disk.
The only way I have found to make these log files go away (and thus clear up the disk space on the partition I should have) is to restart either apache or mysql, depending on which process has huge sized log files being held open.
Is it just me, or is this a big flaw in the way linux works, that it can't figure out how to release file handle for a log so the disk space can be reclaimed? This is happening to me a lot lately.
Here is some output from one of my web servers so you can see what I am seeing...
root@web49:~# df -h | grep /var$ Filesystem Size Used Avail Use% Mounted on /dev/sda8 9.2G 6.1G 2.7G 70% /var root@web49:~# du -sh /var
My main storage partition got full, so I'm deleting files to make room. However, df -k keeps reporting no space available on that partition (/disk). Here's the output of the command several minutes apart while another process is deleting a 30G of space:What can I do to make the space available immediately?
I recently made the dumb mistake of using tar to make a backup of my "/" on my "/" when my "/" didn't have near enough space to store the backup. I received a warning message, so I canceled the terminal process and used nautilus to delete what amount of the backup had already been saved. That didn't seem to free up any space on my "/" like it should have, though. In an effort to find any hidden trash files that needed to be deleted, I used this terminal command:
I'm working on a few servers running centos and using postfix. I don't know what the exact problem is, but we are having problems with the disk space being maxed out at 100 gigs. What we think the problem is...is that postfix is either caching or logging all the emails we send out. We sent 250k emails (500kb apiece) over the weekend and we were having trouble with that quantity. It seems some of those email were queued up for retry sending...but we didn't have sufficient disk space for that? Something broke - I'm not sure what.
What I want to do is to find and change the config file that has to do with postfix email retrying - possibly limit this (not sure if this will fix my problem). Or, turn off /limit any way that postfix logs/caches emails so that it won't take up all the disk space when queued up for retry... Again, I'm totally lost here (on both what's going on, and how to fix it). I'm not sure what more information is needed to address this problem
I have around 100 users. I want to take backup of files which are on desktop for every user. My user directory path is -: /home/dr/<user_name>/Desktop
1) Script has to run on a particular time everyday 2) Script has to take backup of all files present in "Desktop" directory 3) Make a tar with name "yyyy-mm-dd-desk-files" 4) Make directory outside "Desktop" with name "Desktop-Backup", if already exist then don't make this folder. 5) The tar have to moved in this folder. 6) Remove the files from "Desktop" directory. (i.e. Desktop should be empty) 7) Mail the status that "Backup Successful"
My backup hard disk is connected by USB cable. After I installed Ubuntu 11.04 the disk had been wiped and a version of Ubuntu installed on it.I had forgotten to disconnect the external disk's usb cable before running the install in case something like this happened.I then just took whatever the installer said regarding partitions: I trusted it;and the installer's manual partition manager is a little too technical to be user-friendly. Mostly, I just trusted the automated partition manager to be making the right decisions for me.
The installer's auto-partition manager said it was erasing two partitions. I thought, oh that must include some sort of swap drive then.The auto-partition manager said it was using 500Gb of space. I thought, well there's more HD space on my desktop than I thought.I recently acquired the machine. It was a hand-down.The installer said do you want to install Ubuntu with, over or beside whatever existing versions there are. I said, over. I wanted a clean install since my attempt at making Ubuntu do an upgrade install had already failed. This was clearly stupid of me. But it was not as stupid as issuing an O/S installer that did what this one did.
The installer completely wiped my external usb backup drive. Not only that, but it installed another instance of Ubuntu on it. The install routine actually installed two instances of Ubuntu 11.04: one on my local HD and one on my now erased external HD.Just to rub salt in the wound, the update manager only updates the version that's running: the version on my internal HD. The version the installer copied over my backup data is redundant.I have fortunately a second backup of most essential data. But the external HD contained data that was not copied elsewhere. It has been permanently erased. It will probably possible to retrieve this data from original sources at a considerable inconvenience. I do not know at this time whether and how much of the data that was erased is now lost forever and what the consequences of the loss would mean.
I'm looking for a free backup solution how work in client-server in both environments Linux(server) and Windows(client). in my case, i want to give a disk space quota in my Linux server for each remote windows client.
I have BackInTime backing up my computer to a RAID cluster. The problem is that BackInTime doesn't have an option to limit disk space used. I also use this drive as a fileserver, and need to be able to keep some space open for that.
Is there a way that I can limit the amount of space a specific folder can take up? Alternately, is it possible to create a disk image that will only take up the amount of space in the image, but can automatically expand to a certain size? It would work similar to the Mac SpaseBundle format.
When i try to install UBUNTU 11.04 it shows me the warning that there is no OS on my hard disk.But i have windows XP SP3 & UBUNTU 10.04 on my hard disk. Will all the files be deleted on my hard disk containing Windows XP if i install UBUNTU 11.04? How can i solve the problem?
I just used photorec to recover files from a 40GB laptop HDD. I saved the files to my video folder in my Home folder. Now my home folder is full. When I login to my computer, in about 30 second I get this error:
Quote: Oh no! Something has gone wrong. A problem has occurred and the system cant recover. Now I tried logging out, restarting, etc etc. Still get the error. I also did
I cant delete the files from photorec because the are protected. And I cant start up firefox or thunderbird
I was doing some data recovery with Photorec and by the time I was done I have over 700 folders (recup_dir.).The only solution I was able to apply was the one posted by pljvaldez on this site dated 04-09-08, 09:01 AM. After doing the same thing for at least 70 times I decided to ask, so, is there anyone that knows how to delete multiple folders at the same time.
running ubuntu 8.10 amd64 on my HP intel 2.26ghz dual core processor, 320gb hdd and 4gb ram. My main problem is that when I dual booted ubuntu onto my laptop, I had vista already installed, so I only set aside 20GB of hard disk space for ubuntu, which seems like more than enough to me. What's going on is that it says I have used all my space and only have one GB left, when the only thing I have on my computer are word files and necessary installs like flash player, compiz, avant, etc.When trying to hunt down what was using all my space, first I checked out the disk usage analyzer (some pics from here in):theres my hdd with 1/19 gb remaining here's a breakdown of my home folder, showing that it's not using very much at allhere's my filesystem, now we can see that all the space is being used in the folder: /var
I seem to be running low on disk space on my linux server. 'df' shows about 82% usage on a stock CentOS install with sendmail. I routinely delete old email directories, but for some reason, I stay pretty high in disk usage. Is there a fancy little bash script or something I could run that would find the biggest files and I could go get rid of them?
I started getting errors about running out of disk space in root this morning. I hunted up what's taking all the space; var/log is 39GB (Ubuntu is installed on a 50G partition.) It's specific files that live in that directory, not subfolders. The files are:
I use Linux. I coded a screenshot program some time ago and now I have 9 GIG of screenshots, 60000 JPEGs, most of them look pretty similar, and I have 300 MB of disk space remaining.
What are some good ways to start to compress batches of them (or all of them) in the background given the limited space? The problem with compressing the folder all at once is that I wouldn't have enough disk space for that. It seems the process needs to be broken down into chunks. So maybe something like: Get a list of all the files Add a chunk of the files (say, 20) to a compressed archive. Once it is done and saved successfully, delete the chunk of files
I do use a virtualization environment using VirtualBox,Qemu. Many a times I have to format my laptop then in such situations installing again the previous programs and making same changes to the configurations is very painful. Is there some way I can make some sort of backup which I just need to install on my existing system and get all previous things immediately installed without going to install and setting of a lot of other applications and settings.
I have ubuntu install on a 500 gb drive. It says i have 409 gb free. I've been able to account for 40 gb, but when I try to check the folder proc, it lists 128 tb. How much space is this folder actually taking up?
I have a 320 GB HDD I use for data apart from the regular HDD for the OS. Of course when you go to format it, it's actually 298GB. So I made a 248 GB partition, ext4 for ubuntu data, and a 50GB partition for Windows.
It shows as 248.01 GiB in size in GParted, with 217.27 GiB used. 30.75GiB unused.
When I go to Computer, right click on the partition, click Properties, it says Total capacity 244.1 GB, 18.3 GB free, 225.8 GB Used.
1) Why does GParted show it as 248GB and the Properties as 244 GB?
2) More importantly: Why does Gparted show I've used 217.27 GBs, while the Properties show I've used 225.8 GB? What's going on there?
I have and IBM e-Server, with 256RAM, however when I force the fedora installation to be perfomr in grapgical mode, Anaconda return a message that say that I dont have enoght Memory to perform the graphical installation. To my uderstanding It requiere 192MB of Memeory for a graphical installation.
What I'm doing wrong?, or is that the vmlinuz is booting into RAM and taking most of the space?
When I reinstalled ubuntu I chose to encrypt my home folder (something that i've never done before) but now that I know it doesn't really make a difference i'd like to decrypt it because the .encryptfs folder is taking up so much space i'm getting notifications every time I log in.