/root is full. Where did all my disk space go?

Cachy is reporting that my SSD is full but it is a 500GB capacity and doesnt have nearly enough installed to eat up that much space - its basically just CachyOS and a bunch of gaming tools they provide in the tweaks section, and 2 games at about 80GB each. So where the heck is all my disk space hiding? I feel like something is off… here is truncated output from inxi -bGi. How is this even possible to use 231% of a disk, and how is 3.18TB 231% of 8.6TB?

Drives:
Local Storage: total: raw: 8.65 TiB usable: 1.38 TiB used: 3.18 TiB (231.1%)

output of du

sudo du -hc --max-depth=1 /
345M ./.config
25G ./.local
8.0K ./Desktop
7.6M ./Downloads
0 ./Templates
0 ./Public
334M ./Documents
0 ./Music
68M ./Pictures
0 ./Videos
965M ./.cache
40K ./.steam
68K ./.pki
0 ./.nv
0 ./Games
79M ./.mozilla
436K ./plex-media-server
74M ./.cachy
231M ./snapd
4.0K ./snap
702M ./.var
72K ./.gnupg
28G .
28G total

Please let me know any other info that I can provide and thank you for the assist.

This is likely due btrfs calculating wrong. Thats a known bug of showing total storage in some apps.

Please check with the program “ncdu” what is using so much space.

Thanks ptr1337
ndcu is reported as an unrecognized command. Do I need to run it from a specific directory? I can see in octopi that the package is installed.

sudo pacman -S ncdu

I was able to run the utility after installing via pacman… I have questions on this but I’ll save it for another time.

Here is the output of ncdu
ncdu 2.4 ~ Use the arrow keys to navigate, press ? for help
— /home/jasonc -------------------------------------------------------------------------------------------------------------------------
25.4 GiB [###################] /.local
1.0 GiB [ ] /.cache
701.7 MiB [ ] /.var
345.0 MiB [ ] /.config
333.5 MiB [ ] /Documents
230.6 MiB [ ] /snapd
83.6 MiB [ ] /.mozilla
73.9 MiB [ ] /.cachy
67.2 MiB [ ] /Pictures
7.6 MiB [ ] /Downloads
436.0 KiB [ ] /plex-media-server
72.0 KiB [ ] /.gnupg
68.0 KiB [ ] /.pki
40.0 KiB [ ] /.steam
12.0 KiB [ ] /Desktop
4.0 KiB [ ] .nvidia-settings-rc
4.0 KiB [ ] download-tux4ubuntu-installer.sh
4.0 KiB [ ] .gtkrc-2.0
4.0 KiB [ ] .bashrc
4.0 KiB [ ] /snap
4.0 KiB [ ] .bash_profile
4.0 KiB [ ] .zshrc
@ 4.0 KiB [ ] .steampath
@ 4.0 KiB [ ] .steampid
4.0 KiB [ ] .bash_logout
0.0 B [ ] /Games
0.0 B [ ] /.nv
e 0.0 B [ ] /Videos
e 0.0 B [ ] /Templates
e 0.0 B [ ] /Public
e 0.0 B [ ] /Music

And here is the output of lsblk
❯ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 55.7M 1 loop /var/lib/snapd/snap/core18/2823
loop1 7:1 0 63.9M 1 loop /var/lib/snapd/snap/core20/2318
loop2 7:2 0 87.6M 1 loop /var/lib/snapd/snap/plexmediaserver/440
loop3 7:3 0 38.8M 1 loop /var/lib/snapd/snap/snapd/21759
loop4 7:4 0 60K 1 loop /var/lib/snapd/snap/usb-reset/22
sda 8:0 1 3.6T 0 disk
├─md126 9:126 0 7.3T 0 raid0
│ ├─md126p1 259:9 0 128M 0 part
│ └─md126p2 259:10 0 7.3T 0 part /run/media/jasonc/Vault
└─md127 9:127 0 0B 0 md
sdb 8:16 1 3.6T 0 disk
├─md126 9:126 0 7.3T 0 raid0
│ ├─md126p1 259:9 0 128M 0 part
│ └─md126p2 259:10 0 7.3T 0 part /run/media/jasonc/Vault
└─md127 9:127 0 0B 0 md
zram0 254:0 0 31.1G 0 disk [SWAP]
nvme1n1 259:0 0 476.9G 0 disk
├─nvme1n1p1 259:1 0 512M 0 part /boot/efi
├─nvme1n1p2 259:2 0 2G 0 part /boot
└─nvme1n1p3 259:3 0 474.4G 0 part /var/tmp
/var/log
/var/cache
/root
/home
/srv
/

I think you have configured a pretty weird stuff.

Why is your root parition mounted in /var/tmp ??

 nvme1n1 259:0 0 476.9G 0 disk
├─nvme1n1p1 259:1 0 512M 0 part /boot/efi
├─nvme1n1p2 259:2 0 2G 0 part /boot
└─nvme1n1p3 259:3 0 474.4G 0 part /var/tmp
```

what do you store in ~/.local?)
it shouldn’t be that much. also ~/.var shouldnt exist

I have to be honest here. I have no idea how this stuff got the way it is. - I have very little knowledge of this environment. I used the wipe option when installing and chose the rEFInd bootloader. Installed and just started using the OS. It is highly possible I issued a command and did not understand what it does.

I’d prefer not to, but if I need to I am ok with just wiping it clean and starting over. There is nothing critical on it right now. Definitely a learning moment.

Digging through some chicken scratch here and its very possible I mounted it in the wrong spot or used the wrong command when trying to light up the array for my plex server? Thats the only thing I can think of ATM.

Is there a particular reason you have /snapd? I am asking because that is something one would rarely expect to see out side of official ubuntu based distributions.

i googled how to install an application I was looking for, I followed the instructions to install the app.

I would have recommended you check to see if there was a flatpak version available first. Snaps are a foreign package type to be using with arch linux. But thats just my opinion. That being said, would you care to elaborate on what the application/program name is? In case it might be possible to build it from source? Depending on your answer, it would be a major benefit to others who might also want it.

Based on most of the feedback I got; those partitions were hosed, it would have taken me longer to figure out how to repair the damage so I just wiped and reinstalled. I was up and playing games again in about and hour and a half.

We can put this one to bed and chalk it up to an EBKAC

I want to say it was Plex media server? I didn’t understand the instructions provided by Arch wiki so I looked for an easier route. I still have trouble with the whole process of installing something from git or aur.