Zoom In Zoom Linux physical partition size

As the product in different sections, the device hard disk is different, some 500G, 320G and some some 200G, started on a large hard drive configuration, want to own a good custom Linux clone to a small hard disk, renewable tangled space dragon will question, it is necessary to make some changes in the partition. 

Online on a bunch of logical partitions, physical partitions in fact, it is very simple
two-step process
the first step detection zones
  e2fsck -f / dev / sda1

second step is to partition to 245GB, the expansion does not matter, look at you reduce the space occupied, if the file occupies more than you set,
there will be problems
  resize2fs / dev / sda1 245G
is completed, there will be similar to the following sentence.

resize2fs  
Resizing at The filesystem ON / dev / sda1 to *** (4K) Blocks.
at The filesystem ON / dev / sda1 IS now *** Long Blocks.

Reproduced in: https: //my.oschina.net/mysticboy/blog/541375

Guess you like

Origin blog.csdn.net/weixin_33804582/article/details/92064643