04-26-2002
I figured it out. thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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% ... (2 Replies)
Discussion started by: Docboyeee
2 Replies
2. Filesystems, Disks and Memory
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
3. Shell Programming and Scripting
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
4. Filesystems, Disks and Memory
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
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
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
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. Shell Programming and Scripting
Hi All,
IS there any 'awk' way to manipulate following data?
Fruit Date Count
Apple 20/08/2011 5
Apple 27/08/2011 7
Apple 05/09/2011 11
Apple 12/09/2011 3
Apple 19/09/2011 25
.
.
.
.
Orange 20/08/2011 9
Orange 27/08/2011 20
Orange 27/08/2011 7
Orange 05/09/2011 15
Orange... (3 Replies)
Discussion started by: aniketdixit
3 Replies
9. Emergency UNIX and Linux Support
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
10. Shell Programming and Scripting
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
DISKPART(8) System Manager's Manual DISKPART(8)
NAME
diskpart - calculate default disk partition sizes
SYNOPSIS
/usr/sbin/diskpart [ -p ] [ -d ] disk-type
DESCRIPTION
Diskpart is used to calculate the disk partition sizes based on the default rules used at Berkeley. If the -p option is supplied, tables
suitable for inclusion in a device driver are produced. If the -d option is supplied, an entry suitable for inclusion in the disk descrip-
tion file /etc/disktab is generated; c.f. disktab(5). On disks that use bad144-style bad-sector forwarding, space is left in the last
partition on the disk for a bad sector forwarding table. The space reserved is one track for the replicated copies of the table and suffi-
cient tracks to hold a pool of 126 sectors to which bad sectors are mapped. For more information, see bad144(8).
The disk partition sizes are based on the total amount of space on the disk as given in the table below (all values are supplied in units
of 512 byte sectors). The `c' partition is, by convention, used to access the entire physical disk. The device driver tables include the
space reserved for the bad sector forwarding table in the `c' partition; those used in the disktab and default formats exclude reserved
tracks. In normal operation, either the `g' partition is used, or the `d', `e', and `f' partitions are used. The `g' and `f' partitions
are variable-sized, occupying whatever space remains after allocation of the fixed sized partitions. If the disk is smaller than 20
Megabytes, then diskpart aborts with the message ``disk too small, calculate by hand''.
Partition 20-60 MB 61-205 MB 206-355 MB 356+ MB
a 15884 15884 15884 15884
b 10032 33440 33440 66880
d 15884 15884 15884 15884
e unused 55936 55936 307200
h unused unused 291346 291346
If an unknown disk type is specified, diskpart will prompt for the required disk geometry information.
SEE ALSO
disktab(5), bad144(8)
BUGS
Certain default partition sizes are based on historical artifacts (e.g. RP06), and may result in unsatisfactory layouts.
When using the -d flag, alternate disk names are not included in the output.
4th Berkeley Distribution November 17, 1996 DISKPART(8)