1828444 Members
2952 Online
109977 Solutions
New Discussion

partition issue

 
Pradeep_7
Occasional Advisor

partition issue

I have made a partition for 40GB using fdisk. When I look for the list of partitions there, it shows me the partition made is 40GB but, after I mount that and check it with df -h it shows me the partition is only 10GB. Is this mean the partition is made to 40GB according to fdisk or its made to 10GB according to df?
2 REPLIES 2
I_M
Honored Contributor

Re: partition issue

Hi

Could you post following output?

fdisk -l /dev/yourdisk
df -h
df

and
version of fileutils RPM
# rpm -q fileutils

version of util-linux
# rpm -q util-linux

What your distro?

version of RedHat release?
# cat /etc/redhat-release

Do you think your bios support more than 33GB disk drive?

Regards,
Pradeep_7
Occasional Advisor

Re: partition issue

Output of fdisk -l /dev/hdb10

Disk /dev/hdb10: 255 heads, 63 sectors, 5221 cylinders
Units = cylinders of 16065 * 512 bytes

Disk /dev/hdb10 doesn't contain a valid partition table

Output of df -h

Filesystem Size Used Avail Use% Mounted on
/dev/hdb7 980M 244M 687M 27% /
/dev/hdb1 45M 5.9M 37M 14% /boot
/dev/hdb3 1.9G 33M 1.7G 2% /home
none 125M 0 124M 0% /dev/shm
/dev/hdb6 1.4G 266M 1.1G 19% /tmp
/dev/hdb2 2.9G 1.4G 1.3G 50% /usr
/dev/hdb5 1.9G 57M 1.7G 4% /var
/dev/hdb9 9.8G 6.7G 2.7G 71% /u01
/dev/hdb10 9.8G 9.4G 0 100% /myapps

Output of df

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hdb7 1004024 249488 703532 27% /
/dev/hdb1 46636 5955 38273 14% /boot
/dev/hdb3 2016044 32924 1880708 2% /home
none 127796 0 127796 0% /dev/shm
/dev/hdb6 1510032 271672 1161652 19% /tmp
/dev/hdb2 3020172 1421656 1445096 50% /usr
/dev/hdb5 2016016 57948 1855656 4% /var
/dev/hdb9 10325748 6950400 2850828 71% /u01
/dev/hdb10 10325748 9801228 0 100% /myapps

Version of fileutils RPM
fileutils-4.1-4

Version of util-linux
util-linux-2.11f-9

Version of RedHat release
Red Hat Linux release 7.2 (Enigma)

Any help would be appreciated.

Thanks.