Sponsored Content
Full Discussion: Calculating Disc Space
Top Forums UNIX for Dummies Questions & Answers Calculating Disc Space Post 20614 by Docboyeee on Tuesday 30th of April 2002 10:24:51 AM
Old 04-30-2002
Question Calculating Disc Space

I need some help in determining disc space. I ran the following commands on my IBM RS6000 server and this is what I get

# dfspace
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 32768 19832 40% 1225 15% /
/dev/hd2 802816 277256 66% 11035 11% /usr
/dev/hd9var 32768 22648 31% 197 5% /var
/dev/hd3 65536 29600 55% 246 4% /tmp
/dev/hd1 16384 15448 6% 109 6% /home
/dev/lv00 49152 23192 53% 357 6% /versyss
/dev/lv01 6012928 2214864 64% 5168 1% /versyss/data

# dfspace -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 16384 9916 40% 1225 15% /
/dev/hd2 401408 138628 66% 11035 11% /usr
/dev/hd9var 16384 11324 31% 197 5% /var
/dev/hd3 32768 14800 55% 246 4% /tmp
/dev/hd1 8192 7724 6% 109 6% /home
/dev/lv00 24576 11596 53% 357 6% /versyss
/dev/lv01 3006464 1107432 64% 5168 1% /versyss/data

Can someone please tell me how to calculate total disc space for the partition and remaining space? One is reported in 512k blocks and one is reported in 1024k blocks.

OR direct me to documentation where I can read and figure this out on my own.

Thanks alot for your help!
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Calculating Disc Space

Ok.... Can someone please point me in the right direction. I simply want to know how to take the results of a dfspace or df command and be able to know how to determine how much disk space is either used or remaining. 1$ dfspace Filesystem 512-blocks Free %Used Iused %Iused Mounted... (5 Replies)
Discussion started by: Docboyeee
5 Replies

2. Shell Programming and Scripting

Scripts for calculating size and remaining space of a directory automatically.

I would like to create a script for calculating size and remaining space of a directory automatically every 24 hours, then send an email to report to the admin. * POSIX and PERL are preferred. Can anyone help, please? (1 Reply)
Discussion started by: leonall
1 Replies

3. Filesystems, Disks and Memory

calculating disk space for growth

what's the best way to calculate the raw disk space in format. the system is a Solaris system using EMC disks- df -k will give me what's used plus available.Now I need the total disk space that the system is using/assigned. Which means I must inventory the raw disks in format. the system uses... (6 Replies)
Discussion started by: sholiver
6 Replies

4. Filesystems, Disks and Memory

Calculating Drive Space Increase

I trying to calculate drive space with RAID. I know the equation is: (n-1)/n * drive capacity but, when I use that my calculations don't come out when I compare to what I already know exists: I have 3 - 18.2gb SCSI drives that contain two logical drives C & D. Using the math, (3-1)/3 * 18.2... (1 Reply)
Discussion started by: JTalbot017
1 Replies

5. Filesystems, Disks and Memory

calculating the filesystem space

Hi, Just wanted to confirm that what Im doing is correct to calculate the space allocated to filesystem: >df -k . Filesystem 1024-blocks Free %Used Iused %Iused Mounted on /test 48720000 9337904 81% 14846 1% /home The space allocated = 48720000/1024 =... (1 Reply)
Discussion started by: deepakgang
1 Replies

6. Shell Programming and Scripting

Calculating server space

I am Connected With 4 servers I want to check the free space available in each server HOW to do this ? Edit/Delete Message (3 Replies)
Discussion started by: pranabrana
3 Replies

7. Shell Programming and Scripting

Calculating server space

I am Connected With 4 servers I want to check the free space available in each server HOW to do this ? (8 Replies)
Discussion started by: pranabrana
8 Replies

8. Emergency UNIX and Linux Support

Calculating total space in GB for all files with typical pattern

Hi Experts, In a particular dir, I have many files *AJAY*. How can I get total size of all such files. I tried du -hs *AJAY* but it gave me individual size of all files. All I require is summation of all. Thanks, Ajay (4 Replies)
Discussion started by: ajaypatil_am
4 Replies

9. Shell Programming and Scripting

Disc space issues and purging of files

Hi All, I am looking forward to create a unix shell script to purge the files. The requirement is: 1) Do df -k and check the current space occupied for the /a1 folder. 2) If the space consumed is greater than 90 %, delete all the DEF* files from a subfolder /a1/archive. Example: df... (4 Replies)
Discussion started by: shilpa_acc
4 Replies

10. Shell Programming and Scripting

How to Calculating space used in GB for any particular directory in UNIX?

How to Calculating space used in GB for any particular directory in unix Currently I am using : df -h which gives me space for each mout point ldndyn1:/vol/v01/dyn/sbcexp/dyn 1.1T 999G 29G 98% /sbcimp/dyn but I need for some internal particular directory... (3 Replies)
Discussion started by: RahulJoshi
3 Replies
REPARTITION(8)						      System Manager's Manual						    REPARTITION(8)

NAME
repartition - load a partition table SYNOPSIS
repartition device [partition-file] DESCRIPTION
Repartition uploads a new partition table for the partitions of device. The table is obtained from the first sector of partition-file if given, device otherwise. Device may refer to the whole drive or a primary partition, depending on whether you want to upload a partition or a subpartition table. The partitions will be truncated to fit within the enclosing device like the disk driver does, unless the numbers are coming from partition-file. EXAMPLES
repartition /dev/hd0 repartition /dev/hd4 /etc/hd4.table Reload the partition table of drive 0 setting /dev/hd[1-4], and the subpartition table of /dev/hd4 setting /dev/hd4[a-d] using a file. The latter may be useful if you need more than the 4 subpartitions a single Minix partition gives you. DIAGNOSTICS
The new table is printed on standard output. FILES
/dev/hd[0-9] SEE ALSO
hd(4), part(8). BUGS
The disk must be in use for the changes to stick. The partition table of an idle disk will be reloaded on the first open. AUTHOR
Kees J. Bot (kjb@cs.vu.nl) REPARTITION(8)
All times are GMT -4. The time now is 05:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy