disk size


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers disk size
# 1  
Old 06-13-2007
disk size

What is the easy way to see what size mydisk (total disk size) is ? similar to properties in windows ? Thanks.
# 2  
Old 06-13-2007
Xramm,
Try the "df" command.
# 3  
Old 06-14-2007
OK I tried df but, is there any windows like command to show total disk size in one line ? Thanks.
# 4  
Old 06-15-2007
Xramm,
As this is an Unix forum, the majority are Unix people.
Instead of referencing another operating system, best
is to give an example.
# 5  
Old 06-15-2007
Code:
df .
df  /path

df . shows the free space for the current directory (filesystem)
df /path shows the free space for the another directory

edit: unix uses filesystems. Several disks can be one filesystem or one disk can be the entire filesystem. It is kind of like partitions.
# 6  
Old 06-15-2007
for solaris sparc boxes ... use the command below to see the installed disks ...
Code:
format < /dev/null

for disks that do not have the file size in their description ... select the device name from the command above [i.e., c0t0d0] and then run the commands below (pick one or both)
Code:
format c0t0d0 << !
i
!

or
Code:
format c0t0d0 << !
c
!

# 7  
Old 06-16-2007
in this forum ,ghostdog74 advised that:

df -k |awk 'NR>1{count+=$2}END{print "Total: "count" K-blocks"}' it shows Total k-Blocks as summary.

and then also dfspace has been recommended I think it is a tool and it is working nice like this:

#sh dfspace
/ : 10164.24 MB of 14083.34 MB available ( 72.17%)
/var/run : 247.14 MB of 247.25 MB available ( 99.96%)
/var/lock : 247.25 MB of 247.25 MB available (100.00%)
/proc/bus/usb : 247.14 MB of 247.25 MB available ( 99.95%)
/dev : 247.14 MB of 247.25 MB available ( 99.95%)
/dev/shm : 247.25 MB of 247.25 MB available (100.00%)
/lib/modules/2.6.20-16-gener: 214.26 MB of 247.25 MB available ( 86.65%)
/media/sda1 : 1642.54 MB of 10997.59 MB available ( 14.94%)
-------------------------------------------------------------------------------
Total : 13256.96 MB of 26564.46 MB available ( 49.90%)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question on disk size and usage

Hello All, this may be a simple question but I wasn't sure how to word it to search for the answer. Have a look at the following: /dev/mapper/vgdata-lvdata 626G 594G 0 100% /data01 As you can see the disk size 626GB of which 594G is used. There's 32GB difference there but the... (5 Replies)
Discussion started by: bbbngowc
5 Replies

2. Red Hat

Kdump disk size

We have a Oracle linux 6.4 servers and memory is around 256GB, we are planing to configure kdump and I am confused about disk size I should set. I need your suggestion what would be the best size I should define for kdump. (3 Replies)
Discussion started by: karthik9358
3 Replies

3. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

4. Solaris

Help Me! Get size on each directory on each disk

Hi, I want to know how to get size of each directory and each sub-directory on each disk, assume i have 20 disk. Could you help me to find out the solution, please? Thanks (1 Reply)
Discussion started by: edydsuranta
1 Replies

5. SCO

Help with disk size in sco unix

when i try to find the disk size in a sco unix machine i am not quite sure about the commands df and df -k is there any other command to see what hardware raid it is built in and the total disk size any command similar to fdisk (4 Replies)
Discussion started by: robo
4 Replies

6. Solaris

Different disk size on different controllers

Hi folks, I just recently build myself a NAS with Oracle Solaris 11 Express. MOBO: Asus M4N68T-M LE V2 nForce 630a AM3 PCI-e Controller: 2x Exsys EX-3503 with Sil3132 Chipset (latest FW) HDD: 7x 2000GB Samsung EcoGreen F4 HD204UI 32MB 3.5" (latest FW) OS: SunOS zaruba 5.11 snv_151a i86pc... (4 Replies)
Discussion started by: Garter
4 Replies

7. UNIX for Dummies Questions & Answers

Solaris cmd - size of disk

Hi, What is the command to find the complete size of the hard disk on Solaris 10. ~vino (1 Reply)
Discussion started by: vino_hymi
1 Replies

8. AIX

How to increase Virtual Disk size

Hello, I am working AIX VIO server and extended Virtual Disk of one of the Partition with 10GB. After starting partition, i am not able to see increased size of disk. Can you please help me what I need to do to increase the size of virtual disk from partition? Thanks Kishor ... (7 Replies)
Discussion started by: kishorbhede
7 Replies

9. UNIX for Dummies Questions & Answers

disk size help

Please could someone advise what disk size this would be ? Filesystem kbytes used avail capacity /dev/dsk/c0t1d0s2 282315967 65553 279427255 1% is it 280 meg ? regards venhart (2 Replies)
Discussion started by: venhart
2 Replies

10. UNIX for Dummies Questions & Answers

Size of Disk

First of all, hello there!!! Well, I' ve got one question: How may I get the size of the HD, I mean, wich command do I have to type? Thanks in advance, (6 Replies)
Discussion started by: saulolps
6 Replies
Login or Register to Ask a Question