Red Hat :: Tmpfs /dev/shm - File Deletion And Size Determination
May 6, 2010
1) In our tmpfs /dev/shm we have what seem to be unused/stale files. Can these be safely deleted by using 'rm'.
2) How is the space calculated for tmpfs /dev/shm?
So for instance if we have unused/stale files are these in the calculation of space used? Red Hat Enterprise Linux Server release 5.4 x86_64
Fs Size Used Avail Use% Mounted on
tmpfs 32G 25G 7.9G 76% /dev/shm
View 4 Replies
ADVERTISEMENT
Oct 19, 2010
i am investigating on solutions to trace a file deletion on a computer( Linux O/S).i also need to determine weither after a file deletion or download on a computer, the computer clock had not been modified. In case a file has been downloaded on a computer and then transferred to a removable device, i need to find out the file activity. i mean i should be able to tell that the file was downloaded and transferred to a device with possible specifications.
View 2 Replies
View Related
Apr 26, 2011
I create the file mytest.txt. Since this process is using this file. if I run this code in background and simply run "rm -rf mytest.txt" than file gets delete. Here is my code
int main()
{
FILE *fp;
fp = fopen ("mytest.txt","wb");
if (NULL == fp)
{
[Code]....
View 7 Replies
View Related
Apr 26, 2011
I create the file mytest.txt. Since this process is using this file. if I run this code in background and simply run "rm -rf mytest.txt" than file gets delete.Please help me how to save this file from other process.Here is my code
int main()
{
FILE *fp;
[code]...
View 9 Replies
View Related
Jun 10, 2010
Are there software that can split big file size into small file size in Linux?
View 1 Replies
View Related
Jan 19, 2011
is lvresize with --resizefs options re-size the Logical Volume and then re-size the file system? i mean we don't need to use resize2fs?I looked at man pages but it doesn't explain this option.
View 3 Replies
View Related
Dec 14, 2010
How can we find the maximum size of the inode table and what decides it, and how the maximum size of volume of file system is decided ?
View 4 Replies
View Related
Aug 21, 2009
I am trying to use rsync to keep 2 machines in sync. I get the following error sometimes. If I rerun the rsync it usually works.
IO error encountered - skipping file deletion
View 1 Replies
View Related
Jul 30, 2011
so i've tried doing the whole /tmp as tmpfs thingy and it works!
View 4 Replies
View Related
Apr 16, 2011
New vps with fedora 13
my fstab
none/dev/pts devptsrw00
tmpfs /dev/shm tmpfs defaults 0 0
first one works
tmpfs doesn't get mounted....
can't figure out why =
worked on fedora 10...
View 9 Replies
View Related
Mar 22, 2010
How can I create consistent snapshots of tmpfs or any RAM disks?
View 5 Replies
View Related
Jun 30, 2010
can anybody clarify my doubts what is the difference between swap and tmpfs filesystem??
also what is the use of /dev/pts and /dev/shm ?
View 1 Replies
View Related
Mar 14, 2010
I've grown rather fond lately of creating tmpfs here and there to speed up various activities. (I think it is awesome that RAM can be mounted to a directory!) The downside though, is that this requires root privileges. I don't really like this because then I either have to go root each time I want a tmpfs, or I have to add a new line to fstab each time I want a tmpfs in some new, odd place. (This becomes doubly weird when the odd place is somewhere like inside my personal home directory.) Is there some other utility out there that can mount RAM as a filesystem, but allow mounting to be done without root privileges? It seems like this shouldn't be an issue, since a normal user has the ability to create and manipulate directories as well as borrow as much RAM as he wants.
View 2 Replies
View Related
Apr 22, 2011
I am curious if perhaps I am doing something wrong extracting pages from a pdf doc using pdftk and creating a new file. I am only extracting the odd pages from the file and outputting them to a new file that is now only 20 pages instead of the input's 40 pages, yet the new output file is still 1.4Mb in size, the same as the original.
It seems strange to extract only half the pages of a large document and end up with a result that is the same size. how to streamline the resulting pdf's using pdftk?
BTW this is the command I am using, in case perhaps I am missing an option to optimize file size or something:
Code:
pdftk A=ch15.pdf cat A1-40odd output odd.pdf
View 1 Replies
View Related
Feb 23, 2009
I'm researching about symbolic links been used with samba / CIFS:I'd like that the user that uses a MS-Windows OS could see my shared folder on CentOS 5 and the symbolic links that are inside this folder. Well, it works but, the user will see that the size of the file is bigger than the real file. Apparently, CIFS gets the size of the symbolic link (aproxim.32K) and add it to the size of the file.Example 1: 100KB file, used with shared folder, MS-Windows's user will see 100KBExample 2: 100KB file, used with symbolic link inside a shared folder, MS-Windows's user will see 132KB. (Sym link + size of file)Is there a way to allow the user only see the size of the file, and not the file + symbolic links ?
View 1 Replies
View Related
Jun 13, 2011
I was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.
But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??
View 3 Replies
View Related
Jun 30, 2010
can anybody clarify my doubts what is the difference between swap , tmpfs and sysfs filesystem?? also what is the use of /dev/pts and /dev/shm and ?
View 3 Replies
View Related
Jul 17, 2011
My laptop now has 8GB of memory, so I think mounting a tmpfs over /tmp is a reasonable thing to do. I also want to prepare for getting a SSD in the near future.The computer has a 1GB swap partition and I've set vm.swappiness=20
1) There is also a tmpfs mounted to /dev/shm. Both have the default size of 50%. Is there a way to get /dev/shm and /tmp to share the same capacity without doing a symlink or bind?
2) Is the swap partition a good size (is that swappiness value ok)? What happens if /tmp runs out of room? Should I increase the swap size to something really large like 15G (because I have swappiness so low...)?
View 4 Replies
View Related
Jul 12, 2010
We have some large files with sampling data in it. Don't want to delete these files. But want to quickly overwrite the file with 0s and/or 1s and preserve the original file size.
View 3 Replies
View Related
Nov 18, 2010
My linux system is running from the ram (ramfs/tmpfs). Crated a partition type 'tmpfs'. Processes are reading/ writing from/to this partition files. I am looking for utilities to sync this partition to the remote storage regularly (say, once in 10 sec). Normal copy command will produce partial files, if the copy is getting executed during a write operation.
View 2 Replies
View Related
Jun 18, 2010
I am using DD to backup entire system partitions and now I am trying to restore one. The resulting disk image from my buggy process has zero bytes. D'oh.It apparently thinks the image was trailing garbage and ignores it. It deletes the original file and replaces it with a zero byte .dd file. I have the original copy of the image in a dd.gz file. It's 6.3 GB so it may still contain the data.How do I get the original image back without destroying it again?
View 1 Replies
View Related
Oct 11, 2010
How can I allow normal users to mount a tmpfs under any subdirectory owned by them?
View 3 Replies
View Related
Jul 19, 2010
On boot, udev is giving a mount error. It appears to not have control of the /dev directory. This was finally traced to bad kernel compile, but some questions remain. Bogus information has been removed.
The kernel was built with tmpfs (CONFIG file had CONFIG_TMPFS, compiled kernel probably did not, this has been fixed.)
My system runs, probably because there is a valid /dev directory tree copied from the original 2.4.31 system.
After boot, I am getting 3 udevd running, according to "ps -A".
After re-executing /etc/rc.d/rc.udev I see only one udevd at a low id number (625).
Previously I had 2.4.31, which had udev and it was mounting using ramfs.
My fstab has:
On my previous 2.4.31 these fstab lines were:
I have been running Slackware since 1996. This is Slackware 13.1, running on a Sempron/Athlon K8, VIA chipsets. I have been fighting with this install for 2 weeks now. If I have to I will disable udev and live with a /dev directory that I setup by hand.
If udev does not have a tmpfs over the top of /dev, does it use the /dev on the harddrive or does it just fail some other way ?
View 2 Replies
View Related
Jan 19, 2011
Possible Duplicate:Recover a file deleted using rm command in Linux.I have accidentally deleted all the stuff under my home directory, say /home/OriginalWood, is it possible to recover?Now the home directory is empty and not yet overlapped by any data. So, is there a way to recover?
View 1 Replies
View Related
Feb 28, 2010
Somebody, without saying anything to us, has deleted (not moved) a lot of wiki pages for laptop testing and setup guide. A lot of people were working hardly to document as best as possible each laptop computer to configure Ubuntu GNU/Linux.
Here follows a list with only a few of the lost pages:
[url]
[url]
[url]
[url]
View 9 Replies
View Related
May 11, 2010
I'm currently using rsync to backup one drive to another. However, it is not currently set up to delete files if they are deleted from the source directory. I'm looking for a way to tell it to delete a file if it was deleted form the source directory X number of days ago.
Anyway I can do this with rsync or a combo with another backup program?
View 1 Replies
View Related
Feb 25, 2010
I have RHEL Machine in production server where we gets usual alerts that logs filling up spaces. We archive those logs but in case it grows maximum we delete the old ones. Any idea how can we autiomate the process.
View 1 Replies
View Related
May 30, 2011
OS: OpenSUSE 11.4 KDE x86_64
Mouse: MS Notebook Optical 3000, with left, right buttons and a vertical scroll wheel in the middle
How do I configure or set up mouse action such that an option to delete or move to trash is also included when hitting the right mouse button? As shown below, the "standard menu" does not include this action:
Right clicking desktop > Desktop Settings > Plasma Desktop Shell
Middle button: Paste
Left button: Standard Menu (std. menu/application launcher/paste/switch windows/switch activity/switch desktop)
Vertical scroll: Switch desktop
Right button: Standard Menu
View 9 Replies
View Related
Mar 27, 2010
I generate more than 50GB of cache files on my RHEL server (and typical file size is 200kb so no of files is huge). When I try to delete these files it takes 8-10 hours. However, the bigger issue is that the system load goes to critical for these 8-10 hours. Is there anyway where I can keep the system load under control during the deletion.I tried using
nice -n19 rm -rf *
but that doesn't help in system load.
View 2 Replies
View Related
Jan 1, 2010
Where is the Trash folder where deleted files are moved? I found no /dev/null How can I tell Ubuntu: Wipe Trash folder on exit How can I tell Ubuntu: Delete files immediately without moving them first to Trash folder?
View 5 Replies
View Related