Aws clearlinux disk full

i created aws c5n.metal(clearlinux) today

disk total size is over 95G

After the first run I did nothing.

but already /dev/root is full

what can i do??

/dev/root 976M 806M 108M 89% /
devtmpfs 95G 0 95G 0% /dev
tmpfs 95G 0 95G 0% /dev/shm
tmpfs 95G 1.4M 95G 1% /run
tmpfs 95G 0 95G 0% /sys/fs/cgroup
tmpfs 95G 0 95G 0% /tmp
tmpfs 19G 0 19G 0% /run/user/0

Can you show the output of

du -ch -d1 /dev/root

du -ch -d1 /dev/root
du: cannot access ‘/dev/root’: No such file or directory
0 total

you want to use the -x option for du. ncdu is ideal for this, but if it’s not installed… you obviously won’t be able to add it. Try sudo swupd clean to start - it might just clean up enough to get going.

so how can patch for disk full??

You need to remove some content. There is no simple solution to solve this problem:

  1. Delete something you don’t immediately need to free up some reasonable amount of space (~1gb should be enough). Ideally remove something the OS can easily restore, like a bundle you don’t really need.

  2. Figure out why you’re disk full. Resolve the problem on a structural level - e.g. remove log files that have grown to 50GB, delete cache files you don’t need, temporary system images, old backups, software that is not used.

  3. Restore what you erased in step 1 if needed later.