V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jsjcjsjc
V2EX  ›  问与答

debian 9 的 磁盘去哪了?

  •  
  •   jsjcjsjc · Mar 21, 2018 · 2012 views
    This topic created in 2971 days ago, the information mentioned may be changed or developed.
    系统是 deian9
    用 cfdisk 命令看了没有问题,有 999GB


    Device Boot Start End Sectors Size Id Type
    >> /dev/vda1 * 2048 2096625279 2096623232 999.8G 83 Linux
    /dev/vda2 2096625280 2097149567 524288 256M 82 Linux swap / Solaris
    Free space 2097149952 2097151999 2048 1M


    但是用 df -hT 查看却只有 15Gb


    Filesystem Size Used Avail Use% Mounted on
    udev 790M 0 790M 0% /dev
    tmpfs 161M 4.1M 156M 3% /run
    /dev/vda1 14G 2.5G 12G 18% /
    tmpfs 801M 0 801M 0% /dev/shm
    tmpfs 5.0M 0 5.0M 0% /run/lock
    tmpfs 801M 0 801M 0% /sys/fs/cgroup
    tmpfs 161M 0 161M 0% /run/user/1000

    应该怎么使用剩下的磁盘?

    谢谢啊
    4 replies    2018-03-21 15:44:12 +08:00
    Osk
        1
    Osk  
       Mar 21, 2018 via Android   ❤️ 1
    看文件系统了,可能要 resize2fs 一下?
    jsjcjsjc
        2
    jsjcjsjc  
    OP
       Mar 21, 2018
    @Osk 我决定不用一键脚本了~~自己桥代码~~
    msg7086
        3
    msg7086  
       Mar 21, 2018
    resize2fs /dev/vda1
    Cu635
        4
    Cu635  
       Mar 21, 2018
    @jsjcjsjc
    呃,自己不会敲代码就敢用一键脚本?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3103 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 13:46 · PVG 21:46 · LAX 06:46 · JFK 09:46
    ♥ Do have faith in what you're doing.