[techtalk] linux + disk

Jeff Dike jdike at karaya.com
Tue Dec 28 23:45:20 EST 1999


> > Also, I seem to remember there's a way to find out how large a disk I
> > have without having to open my box and look at it.  Anyone?
> Try the command df 

That only tells you about filesystems on the disk which isn't necessarily what 
she wants.

echo p | fdisk /dev/hdb

is a little messy, but seems to do the trick.  I'm not sure whether fdisk 
tells you about unused space, though.

grep hdb /var/log/messages|more

is better.  It tells you what the disk told the OS when it booted.

				Jeff



************
techtalk at linuxchix.org   http://www.linuxchix.org




More information about the Techtalk mailing list