accessing complete disk in instance in google cloud

Google console shows that the disk size is 100 GB:

enter image description here

df -h show:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        10G  2.4G  7.7G  24% /           ---> why does it show only 10 GB
devtmpfs        3.7G     0  3.7G   0% /dev
tmpfs           3.7G     0  3.7G   0% /dev/shm
tmpfs           3.7G   89M  3.6G   3% /run
tmpfs           3.7G     0  3.7G   0% /sys/fs/cgroup

fdisk -l show: (It shows disk /dev/sda and device boot as /dev/sda1)
Do i have two disk… what is this telling me ?

Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x000917b9
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    20969472    10483712+  83  Linux

Googling tells run a resize2fs and it shows:

resize2fs /dev/sda
    resize2fs 1.42.9 (28-Dec-2013)
    resize2fs: Device or resource busy while trying to open /dev/sda
    Couldn't find valid filesystem superblock.
resize2fs /dev/sda1
   resize2fs 1.42.9 (28-Dec-2013)
   resize2fs: Bad magic number in super-block while trying to open /dev/sda1
   Couldn't find valid filesystem superblock.

How do a access the complete 100GB ?

Env: centos 7 created using the google provided image


Source: linux

Leave a Reply