Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小白能否请教下要怎么扩容个分区? #1360

Open
latel opened this issue Apr 7, 2024 · 7 comments
Open

小白能否请教下要怎么扩容个分区? #1360

latel opened this issue Apr 7, 2024 · 7 comments

Comments

@latel
Copy link

latel commented Apr 7, 2024

image

docker的分区太小了,我随便装了个traefik就提示磁盘存储不够。我需要把docker的分区调的大一些。

root@OpenWrt:~# docker pull traefik:latest
latest: Pulling from library/traefik
bca4290a9639: Pull complete
3d4baaba5180: Pull complete
54ec8d4c0d6b: Extracting [==================================================>]  37.69MB/37.69MB
eb9404f9e59a: Download complete
failed to register layer: write /usr/local/bin/traefik: no space left on device
root@OpenWrt:~#
@stupidloud
Copy link
Owner

最简单的方法是卡拔下来通过读卡器连接到运行linux或者macos的电脑上,用fdisk分区工具和resize2fs进行重建分区和扩容

https://www.cnblogs.com/gucb/p/11528507.html

@hza1128
Copy link

hza1128 commented Apr 8, 2024

在你的磁盘那点-“修改”,然后拉到下面:如图,想增加多大就+几G,新建后格式化,然后挂载为 docker数据分区,对应修改 docker的配置,重启搞定!
5221712540881_ pic

@latel
Copy link
Author

latel commented Apr 8, 2024

好滴,我试试先

@latel
Copy link
Author

latel commented Apr 8, 2024

@hza1128

image

我这里是1507328加1024*1024*1024*5,15601663不动吗?

@latel
Copy link
Author

latel commented Apr 19, 2024

HELP 😢

@bboy2000
Copy link

刷好卡,在电脑上用diskgenius把未分配的空间格式化成ext4,然后克隆分区到这个大容量分区,克隆后删除原来的小的分区。

@latel
Copy link
Author

latel commented Oct 28, 2024

刷好卡,在电脑上用diskgenius把未分配的空间格式化成ext4,然后克隆分区到这个大容量分区,克隆后删除原来的小的分区。

多谢指导,这样说我就会了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@latel @stupidloud @bboy2000 @hza1128 and others