I have just installed a new 2TB disk, but "df -h" shows only 1.8TB - total size, and 1.7TB of free space. I have not used the disk yet. I realized it after I ran "mke2fs -t ext4".
Here are some output:
fdisk -l /dev/sda
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc579fda1
Device Boot Start End Blocks Id System
/dev/sda1 1 243201 1953512001 83 Linux
and:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc2 457G 304G 130G 71% /
devtmpfs 5.9G 296K 5.9G 1% /dev
tmpfs 5.9G 4.0K 5.9G 1% /dev/shm
/dev/md0 230G 21G 198G 10% /u01
/dev/sda1 1.8T 196M 1.7T 1% /idx
#
Nothing is there, because I just ext4 formatted it.
find /idx/
/idx/
/idx/lost+found
Mount output:
/dev/sdc2 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
devtmpfs on /dev type devtmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,mode=1777)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/md0 on /u01 type ext3 (rw)
/dev/sda1 on /idx type ext4 (rw)
I am running OpenSuse 11.3 x86_64.
-h
?tune2fs -l /dev/sda1
?