Ubuntu :: Do Not Regain Space After Deleting File?
Feb 10, 2011
I am using Ubuntu 10.10 and 10.04 on two different computers.I have the same problem with both .... when I delete a file on my hard drive or a removable drive I dont get the space back even after I empty the trash.The file is gone and deleted but its as if its only hidden from me seeing it and still sitting on my drive.For example when I have files on a thumb drive and I delete them and try and put new files on there it will tell me I dont have enough disk space even though all files have been deleted, the only way for me to get the disk space back is to format the drive.I have now realized I have the same problem with my hard drives, I delete files but I dont get any space back, eventually I will have a full hard drive but no files on there
the method for freeing up space by deleting old kernels is made to sound very simple: go into Synaptic, select the outdated kernels, mark for complete removal, and Apply. Easy. But . . . when I mark a particular kernel for removal, Synaptic also wants to remove a lot of other things, some of which do not bear version numbers and seem generic. I am, to put it mildly, very leery of just telling it to go ahead, lest I end up losing things I should have kept and having a dead or at least crippled box.
Say, for example, that I mark for Complete Removal the line linux-image-2.6.22-15-generic; when I go to Apply that one deletion, I get a laundry list of to-die files that includes:
There is one directory in /oracle partition in test server which i use to delete that dir after copying in the same location with diff file/dir name. Like this i did so many times.evrytime i m deleting but the /oracle partition space is reducing by 1.5 or 2gb after deleting dirs of 80gb.Directory size is 80GB and partition size 400GB.plz let me knw with steps, is it requires to do De-fragmentation?
I have connected an another hard disk to my computer and mounted its drives. when I delete the files from second hard disk it is not increasing the free space. only 1.3 GB is left on that drive of second hard disk.
After running photorec I went from having ~30 gb of free space to having 0 bytes of free space. I have deleted all the results of photorec and various other large files and removed them from trash but it still has not freed up any space. Also, my firefox no longer has back/forward functionality which I'm sure would be fixed by a reinstall but seeing as I have 0 space, I can't really do that. Any thoughts?
Wish a script which would delete cache content and remove additional files which have been downloaded via the internet and saved voluntarily by the user and files any thing other than those used by the OS in linux.Need a command which could make the execution of the above script possible before the shut down command is passed.
I recently tried using iTunes inside a virtual box with Windows 7 to update my iPhone 3GS which involved handing control of this device to the guest OS.My question is whether it's possible to give that control back to my host system (Lucid).I've tried removing USB support from the virtual box device dropdown but that didn't work.Any thoughts? If all else fails I could likely restore using someone else's computer but I'd prefer not to.
The recent yum update (at 17/4/2010 based on my /var/log/yum.log) has broken Tilda from regaining the input focus after application switching. Only "F12" (the key binding I used to popup/hide Tilda) still works. But now after the losing the initial application input focus, it does not able to regaining it back.
I tried running a back-up/restore script in a WordPress install to migrate from one server to another... long story made short, I ended up doing it manually and all is well on that front
The one remnant from that botched script is that it tried creating a directory 'wp-backup' and then a file inside that directory - but it tried using '' instead of '/'. So what it created was a file named 'wp-backupindex.php' with a file size of 0 bytes.
The problem is thus: I can't change the permissions nor delete the file, because of the invalid file name. I don't have direct shell access (that cost *extra*, of course) and every time I try with the web-based file manager (Quixplorer) it sees it as 'wp-backupindex.php', as though the '' is acting as an escape sequence in the file name. Same thing in FileZilla, I can't do anything to the file without it complaining about the invalid file name.
how to ixnay this one file given the limitations above (no shell access) short of calling and bugging tech support to delete the file for me?
i waas wondering if anyone knew of a script or program that removes duplicate words in a txt file. im making an install script and the install list has gotten a bit long so i want to ensure there are no duplicates in the file
This has happened twice to me. I'm editing a filename on the desktop, for example, I have a part of the name highlighted and press delete. Inadvertently, I press delete again, but with nothing highlighted. The file is deleted, but is not added to the recycle bin (possible bug).
I believe that is what is happening. I cannot seem to recreate it purposefully on my work computer --I had done this at home this morning while sans-coffee.
I just downloaded and innstalled 11.2 about 6 weeks ago, and Have updated several times since... I was very frustrated and found that I did in fact have the proper pernissions to delete this directory. I checked multiple forums for much longer than I would like to admit, and they kept telling me to use (in the end) the same commands.....I finally stumbled upon a forum that again told me to use rm [nonempty directory's name] ...and viola
Currently, I'm working on personal project. and I'm kinda stuck. What I want to do is that open a file, and edit that file (deleting unwanted characters). The problem arises after I deleted unwanted characters, the file still has the same length of the original one. Let's assume that we have a file with "1234" in it. I deleted "3" ( I overwrite "\0" ) so now when I check the file, it's 124. But when I check the length, the both have the same size as 4
Here is an example source code int length, length2; num = open("a.dat", 2) length = lseek(num, 0, 2); // Initial length lseek(num, 2, 0); // editing write(num, "\0", 1); length2 = lseek(num, 0, 2); // Final length close(num);
When I print those values those are exactly the same. Length2 should be one less than length, but the both are 4. What's wrong in m code? Am I supposed to use different character rather than "\0"?
I am facing some problem regarding deletion of a line from a text file. The file consists of the lines of type which consists of more than 6 occurrences of : character in it. The line should be deleted completely and the line next to it must be shifted up.
I am trying to delete these symbols "[ ]" from a file but it says string not found. I tried: %s/[//g while editing the file not working also tried sed -e '/[/d' and sed '/]/d' still no job.
But it only deleted the first instance of : in each line when some lines have multiple : appearing in each one. How can I delete all the : from the entire file?
I have a very, very large log file (360MB) that I'm trying to thin out. As it turns out the majority of this file has entries that aren't necessary so I'm attempting to build a command that will strip these out. The following command works to display only the data that I do not want:
This displays exactly the data I want to delete from the file by displaying the expression and six lines above it and five lines below it. However I'm at a loss as to how to remove this data from the output and display everything else. I looked into the -v option with grep redirecting the output to a new file:
However it doesn't work, the new file is the same size as the old one. What am I doing wrong? Is there a better method of doing this? I'm a bit out of my element since the method I'd normally use can't handle files of this size.
Logical Memory Space of 4GB is divided in to 3GB User Space and 1GB Kernel Space. Always. Correct?
1. How can we change it? (just changing value of PAGE_OFFSET is okay?)
2. If system have only 256MB of memory (embedded system) and suppose Kernel Modules eat away all the memory during boot. User space will be left will no memory. Is this case possible?
Wife's laptop has AR5001 Wireless Adapter laptop model is Toshiba Satellite A215
Problem : Wireless networking randomly loses connectivity and can not regain connectivity, the only apparent solution is a full power down , this is not even certain to work. The card works under Windows, she hates Windows. (I love her for this) I know it's not faulty hardware , because it will work for days on end under Windows without problems.
Things I've tried : madwifi drivers (any and all versions available) : These increase stability of the signal and seem to delay the inevitable however it still happens. When using these drivers the only option is to unload them modprobe -r then reboot then remove them again and re add them. It makes no sense why this works, and if I don't remove them prior to rebooting it will not work.
ATH5K drivers : These are pretty much junk, results are unpredictable at best, sometimes it will work perfectly for a few hours, sometimes it will not work at all. Nothing is repeatable, I can't seem to force whatever condition is causing this. rfkill does not show the wifi being blocked (hard or soft), unblocking it anyway does nothing, only way to make this work and it's iffy is to fully power down wait 5-10 minutes turn it back on and it MAY decide to work.
Firmware update : Updated the Toshiba BIOS to the latest version of the firmware 2.0 no joy here either. Same issue both sets of drivers.
Tried different distros and kernels : I've tried Mint 9, 10 ,11 ; Ubuntu 10.10, 10.04 , 9.10 and 11.04 (which is currently installed) , Fedora and OpenSUSE. All are giving the same problems. I have also tried a slew of different kernels no joy from any of them (I'm not at the computer with the issue now I will post exactly what kernel versions I've used when I have access to the machine).
Another useful bit of information, the hard switch to disable/enable wifi WILL disable it but turning it back on does absolutely nothing. The hotkey does nothing at all. The bios does not have an option to disable or enable the wireless card.
I will also post the typical lsmod , lspci , iwconfig all that good stuff when I get back to the computer in question. I'm probably just going to buy a PC card for it and give up on that one, but this is driving me insane and I would really like to see it resolved even if I do replace the hardware.
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 updated my computer yesterday and ever since when I delete something from my second hard drive it no longer goes into the trash. It not only does that but does not release disk space so now I have a blocked hard drive. I have tried deleting .trash-1000 as root but that only created a folder called .trash-0 and did not do anything. I am running kubuntu lucid lynx kernel ver. 2.6.32-31-generic