Hard disc space availble? Hard drive size

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

Hi again,

Actually, if you are really at FreeBSD 2.2.8 as your other message
seems to imply, I might be a little cautious about using fdisk in 
this way.   More recent versions of fdisk are much more sophisticated
and work well.   I vaguely remember that this might not be so easy
under FreeBSD 2.xxx, though I don't have one around now to check.

Read the man page carefully.


> > 
> > 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)
> ////jerry
> > 
> > Dan
> > 
> > _______________________________________________
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

More information about the freebsd-questions mailing list