[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Large hard disk confusion



On Sun, Feb 06, 2005 at 08:24:25AM -0600, Ron Johnson wrote:

> On Sun, 2005-02-06 at 10:44 +0100, Marcus Lundblad wrote:

> > On Sun, 6 Feb 2005, Brian Clark wrote:

> > > I just installed sarge on a 160 GB hard disk. Partitions are 2GB swap,
> > > 50 MB /boot, and the rest for /.

> > > ~$ df -ahT
> > > Filesystem    Type    Size  Used Avail Use% Mounted on
> > > /dev/hda3     ext3    145G  230M  138G   1% /
> > > proc          proc       0     0     0   -  /proc
> > > devpts      devpts       0     0     0   -  /dev/pts
> > > tmpfs        tmpfs    443M     0  443M   0% /dev/shm
> > > /dev/hda1     ext3     45M  9.3M   33M  23% /boot
> > > usbfs        usbfs       0     0     0   -  /proc/bus/usb

> > > My question is, why is hda3 only showing as 145 GB? Surely ext3 isn't
> > > taking up gigabytes worth of journal information?

> > I think it's common that "160 GB" means 160000000000 bytes when 
> > manufactures defines harddrive space.
> > And 160 "real" GB is 201997680640

> 160 GiB = 171,798,691,840
> 160 GB  = 160,000,000,000

> If OP would read the fine print on his hard drive, he would see
> that the manufacturer clearly specifies that GB == 1,000,000,000,
> i.e. 10^9, *not* 2^30.

Thank you very much, Ron et al.

Now that I understand that, which was embarrassing, I might as well
embarrass myself further.

It seems like I'm still missing some space somehow.

$ df -a --block-size=1000
Filesystem    Type  1kB-blocks      Used Available Use% Mounted on
/dev/hda3     ext3   155510408    262910 147347940   1% /
proc          proc           0         0         0   -  /proc
devpts      devpts           0         0         0   -  /dev/pts
tmpfs        tmpfs      463561         0    463561   0% /dev/shm
/dev/hda1     ext3       46214      9659     34089  23% /boot
usbfs        usbfs           0         0         0   -  /proc/bus/usb

$ swapon -s
Filename                        Type            Size    Used    Priority
/dev/hda2                       partition       1951888 0       -1

proc isn't stored on the hard disk IIRC, and tmpfs is in memory, right?

(155510408 + 46214 + 1951888) * 1000 = 157,508,510,000

Where's the other 2,491,490,000?

-- 
Brian Clark



Reply to: