The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get free disk space size in C/C++ program( Solaris system) yidu High Level Programming 4 01-30-2009 12:49 AM
determine the physical size of the hard disk hoffies HP-UX 4 11-15-2007 05:08 AM
disk size xramm UNIX for Dummies Questions & Answers 7 06-17-2007 06:27 AM
Size of LVM header in non bootable disk gorayen HP-UX 0 12-06-2005 07:21 AM
Size limitations with ufs/disk suite on Solaris 8? 98_1LE UNIX for Dummies Questions & Answers 3 09-18-2002 11:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-29-2004
saulolps saulolps is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 3
Question 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,
  #2 (permalink)  
Old 04-29-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
well you should list what os your useing because we all dont use the same os.

but you can try format.
  #3 (permalink)  
Old 04-29-2004
saulolps saulolps is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 3
Format? Really? Thanks... I'll try....

But I think "df" is better, don't you think?

Thanks a lot.
  #4 (permalink)  
Old 04-29-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
Quote:
Originally posted by saulolps
Format? Really? Thanks... I'll try....

But I think "df" is better, don't you think?

Thanks a lot.
no.

df only shows you mounted filesystems. not the number of disks installed or any geomitry settings.

and df also shows you virtual filesystems, so i dont know how you would count that since its not a disk at all, and what about network filesystems, those arent even installed on your machine but they could be mounted.
  #5 (permalink)  
Old 04-29-2004
saulolps saulolps is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 3
df:

Display free disk space.
With no arguments, `df' reports the space used and available on all currently mounted filesystems (of all types). Otherwise, `df' reports on the filesystem containing each argument file.

That what I need... Thanks.

...but don't woory, I'll try your hint, maybe it works better.
  #6 (permalink)  
Old 04-29-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
Quote:
Originally posted by saulolps
df:

Display free disk space.
With no arguments, `df' reports the space used and available on all currently mounted filesystems (of all types). Otherwise, `df' reports on the filesystem containing each argument file.

That what I need... Thanks.

...but don't woory, I'll try your hint, maybe it works better.
your original question was "How may I get the size of the HD, I mean, wich command do I have to type?"

df will not provide the answer you were asking for, but if you wanted to know how much space you have on _mounted_ filesystems then yes df would be the command your looking for.

mounted disks and complete disk geomitry (sp) are 2 differant things.

but as i said before df will showyou disk/virtual/networked filesystem space useage.

either way you got what you were looking for.
  #7 (permalink)  
Old 04-30-2004
sssow sssow is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 179
If you ever want to get the size of hard disk on solaris try this

iostat -En
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0