css3
V2EX  ›  问与答

n1 用 armbian 系统根分区满了,怎么利用移动硬盘的空间?

  •  
  •   css3 · Apr 27, 2021 · 1578 views
    This topic created in 1866 days ago, the information mentioned may be changed or developed.

    n1 使用的 armbian系统,外接挂载了 1 2 个分区的移动硬盘,格式是 常规的 NTFS 的。我常用占空间的是 docker 镜像,google 了一下想将移动硬盘分区当成 docker 镜像默认存储分区,按以下设置无效,这是只能扩容了吗😂,除了扩容,还有其他方法吗?

    https://medium.com/clusterfk/use-a-different-volume-for-your-docker-images-in-ubuntu-4c0315be6d66

    image.png

    Supplement 1  ·  Apr 27, 2021

    就在刚刚,尝试把一个U盘格式化成ext4格式,自动挂载上,/etc/fstab里边添加dev/sdb1 /mnt ext4 defaults,nosuid 0 0,然后mount -a测试正常挂载,一个reboot后悲剧了,直接进入急救模式了,提示挂载错误,没拔U盘,恢复/etc/fstab,reboot后,还是急救模式,U盘拔掉后重启才正常,这就很奇怪了,是U盘不能用ext4格式吗?

    5 replies    2021-04-28 16:45:56 +08:00
    uTOmOuk3L6sb4MSI
        1
    uTOmOuk3L6sb4MSI  
       Apr 27, 2021 via iPhone
    css3
        2
    css3  
    OP
       Apr 27, 2021
    @ODD10 硬盘 ntfs 格式就可以?
    css3
        3
    css3  
    OP
       Apr 28, 2021
    @ODD10 尝试了你这个方法,没有用,验证那一步,还是默认的路径:/var/lib/docker
    css3
        4
    css3  
    OP
       Apr 28, 2021
    @css3 文件系统格式是 ext4
    css3
        5
    css3  
    OP
       Apr 28, 2021
    @css3
    @ODD10 重新用硬盘尝试了一下方法 C,可行👍, 不过我没执行最后一步,最后一步只是自动挂载磁盘吧,我是用 fstab 自动挂载的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2507 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:25 · PVG 09:25 · LAX 18:25 · JFK 21:25
    ♥ Do have faith in what you're doing.