How to clear /dev/vda1 ext4

Discussion in 'Linux Beginners' started by pecka33, Dec 21, 2020.

Tags:
  1. pecka33

    pecka33 Member

    Hello,

    is here anybody who can tell me how can i clear or increase memory for /dev/vda1 ext4? I used command df and see

    Code:
    Filesystem 1K-blocks Used Available Use% Mounted on
    udev 4070316 0 4070316 0% /dev
    tmpfs 817036 82376 734660 11% /run
    /dev/vda2 61582692 7717792 51317692 14% /
    tmpfs 4085168 0 4085168 0% /dev/shm
    tmpfs 5120 0 5120 0% /run/lock
    tmpfs 4085168 0 4085168 0% /sys/fs/cgroup
    /dev/vda1 274407 182548 73171 72% /boot
    tmpfs 817032 0 817032 0% /run/user/0
    

    I tried to clear memory cache etc., but nothing works for this, thank you.
     
    Last edited: Dec 21, 2020
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    At least post the garbage in CODE tags so it is readable. And use df -h so numbers are human readable.
    Code:
    Filesystem 1K-blocks  Used          Available    Use% Mounted on
    udev           4070316     0                4070316    0% /dev
    tmpfs          817036      82376         734660     11% /run
    /dev/vda2    61582692  7717792      51317692 14% /
    tmpfs          4085168     0                 4085168  0% /dev/shm
    tmpfs          5120           0                 5120        0% /run/lock
    tmpfs          4085168     0                 4085168  0% /sys/fs/cgroup
    /dev/vda1    274407       182548       73171      72% /boot
    tmpfs          817032       0                 817032     0% /run/user/0
    /dev/vda1 is not memory, it is disk partition. If you want to make it larger, gparted can change disk partition sizes. Very risky, make good backup before trying this.
    If you have multiple kernel images, try removing the oldest, that should free some space.
    Examine what you have stored in /boot, maybe there are unneeded extra files you can delete.
     
    Last edited: Dec 21, 2020
    Jesse Norell likes this.
  3. pecka33

    pecka33 Member

    Thank you. I check my files, after that tried
    Code:
     sudo apt autoremove
    sudo apt-get clean
    
    and now is size on 45 %.

    That was
    Code:
     linux-image-4.19.0-10-amd64 linux-image-4.19.0-8-amd64
    , linux image for it.
     
  4. manoaratefy

    manoaratefy New Member

    Good morning,
    According to what I see on your previous post, /dev/vda1 is used as boot partition. Usually, boot partition is just enough to keep one kernel + headroom for updating kernel.
    Packages linux-image-xxxxxxx-amd64 are Linux kernel. Usually, you only have one version installed. But for your security, when you update your kernel, the old one remains until you remove it manually. It allow you to return to your old kernel if you experience problems with the new kernel.
    So, next time don't forget to remove old kernels once you move definitely to a newer kernel.
     

Share This Page