1.下载脚本文件,将脚本文件内容复制
chmod +x resize.sh sudo ./resize.sh
输入上面命令后会看到下面的结果
[email protected]:~# sudo ./resize.sh Found the start point of mmcblk0p2: 266240 Ok, Partition resized, please reboot now Once the reboot is completed please run this script again
重启系统(reboot),重启完成后再重新运行一次脚本文件
[email protected]:~# sudo ./resize.sh Activating the new size resize2fs 1.42.5 (29-Jul-2012) Done! Enjoy your new space!
现在你的根目录就是你全部磁盘的大小了
脚本文件下载地址: 链接:http://pan.baidu.com/s/1gfsMl5D 密码:e2g7
时间: 2024-12-16 06:42:23