如何重新划分linux分区大小

1.下载脚本文件,将脚本文件内容复制

chmod +x resize.sh
sudo ./resize.sh

输入上面命令后会看到下面的结果

root@odroid:~# 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),重启完成后再重新运行一次脚本文件

root@odroid:~# 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

posted @ 2016-09-01 08:44  HarleyGwak  阅读(3156)  评论(0编辑  收藏  举报