General :: Round Disk Space With Awk?

Jun 2, 2011

I want to use awk to list all the mount points, disk size and space available. Now I have all that info but I want to round the totals, so there is no delimiters, how can I do that?

PHP Code:
#!/bin/sh
date
df=`df -Pl | grep "^/dev" | awk '{print $6, $2/1024 , $4/1024}' | sed "s/%//"`
echo "$df"

[Code]...

View 6 Replies


ADVERTISEMENT

General :: Why Is Used + Available Disk Space Always Less Than Total Disk Space

Feb 24, 2011

root@localhost:~ $ df /dev/sdb1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 1922858352 23247088 1801935664 2% /mnt/external/sdb1

[code]....

View 1 Replies View Related

General :: Disk Utility And Df Show Different Disk Space ?

Nov 18, 2010

I don't understand disk sizes in Linux. I have a 500GB drive. It's ext4. I have run "tune2fs -m 0" on it to reserve the amount of space reserved for root to 0.

I'm using Ubuntu 10.04 that comes with a Disk Utility. When I run "System->Administration->Disk Utility (palimpsest)" the disk shows up as 500GB (see picture). But when I run df -h it shows up as 459GB. So, I don't understand the discrepancy.

When I run df I get the following:

Question: Why is Disk Utility showing me something different than "df"?

View 6 Replies View Related

Slackware :: Disk Space Lost- Root Partition Has Very Little Space Left

Jan 31, 2010

Today I was installing a lot of software since I'm just setting up my Slackware system again after a fresh install, and I realized that my root partition has very little space left.

Here is the output of df -h:


Code:

As you can see, I have a 20G (19G here for some reason) root partition, 8G /var, and 86G of /home. I thought this would be plenty since many recent recommendations for / are 10-15G. Now, though, 17G are used up for some reason! How is this possible? I thought a full slackware install only had about 4G of software! I don't have any music or movies or any crazy huge files that I know of, and those would be in my /home directory anyway. Is there any way I can see which files are taking up all this space?

If it's necessary to allocate more space to my / partition, is it still possible to boot up a GParted live Cd, shrink /home a bit, move some partitions to the right, and expand my root partition? I would REALLY prefer I don't have to reinstall since I just spent a ton of time setting up my system again, but if worst comes to worst ... :'-(

In case you're curious, here's my /etc/fstab:

Code:

View 14 Replies View Related

General :: Disk Space Up To 60%

Nov 10, 2009

My disk space has grown from 30% to 60% in the last 3 months.

I can only assume this is from log files in the form of maillogs and squid logs.

Any ideas on how to free up the space? I'm pretty sure I have logroate running.

I just ran this on the mail log files:

View 14 Replies View Related

General :: Out Of Disk Space ?

Aug 17, 2009

I got the Hp 2133 mini notebook not to long ago maybe back in april. But they got a linux instead of Windows. I have yet to save anything on the computer, but everytime i logged on, i was usuing up disk space. Now I cant even log on and it gives me the message GDM Could not write to your authorization. Im sure i am not the first to receive this message. I dont know what to do. Its a Suse Linux Enterprise Desktop 10. I tried entering commands that ive seen on here that helped others. But its not working for me. I havent been able to use the laptop since may.

View 14 Replies View Related

Hardware :: Reduced Disk Space / Use The Total Amount Of Space?

Aug 25, 2009

OS: RHEL AS 5 64-bit

HDD:300 GB Hardware mirror (HP blade bl460c)

While installing OS, in partition window after OS file system structure I've left 277 GB. But after installation it shows Size - 255GB and available disk space is 242 GB.

Isn't it weired? How can I use the total amount of space in Linux? I need the whole 277GB exactly. What should be my workaround?

View 6 Replies View Related

General :: Disk Space Is Being Hogged

Feb 22, 2010

Suddenly my disk that contains everything but the home dirs and which is usually only approx 9% full is now 100 % full.Any suggestions on how to find how this has happened? How can i find the largest files minus the mounted dirs which are on other disks?

View 3 Replies View Related

General :: Freeing Disk Space ?

Sep 29, 2009

Had this problem in a few different instances where a process was creating a set of files in directory and using those files.

Some one just happened to go to the dir and deleted those files without stopping the process. The result being that as the process is still telling the machine that the disk usage is still what it initially was (df -h shows the old disk usage) , where as a du -h or a ls -lh on that same dir show that the files are not there.

Once this happened with mysql where the user delete the database dir in /var/database_name in the mysql home dir. The result being that the dusk usage was still showing as the old one even if the files were missing. This was resolved by restarting the mysql server.

Similar thing happened with some other processes where on restarting the problem was resolved..

My question being is there a method to solve this problem by whithout restarting the concerned process.. Some magical command like free disk or recheck dis usage :-) .. may be too much to ask but can some one help me out here.

View 1 Replies View Related

General :: Ubuntu 10.04 Recurring Low Disk Space?

Sep 20, 2010

I am running Ubuntu 10.04 on one 80GiB disk partitioned as two equal. The second one is mounted as my home folder. The reasons for the partitioning are historic and I don't think they're relevant here.

My problem is that Ubuntu frequently reports 'Low Disk Space'. The initial solution was to turn off backups and that seemed to ease the problem. Now it has started happening again, but backups are still turned off. I can't see anything unusual in the tmp directory - or anywhere come to that - but I don't really know where to look.

I have searched for known leaky problems but haven't found anything that seems to fit. I don't store images, videos or music.

View 2 Replies View Related

General :: CentOS 5 - Available Disk Space Always 0 Percent

Jun 16, 2011

I am running centos 5. So far, it gives no problem but just yesterday, when it reported "no free space" for file writing, I try to remove some file as usual. Unfortunately this time no matter how much files I had deleted, it just keep showing no available space for doing so.

Result from df:
[root@LSMSVR ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
1.2G 269M 879M 24% /
/dev/hda6 4.8G 138M 4.4G 4% /tmp
/dev/hda5 19G 2.4G 16G 14% /usr
/dev/hda3 48G 12G 34G 25% /var
/dev/hda2 379G 365G 0 100% /home
/dev/hda1 99M 15M 80M 16% /boot
tmpfs 180M 0 180M 0% /dev/shm
ow to recover the lost space in /home?

View 2 Replies View Related

General :: Disk Space Used On Empty Partition?

May 26, 2009

The partition is formatted to ext3, starting with block 1 on the drive. The mount point for /dev/sdc1 lists 0 files when doing `ls -A` `df -h` shows that the partition has 92MB used. How is this space being used, and how can I free it up?edit: I guess this isn't a newbie question.

View 7 Replies View Related

General :: Low On Disk Space - Looking For Biggest Files?

Nov 10, 2010

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?

View 3 Replies View Related

General :: Get More Disk Space Into My Home Folder?

Feb 23, 2011

I am using Ubuntu in a laptop. The C disk has 15GB, and Windows is installed in C disk. I installed Netbook Ubuntu in D disk which only has 10GB free space. Now I am trying to install some applications in ubuntu such as emacs. But the system says it only has about 450Mb disk space. So how could I get more space? Can I install the applications under some different path? without using apt-get?

View 3 Replies View Related

General :: What's The Space Subtree Takes On Disk?

Aug 4, 2010

For a given directory, I want to know the space occupied on disk by it and all files and directories having it as an ancestor, so to speak. Is there a command for this in linux?

View 2 Replies View Related

General :: Disk Space - Script To Fill Up Diskspace?

Sep 29, 2010

I need a script to fill up my diskspace on my Linux box. It would be best if I can leave 200 MB free. I have Nagios installed, and it should email me when something like this happens, but how do I test it?I have Perl and PHP installed so if you want to use that then sure.

View 1 Replies View Related

General :: Where Is The Missing Disk Space On Software Raid

Nov 3, 2010

Purchased (4) 2TiB Drives (actual disk space) and created a RAID5 array expecting to have 6TB of useable disk space, however actual useable space is 5.46TiB.

So, the question is where did the disk space go?

First off, I can say for certainty the disks actual useable is verified at 2TB each have mounted and formated on a non-linux system (OSX).

Disks - 2TB Per disk, Tested HFS, Actual 2TB Useable
root@server:/server# fdisk -l 2>/dev/null | egrep "sd[hijk]" | grep Disk
Disk /dev/sdh: 2000.4 GB, 2000398934016 bytes
Disk /dev/sdj: 2000.4 GB, 2000398934016 bytes
Disk /dev/sdk: 2000.4 GB, 2000398934016 bytes

[Code]....

View 2 Replies View Related

General :: Bash - Compressing Files Despite Low Disk Space?

Jul 18, 2011

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

View 2 Replies View Related

General :: No Free Disk Space While Installing Fedora 15 / Get That?

Aug 20, 2011

I am on a windows 7 system trying to install linux fedora 15.

I am using Fedora 15 live image which I burned onto a DVD and booted. According to instructions I've found in a tutorial I go into the system tools and choose install to harddrive. I have previously shrunk the windows system drive to free up approx 200 GB of unallocated space. I did this through the
control panel >> administrative tools >> computer management >> windows disk manager.

While I try to install fedora on the harddrive I run into two problems.
1. I can't install it because it says "no free space available to create partition". it doesn't matter if I choose the auto partition option or the custom partition option.

Choosing the custom partitioning option I don't know what partitions I need to create. Terminology such as LVM and PV are all new to me.

The second problem is that I am after some random time ( it occurs in different time intervals) forced to re-login as a live user which kills the installation program and forces me to re-start the installation process

Anyone have clues to solve these problems?

View 1 Replies View Related

General :: Decompress A Tar File - Butrun Out Disk Space

Feb 7, 2011

I'm running a virtual machine of CentOS 3 and I am trying to decompress a tar file, but I run out disk space. I created the VM with 80 GB of disk space. When I look at the partititions, (du command) I have /dev/sda2 with a partition of 70GB mounted on /home with < 1% used.

Here comes the n00b question: How do I use the 70GB of space on sda2? I thought working in the /home directory, where sda2 is mounted, would give me access to that disk space, but the tar files fill up the /boot partition.

View 3 Replies View Related

General :: Disk Full Deleted Files But No Space Available

May 3, 2010

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?

View 4 Replies View Related

General :: LVM - Adding New Disk Space To Volume Group?

Feb 7, 2011

I plan to install a server using LVM. I thought a partition schema where /boot would be in an ext4 partition while / /usr /var /home and /opt would be in the LVM. My question is: if I'm putting / into the LVM, is it necessary to divide /usr /var /home and /opt into different logical volumes? If I divide them, would it become harder to maintain when new disk space has to be added to the volume group?

View 7 Replies View Related

General :: Want Shell Command Amount Space In Disk For Mp3

Jun 25, 2010

We use a SLES 10 SP2 file server. This file server has all type of files. We want to know what is the amount of space used by mp3 files. What we need to know is the total space in disk of mp3 files. I've been testing du command, and find command, but with no satisfactory results. Does anybody know how to do this?

View 11 Replies View Related

General :: How To Clean Up Disk Space On /var Partition RedHat5

May 13, 2011

I used to be Novell admin/CNE more than nine years. Since Novell sunset, I study myself and move to Linux...... At daily work, I face a lot challenges of Linux. I really need to get help from experienced Linux people. How to clean up disk space on /var partition Red Hat 5.

View 4 Replies View Related

General :: How To Reclaim Original Disk Space (Misused)

Jul 10, 2010

I wanted, on my laptop, to clone a 60GB HDD into a 500GB HDD using clonezilla (Parted Magic live cd). So I used the option disk2image, create the image file to an USB Drive. Everything was fine, I get my image file on that ext HDD. After I change the HDD on my laptop for the brand new 500GB but I think I make a mistake when restoring the image file using image2disk instead of image2partition. Now my 500gb is recognised as a 60GB hdd on gparted. How can I reclaim original HDD space on my 500GB?

View 7 Replies View Related

General :: Tools To Identify A Growing Disk Space?

Sep 30, 2010

currently my disk-space is growing very-very fast and in the same time I have a very limited amount of it.Last time I had this kind of problem, I had MySql persistence replication is on and disabling the feature fix the problem. I don't know what happened between now and then, the space is shrinking rapidly (600Meg in couple of days) and I only downloaded files for less than 10Meg in the same period.

Could anybody give me a pointer to a tool that can oversee growing directories or files or maybe a script that able to do this (possibly involving Cron). I try using "Find" but I cannot find any files that are suspiciously growing. I suspect it's a directory that is growing, but I don't know.

View 5 Replies View Related

General :: Read Just Disk Space Between /dev/sda2 And /dev/sda5?

Dec 19, 2010

However, when I installed Oracle Express Edition Database 10g, it complains that I have insufficient disk space on '/' directory. Here is a snapshot of my system. Wondering if I would like to swap the free space from /dev/sda5 into /dev/sda2.

Code:

[root@localhost ~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders

[code]....

View 14 Replies View Related

General :: Installing Program - Different Disk Space Requests

Feb 8, 2011

I am trying to load vmware server. When running vmware-install.pl it asks where to load the bin files. Default is /usr/bin. Cool with me, so I accept then get the error:
"There is insufficient disk space available in /usr/bin. Please make at least an additional 5924k available or choose another directory."

Ok, so in my searches, most cases people actually do have a full disk. I have 30gb free. Another post somewhere stated it could be the file system used, so I tried different file systems. Now I am back on etx3. What's odd is when I blow away the OS and reload and try to install VMware again, I get a different number to be "freed" in the error. Choosing another directory only yeilds a different disk space request.

View 5 Replies View Related

Ubuntu :: Disk Space Used Doesn't Match What Is Shown In Disk Usage Analyzer?

Feb 26, 2011

Some thing is using up a huge amount of my disk space about 10G and I can not determine what it is. When I look at my disk usage in system monitor it say I have used about 25G and when I scan the directory in disk usage analyzer the entire file system used is 15G.

View 1 Replies View Related

General :: SSH In Round Robin Fashion?

Mar 24, 2011

if i am having say 10 number of linux machine over the network and want to setup password free SSH in round robin fashion means ssh from any machine to either machine. one way to do is generate the public key on every machine and put on other machine. is there any other shorter and simple way to do it?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved