Find the answer to your Linux question:
Results 1 to 3 of 3
Hello. I need to write a program where i get informations of partitions on the disk. I need to know how many there are and how much room do they ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    19

    Getting information of a disk.

    Hello.
    I need to write a program where i get informations of
    partitions on the disk. I need to know how many there are and
    how much room do they have left and so on.

    Please tell me some commands that will help me.

    Thank you.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Hi PeroMed,
    To Know about mounted disk partitions and it's free space details
    use df command
    df -h
    - 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
    -------------------

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    19
    Thanks for your answer.
    I used df -h -T to get types of partitions and it worked great.

Posting Permissions

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