Nooo. It’s not
Ooh. Nothing yet has been display
What is the output of the following two commands?
df -Th
ls -lh /
Here is the output
0 /tmp
8.0K /mnt
12K /srv
16K /lost+found
108K /timeshift
14M /etc
130M /boot
227M /root
793M /opt
9.6G /var
11G /usr
258G /home
279G /
279G total
On a new terminal right?
Output on a new terminal
~ df -TH ✔
Filesystem Type Size Used Avail Use% Mounted on
dev devtmpfs 6.2G 0 6.2G 0% /dev
run tmpfs 6.3G 74M 6.2G 2% /run
/dev/sdb iso9660 4.1G 4.1G 0 100% /run/miso/bootmnt
cowspace tmpfs 269M 0 269M 0% /run/miso/cowspace
overlay_root tmpfs 9.4G 154M 9.2G 2% /run/miso/overlay_root
/dev/loop0 squashfs 98M 98M 0 100% /run/miso/sfs/livefs
/dev/loop1 squashfs 910M 910M 0 100% /run/miso/sfs/mhwdfs
/dev/loop2 squashfs 2.1G 2.1G 0 100% /run/miso/sfs/desktopfs
/dev/loop3 squashfs 967M 967M 0 100% /run/miso/sfs/rootfs
overlay overlay 9.4G 154M 9.2G 2% /
tmpfs tmpfs 6.3G 0 6.3G 0% /dev/shm
tmpfs tmpfs 6.3G 0 6.3G 0% /tmp
tmpfs tmpfs 6.3G 3.7M 6.3G 1% /etc/pacman.d/gnupg
tmpfs tmpfs 1.3G 91k 1.3G 1% /run/user/1000
/dev/sda1 ext4 314G 299G 0 100% /mnt
shm tmpfs 6.3G 0 6.3G 0% /mnt/dev/shm
run tmpfs 6.3G 0 6.3G 0% /mnt/run
tmp tmpfs 6.3G 0 6.3G 0% /mnt/tmp
overlay overlay 9.4G 154M 9.2G 2% /mnt/etc/resolv.conf
~ ls -lh / ✔
total 57K
lrwxrwxrwx 1 root root 7 Jan 30 15:13 bin -> usr/bin
drwxr-xr-x 1 root root 3 Mar 16 12:01 boot
-rw-r--r-- 1 root root 22K Mar 16 12:00 desktopfs-pkgs.txt
drwxr-xr-x 21 root root 4.1K May 30 13:59 dev
drwxr-xr-x 1 root root 580 May 30 12:06 etc
drwxr-xr-x 1 root root 60 May 30 12:06 home
lrwxrwxrwx 1 root root 7 Jan 30 15:13 lib -> usr/lib
lrwxrwxrwx 1 root root 7 Jan 30 15:13 lib64 -> usr/lib
-rw-r--r-- 1 root root 24K Mar 16 12:01 livefs-pkgs.txt
drwxr-xr-x 18 root root 4.0K Apr 6 22:04 mnt
drwxr-xr-x 1 root root 27 Mar 16 12:01 opt
dr-xr-xr-x 274 root root 0 May 30 12:05 proc
drwxr-x--- 1 root root 140 May 30 12:06 root
-rw-r--r-- 1 root root 5.2K Mar 16 11:51 rootfs-pkgs.txt
drwxr-xr-x 33 root root 760 May 30 14:00 run
lrwxrwxrwx 1 root root 7 Jan 30 15:13 sbin -> usr/bin
drwxr-xr-x 4 root root 38 Mar 16 11:50 srv
dr-xr-xr-x 13 root root 0 May 30 12:06 sys
drwxrwxrwt 11 root root 340 May 30 14:37 tmp
drwxr-xr-x 1 root root 140 May 30 12:06 usr
drwxr-xr-x 1 root root 140 Mar 16 12:01 var
~
That’s quite a lot. I suspect you’ve got lots of packages in /var/cache/pacman/pkg
. That will be a candidate for pruning.
Now that is extreme. What all have you got in there?
What do you think I should do?
Well, for starters, I would first and foremost clean out the package cache…
sudo rm -f /var/cache/pacman/pkg/*
But that’s only a patch for the bleeding, because the problem appears to be that you’ve got close to 260 GiB in your home directory, and we have no idea what you have all in there. I am guessing computer games and such. So you’re going to have to delete some of that stuff in order to make more room again.
I don’t play games. So i don’t have games on my PC but i have lots of tutorial videos
Well, videos commonly take up a lot of space, and especially so if they’re in high-definition. So I’m afraid you’re going to have to delete some of them, or move them to another storage medium — e.g. an external SSD or HDD that you connect via USB — but that’s what’s filling up your drive, and I guess by now you know that this is a real problem.
So how can I delete some of them from the terminal?
How much space is it gonna need to run effectively?
cd /home/your-user-name-here
Then, find out where you put the videos and cd
into that folder. Then use the rm
command to delete them. You can use globbing characters such as *
and ?
to delete multiple videos at once, but if they’re all in the same directory (“folder”), then you’re going to have to be careful in order not to delete them all at once.
rm -f filename-here
However, there is perhaps a more careful way. Use the file manager on the live USB and navigate to /mnt/home/your-user-name
, and then you can more easily select which ones you want to delete.
That is difficult to say, but I’d free up at least 20 GiB if I were you.
I have 29gig free space now
Well, I guess then now you can check whether you can log in again.
Be sure to cleanly reboot and remove the USB in time.
Yoo. It works.
Thank you so much. I really appreciate
Either way it’s a lot easier to use -x
(don’t cross filesystem boundaries), which would automatically exclude anything on a different filesystem to the supplied path.
# this will restrict it to the / filesystem
# which is exactly what's called for
sudo du -xchd1 / | sort -h
If it’s just mounted to /mnt then you don’t have to exclude any of the listed directories since nothing is mounted there. Also /run/user should be /run, since it’s a temporary filesystem and is not part of /.
Yes, I changed that in my subsequent advice once I figured that out that the OP was already inside a chroot
.