I had a 3.2GB IDE HDD in my RH8 firewall. I used a hardware drive duplicator to create a new 20GB drive for the firewall. My root partition WAS 2.7GB, I used parted to expand it to 15GB on the new drive.
Now, when I use df to view the freespace, it still tells me I have a 2.7GB root partition. BUT, when I look at the drive with fdisk, it shows the proper partition size. Why do the two show differing sizes? Is df telling me my actual limitation? Or is it incorrect and fdisk is telling me the right information?
---------------------------------------------
Please don't laugh at the partition scheme - I built it several years ago before I knew better
[root@fw01 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 2.7G 2.4G 247M 91% /
/dev/hda1 95M 9.0M 81M 10% /boot
none 109M 0 108M 0% /dev/shm
[root@fw01 /]# fdisk /dev/hda
The number of cylinders for this disk is set to 2534.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 255 heads, 63 sectors, 2534 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 34 168682+ 82 Linux swap
/dev/hda3 35 1912 15085035 83 Linux
/dev/hda4 1913 2534 4996215 83 Linux