如何重新划分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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM