Ubuntu :: Calculate Size Of Tmp Directory In All Acconuts?
Nov 11, 2010How can I calc the size of the tmp directory in all account. Do the following will calc each dir alone code...
View 1 RepliesHow can I calc the size of the tmp directory in all account. Do the following will calc each dir alone code...
View 1 RepliesI'm trying to write a script that will calculate a directory size and if the size is greater than 4GB, it will send out an email. But I am getting the "integer operation expected" error when it tries to calculate the current disk size. Here's my script.
Code:
TO="user@email.com"
SUBJ="Ready for DVD burning on `hostname`"
MAIL="/bin/mail"
[code]....
These following ext3 partitions contain identical data. As we can see, the larger the partition size, the more space is required for the same files:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop11 3965777 561064 3199964 15% [...]
/dev/loop19 573029 543843 29186 95% [...]
[code]....
I have 2 directories in my home folder that I would like to set a size limit on. The directories are ~/backup and ~/temp. Is there an easy way to limit the size of a directory without having to make partitions?
View 4 Replies View RelatedIs there any way we could display dicrectory's size in terminal? Because I need to copy directories to external devices like USB, so I need to know there is enough space left on my USB for those directories or not. I tried ls command but still couldn't find out.
View 2 Replies View RelatedI was trying to encrypt a USB flash drive, but truecrypt shows me two usbs. Here is wht is says Quote:/dev/sdb: and then it says the size is 3.7GB and then the mount directory is blank.owever is also list another one that says Quote:/dev/sdb1 the size is 3.7Gb and the mount directory is /media/USB20FDI have a PNY 4GB flash drive.
View 6 Replies View RelatedI need to increase the size of my /home directory. I am working with Ubuntu(2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 i686 i386 GNU/Linux
I checked the partitons with df -h command...the output is :
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 11G 4.3G 6.2G 42% /
none 1001M 560K 1000M 1% /dev
none 1006M 188K 1006M 1% /dev/shm
[Code]....
Clearly /usr has loads of space here...and I dont know /home is mounted with which partiton...I read somewhere that tune2fs command could be useful here...I dont want to experiment and mess up here..
I need to set size limit for shared directory. Actually i am unable to set directory size for my NFS shared foldermy Dir locate in /root/ESSR_logex : This ESSR_log Directory size should be 20GB. that mean NFS client only can store up to 20 GB files. NOT MORE
View 4 Replies View RelatedWhat is the minimal size for a home directory?I did a manual partition install in VirtualBox. My vdi had these settings: RAM = 500MB & HDD = 10GB.Does this look correct.I am never certain as to the options for Primary, Logic, Beginning and End.Does it matter the order in which you make partitions in Ubuntu?
View 4 Replies View RelatedIs it possible to increase the size of the root directory / on ubuntu 9.10?
View 5 Replies View RelatedJust installed Ubuntu 11.04, which has Nautilus 2.32.2.1. When more than one directory is open, the tab for each directory s-t-r-e-t-c-h-e-s way across the screen, so all tabs added together take up 100% of the width. So with two folders open, each tab is 50% of the screen width! In previous Nautilus versions, each tab was just normal size. Cannot find a Preference to change this, and Googling for any solution brings up someone's previous query of this nature: [URL] and the fact that no one has responded! Is this an option that can be changed? Anyone come across this new "feature" before?
View 2 Replies View RelatedI have a 4gb USB thumb drive with Ubantu 9 on it and it looks like I have over 3gb free but I only have 4mb free in the documents Directory. w do I increase the size of the directory so I can add my Doc files?
View 3 Replies View RelatedAs example, I have directory in /root called as "shared". i already shared this directory using NFS. i want to limit this directory size into 20 GB(20*1024*1024).That means "shared" directory reserved 20 GB disk space from the HDD.how can i solve this problem
View 3 Replies View RelatedWe have a problem where there is not enough space in our /tmp partition. We are trying for fix our mysql database, and keep running in to the space issue... the error we are getting says:
myisamchk: Disk is full writing '/tmp/STGL3SGd' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
Our /tmp partition is current set at 485M, but it is not large enough to handle the database fix...
Does anyone know of a work around - perhaps to assign different directory for the temp files?
.I want to increase the /home directory size. How can I do that.I have copied all the files into another directory.
View 7 Replies View RelatedIs there any Linux function to find the size of the directory? stat() function can be used only for files and not directory. Can anyone let me know for to find the size of the directory from the C code
View 5 Replies View RelatedAfter installing everything I neded to get on to the web with my server, I discovered that my www dir only has 20 gb.
How can I increase the the size of my directory?
I have this directory with multiple images 'pics' and the size is 20mb and I want to make a .zip or .rar package of this directory but with an increased size so the .zip/.rar file will be 100mb, and then when you extract it the file size is the original 20mb. I want to make the result file bigger, no compress it. I need to put all the directory in one single file .zip or .rar but it has to weight more (100mb), maybe it can be done with another application. By the way, I have a centos 5 from command line.
View 2 Replies View RelatedI am running Debian under virtual container. I need to set max size of directory for each of vsftpd virtual users - because they are virtual, I cannot use user quotas. I was wondering, if I could create images with filesystem and mount them, but I cannot access /dev/loop device from container. Is there any other way, how to set max directory size in virtual container
View 2 Replies View RelatedI have a home directory which is mounted on the LVM partition,How can i reduce the size of LVM partiotion without loosing the data on home directory...whenever i use lvreduce command it show me a warning mesg that the whole data will be lost...reducing the size of LVM partition without loosing my home directory data.
View 1 Replies View RelatedI am running CentOS 5.5 with a 14T ext4 volume. We are sharing out a few sub-directories via NFS. Our customer was doing some penetration testing with our web app that writes to one of those NFS shares. We are not sure if they did something to cause the metadata to grow so large or if it is corrupt. Here is the listing:drwxrwxr-x 1 owner owner 470M Jun 24 18:15 temp.badI guess the metadata could actually be that large, however we have been unable to perform any operations on that directory to determine if the directory is just loaded with files or corrupted. We have not run an fsck on the volume because we would need to schedule downtime for out customers to do so. Has anyone come across this before
View 2 Replies View RelatedI have learned Linux for a while now, but Linux is continuously surprising me with new stuffs nearly every day... Today I met a really strange problem, that the command "ls" indicates the size of some directories is ZERO, as for /home.
However, there is a directory inside /home, which contains many files/directories.
Even worst, when I tried to create a file under /home, I got the "permission denied" error,
By the way, /home is within the local file system, not NFS share.
what is the ideal size of "/" (root) directory? Some people suggested to configure it between 2G - 5G depending on the installation. However, with full slackware installation, with 6G "/" size, it left me only around 400mb space left.
Is this common, or I did something wrong the installation? With only around 400mb space left, isn't this too small?
I can't upgrade. I get:
Quote:
Could not calculate the upgrade
An unresolvable problem occurred while calculating the upgrade: The package 'skype-common' is marked for removal but it is in the removal blacklist.
This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu
This is most likely a transient problem, please try again later.
I tried again several times in different days and it is the same. I have 10.4 recently updated from my original installation of 9.10. I think it was not a pre-release, I did it automatically from the website and it took a long time. As far as I know, all I have installed is official, except perhaps Skype itself. There seems to be something connected with Skype. But I have exactly the same Skype I had with 9.10, where I updated every few days with no trouble. It is something peculiar in 10.4
I tried to upgrade Ubuntu Server Edition 9.10 to 10.04. Gives me this warning:
Code:
Could not calculate the upgrade An unresolvable problem occurred while calculating the upgrade: E:Unable to correct problems, you have held broken packages.However, the packages appear to be fine. Checked with apt-get and nothing wrong.
i have problem with upgrade manager. i try upgrade fron 8.04 to 8.10. where is my main.log:
2010-07-19 15:52:51,749 INFO release-upgrader version '0.93.34' started
2010-07-19 15:52:51,752 DEBUG Using 'DistUpgradeViewText' view
2010-07-19 15:52:51,795 DEBUG enable dpkg --force-overwrite
[code]....
I received the following error today and I did a search on the net. I tried sudo rm /var/cache/apt/archives/* but it didn't help. Could not calculate the upgrade An unresolvable problem occurred while calculating the upgrade. report this bug against the 'update-manager' package and include the following error message: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
View 9 Replies View Relateddoes anyone know how to calculate an average in a simple way with bash? I've got something like this:
Code:
$ cat results.txt | head -10 | tr " " " " | cut -f13
0.23929285124
0.404716908011
0.35113102608
[Code]....
and now I want to calculate the average of the resulting numbers. I know I could write a bash or awk or perl script and use that, but isn't there a more simple, elegant way? There is for example "sum" in the coreutils, but no "avg"..
I am using Ubuntu Ultimate x64. I see the update in my update manager but during the calculating before installing the update I get the following error: "Cannot Calculate the update" How do I fix this to install the update?
View 2 Replies View Relatedi m setting up a linux server and i have to setup ip , in static mode. so i know everything except those two things. how do i calculate them?
example ip:200.49.142.91
submask 255.255.255.248
gateway 200.49.142.89