Hard disc space availble? Hard drive size

Jerry McAllister jerrymc at clunix.cl.msu.edu
Thu Jun 12 08:21:48 PDT 2003

> How do you tell what size your hard drive is. And how much free space is
> left.

Also, for absolute size (before partitioning and newfsing, etc)
use fdisk(8).   Without any switches telling it to write, it will
give the total disk size in (512 byte) blocks and list the slices 
and their sizes and tell which ones are bootable.  Note that with
modern disks the geometry (cylinders, tracks, sectors) is sort of 
a virtual geometry and not the actual physical layout of the disk.

So, su to root
    fdisk da0   (for example of a SCSI disk 0, substitute the 
                 appropriate device name - use df or look in /etc/fstab)


> Dan
> _______________________________________________

More information about the freebsd-questions mailing list