Find the answer to your Linux question:
Results 1 to 3 of 3
I like to see the unmounted hard disk space free that can be used to create more partition using fdisk. Please see below "fdisk -l" shows the following table Disk ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    5

    Display Free Hard Disk Space using Fdisk

    I like to see the unmounted hard disk space free that can be used to create more partition using fdisk. Please see below "fdisk -l" shows the following table

    Disk /dev/sda: 250.0 GB, 250000000000 bytes
    64 heads, 32 sectors/track, 238418 cylinders
    Units = cylinders of 2048 * 512 = 1048576 bytes
    Disk identifier: 0x49e2fd2f

    Device Boot Start End Blocks Id System
    /dev/sda1 5 900 917504 5 Extended
    /dev/sda2 901 4995 4193280 6 FAT16
    /dev/sda4 * 1 4 4080 4 FAT16 <32M
    /dev/sda5 5 254 255984 6 FAT16
    /dev/sda6 255 504 255984 6 FAT16
    /dev/sda7 505 614 112624 fc VMware VMKCORE
    /dev/sda8 615 900 292848 6 FAT16

    If I use "fdisk /dev/sda". I can create a partition /dev/sda3 and more but I want to see the free space before creating the partition.

    Using "fdisk -l" does not displays the free space that can be used like to create partition /dev/sda3, which is the free space on the partition around 244GB. I like to see that or how I can display that so I can create a partition on it. Any tip would be nice.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I think this is what you're looking for?

    Code:
    df -h

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    I believe OP is asking about free space that can be used for additional partitions.

    You have all of this information from fdisk in the form of the number of blocks total and the starting/ending blocks for each partition.

    If you don't want to read that information manually, use a GUI tool.

Posting Permissions

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