当前位置:首页 > 知识探索 > 正文

openwrt istoreOS 扩容

简介欢迎使用Z-Blog,这是程序自动生成的文章,您可以删除或是编辑它: 系统生成了一个留言本和一篇《欢迎使用Z-BlogPHP!》...

进入终端

# 执行parted

root@iStoreOS:~# parted

...
(parted) print  

...

这里记住分区容量最大的那个分区序号3

(parted) resizepart

Partition number? 3

Warning: Partition /dev/sda3 is being used. Are you sure you want to continue?

Yes/No? yes                                                              

End?  [2551MB]? 120G

(parted) quit

Information: You may need to update /etc/fstab.

输入容量的时候如果你要扩容剩下的全部空间就输入比剩下空间大小大一些的数

# 执行resize2fs对文件系统进行扩容

root@iStoreOS:~# resize2fs -p /dev/sda3

# 执行df -h可以看到分区大小已经更新

root@iStoreOS:~# df -h

上一篇:未命名

下一篇:openwrt 终端修改ip

发表评论