Resize the file system in Linux: resize2fs

Resize the file system in Linux: resize2fs

resize2fs is a command used to expand or shrink the size of an unmounted "ext2/ext3/ext4" file system. We don't use it very often. Generally, VPS hosts either need to mount more files themselves or need to enlarge or shrink unmounted files themselves. If you happen to encounter one, record it. It is suitable for novices, but veterans should avoid it.

As shown in the figure above, the disk root directory has only 1.8GB of space, but the capacity of /dev/vda is correct and does not need to be mounted separately. At this time, we can use the resize2fs command to increase the size of the file system.

After the command is executed, we can see that the space capacity is normal. Here is how to use the command.

Syntax

resize2fs [parameters] [options]

Common parameters

-d turns on debugging features

-p Print a progress bar showing the percentage completed

-f Force resize operation, overriding safety check operation

-F Flush the file system device buffer before starting the resize

<<:  Maxthon Host Los Angeles Unicom AS9929 Line VPS Simple Test

>>:  RackNerd: $9.49/year KVM-768MB/12GB/2TB/San Jose and other data centers

Recommend

Learn more about Zero Trust Network Access (ZTNA)

Traditional perimeter-based network protection co...

“Unlimited” is just a cover. Which data card is the most cost-effective?

In order to use more affordable mobile data, I be...

BGPTO Singapore $49/month dedicated server simple test

A few days ago, the blog shared the information t...

SDN: From ideal to reality

SDN is more than 10 years old. When it first came...

The impact of drone technology and use cases

Before we dive into the ways drones can make the ...

Managing a data center requires foresight

More and more businesses are finding that in orde...

Understanding Internet Protocol Security — IPSec

​IPSec (Internet Protocol Security) is a security...

Wi-Fi 6 is here! Wireless veteran explains the next generation of Wi-Fi

[[263958]] Why is it called Wi-Fi 6? Each new Wi-...

5G means data center platforms must evolve

The foundation for seamless 5G implementation 5G ...

STM32 Network SMI Interface

[[377132]] 01 Introduction to Ethernet The Ethern...

Happy New Year!

The rat has gone and the ox has come, bringing ne...