I want to increase the size of /testmount from 20GB to 320GB.
- before
[root@testserver testmount]# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sda3 15G 10G 3.0G 74% /
/dev/sda1 936M 191M 739M 20% /boot
/dev/sda2 20G 15G 2.1G 93% /testmount
/dev/sda6 6.8G 36M 6.5G 1% /tmp
...
- Steps done to After partitioning /dev/sdb with 1 partition sdb1 with size of 300GB. i ran the below commands.
[root@testserver testmount]# mkfs -t ext4 /dev/sdb1
[root@testserver testmount]# mount /dev/sdb1 /testmount
- After steps
[root@testserver testmount]# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sda3 16G 11G 4.0G 74% /
/dev/sda1 976M 181M 729M 20% /boot
/dev/sdb1 296G 65M 281G 1% /testmount <<<<<<< sda2 disappeared from /testmount
/dev/sda6 5.8G 36M 5.5G 1% /tmp
..
Why am I not able to see /dev/sda2 here?
What step am i missing? I am total newbie on Linux system admin matters. I looked at few tutorials, but didn't get the answer.