Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
I have a doubt with how to find the size of the hard disk of my server with RHEL 4.0(linux) which is hosting our 10g database. I tried, I feel ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33

    Size of hard disk

    I have a doubt with how to find the size of the hard disk of my server with RHEL 4.0(linux) which is hosting our 10g database. I tried, I feel the commands like 'du -kh' give only the space used but not the total size of the hard disk. I have a doubt that there is some space on the hard drive which is not used, it is like un-used. As per my estimate, the hard disk estimate should be around 550 MB but the df -kh command only shows around 475 MB, so the other space may be un-mounted.

    I hope, my question is clear.

    Please, help in solving the doubt.

    regards

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    25
    you need to use the fdisk command

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33
    thanks, for your answer. But, fdisk command is not helpful. It will be appreciated if you can help me with the complete details as per my question.

  4. #4
    Just Joined!
    Join Date
    Feb 2009
    Posts
    25
    try this - fdisk (device name)
    fdisk command line: type "p" to print the partition table
    at the top of the result, you will see the actual hard disk size but it will be in bytes, you need to do your math to arrive at MB or GB

  5. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    As pointed by sed_addictive using -l option
    Code:
    fdisk -l /dev/device
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  6. #6
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33
    thanks, for your answer. In my scenario, I want to utilize the space which may not be shown by the 'df' command which is like un-mounted as I am running short on space.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Have you clean cache of Package Manager?
    Code:
    yum clean all
    Lets check if your disk has unpartitioned/free space. Post the output fdisk -l command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Feb 2009
    Posts
    25
    Quote Originally Posted by Lakshmipathi View Post
    As pointed by sed_addictive using -l option
    Code:
    fdisk -l /dev/device
    thank you so much for adding the option.. i missed out!

  9. #9
    Just Joined!
    Join Date
    Nov 2008
    Posts
    33
    thanks, for your answer. In my scenario, I want to utilize the space which may not be shown by the 'df' command which is like un-mounted as I am running
    short on space.

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    I want to utilize the space which may not be shown by the 'df' command which is like un-mounted as I am running
    Thats why I suggested you to post the output of fdisk -l command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...