查看根目录隐藏文件发现.. .rootfs-repartition
[root@centos-rpi3 /]# ls -a /
. .readahead bin dev home lost+found mnt proc run srv tmp var
.. .rootfs-repartition boot etc lib media opt root sbin sys usr
更新下它的日期
[root@centos-rpi3 /]# touch /.rootfs-repartition
重启
[root@centos-rpi3 /]# sudo reboot
重启成功后,查看扩容情况,我的sd卡是32G
[root@centos-rpi3 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 28G 712M 26G 3% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 12M 451M 3% /run
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 300M 66M 235M 22% /boot
tmpfs 93M 0 93M 0% /run/user/0