You are not logged in.

#1 2016-11-13 14:35:03

ccpplinux
Member
Registered: 2011-05-06
Posts: 41

[Solved] Wrong output of df command

Hi,
On my arch linux vps on transip.eu, recently I have upgraded my plan from 50GB to 150GB. Before upgrade, there were two partitions /dev/vda1 of 2GB for swap annd /dev//vda2 of 48GB for root. After upgrade, another 100GB free space was provided to me. So using cfdisk command, I first of all deleted the partition /dev/vda2 and re-created having size 148GB keeping the starting sector of the partition same as before. Then I executed the command "resize2fs /dev/vda2 148G" to resize it. Now when I am viewing the output of "fdisk -l" command then it is showing the size of the partition /dev/vda2 to 148GB which is correct but when I am viewing the output of "df -h" command then it is still displaying the size of the partition to be 48GB. Similarly the system information being displayed by webmin is also displaying the size of local disk space to be 48GB. So it is very strange. Why it is happening?

Best Regards ...

Pankaj Kumar

Last edited by ccpplinux (2016-11-13 16:47:48)

Offline

#2 2016-11-13 15:44:35

ccpplinux
Member
Registered: 2011-05-06
Posts: 41

Re: [Solved] Wrong output of df command

After reading help at http://positon.org/resize-an-ext3-ext4-partition I again executed the command resize2fs command as follows without 2nd argument:

resize2fs /dev/vda2

And in this case it worked. Now the df -h command is displaying the partition size as 146GB. So now this problem has been fixed.

Offline

#3 2016-11-13 15:55:52

ccpplinux
Member
Registered: 2011-05-06
Posts: 41

Re: [Solved] Wrong output of df command

[Solved]

Offline

#4 2016-11-13 16:04:23

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [Solved] Wrong output of df command

Please edit your topic title to reflect that the topic is solved.

Mod note: not an installation issue, moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-11-13 16:08:40

ccpplinux
Member
Registered: 2011-05-06
Posts: 41

Re: [Solved] Wrong output of df command

But how to change post title? I am not viewing any option for this. Please send me steps.

Offline

#6 2016-11-13 16:42:54

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] Wrong output of df command

ccpplinux wrote:

how to change post title?

Use the "Edit" button on your first post in this thread -- the title is part of that post (apparently tongue ).


Jin, Jîyan, Azadî

Offline

#7 2016-11-13 16:48:12

ccpplinux
Member
Registered: 2011-05-06
Posts: 41

Re: [Solved] Wrong output of df command

Thanks. I have done this.

Offline

Board footer

Powered by FluxBB