zl程序教程

您现在的位置是:首页 >  系统

当前栏目

如何重新划分linux分区大小

Linux 如何 大小 分区 重新 划分
2023-09-27 14:27:18 时间

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

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

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

1
2
3
4
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),重启完成后再重新运行一次脚本文件

1
2
3
4
5
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