This is my disk layout. I want to expand /dev/sda2 to occupy all the free space
I'm running this command from a live session:
sudo resize.f2fs -t 449984510 /dev/sda2
I realize that something is missing:
resize.f2fs [ -t target sectors ] [ -d debugging-level ] device
Maybe it is:
resize.f2fs -t /dev/sda2 449984510 /dev/sda
Sorry but the manual is confusing and short
And this is the output I get:
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 223944704 (109348 MB)
Info: MKFS version
"Linux version 4.10.0-28-generic (buildd@lgw01-12) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017"
Info: FSCK version
from "Linux version 4.10.0-19-generic (buildd@lcy01-13) (gcc version 6.3.0 20170321 (Ubuntu 6.3.0-10ubuntu1) ) #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017"
to "Linux version 4.10.0-19-generic (buildd@lcy01-13) (gcc version 6.3.0 20170321 (Ubuntu 6.3.0-10ubuntu1) ) #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017"
Info: superblock features = 0 :
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: total FS sectors = 223944704 (109348 MB)
Info: CKPT version = 1b43
Here's the sector info on the partitions:
sudo fdisk -l /dev/sda
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3fff99f8
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 284313599 282214400 134.6G 83 Linux
/dev/sda4 452085760 468860927 16775168 8G 82 Linux swap / Solaris
