You can start with running a full fsck on all of your ext4 partitions from a live USB session, but — and this is important! — without mounting them, let alone chroot’ing.
However, this sort of thing normally doesn’t happen out of the blue, so there is a possibility that the drive itself or the PCIe slot it is plugged into would be malfunctioning.
Thank you @Aragorn and @BG405,
smartmontools reports averything OK, but I’m confused
So chroot or NOT chroot?
And: In case a former check and repair using gParted may have removed some data, is it worth to restore /home/Username from an rsync-backup? If so, how?
or whatever the partition in question is.
The partition to be checked can’t be mounted.
That should not happen.
(and why would you want to use gparted ? - fsck is quite adequate for the job …
it actually is THE tool for the job …)
In any case:
That is only an option after you made sure that the file system holding the data is o.k.
Counter question:
How would you determine whether anything was “removed”?
The result of the fsck will give you a clue …
… an rsync backup creates a 1:1 copy of the contents of the file system at that time.
You can simply copy from one to the other - or use rsync again to restore the previous state.
But only after you know that the file system itself is o.k.
ps:
restoring (or not) your /home directory will not solve your problem, which appears to be that your Desktop or your display manager doesn’t even start.
The /home directory is not where this (possible) problem is located.
…
I’ll ask once again - for the third and last time
re your /etc/fstab
Is the directory /media
to which you try to mount several things
…
is it even present?
… because:
it will not even be there
if you do not create it first
No chroot. The filesystems may not even be mounted, or else fsck will cause even greater damage!
For that, you need to mount the /home filesystem, and the one holding the backups.
Assuming that you’re working from the live USB — as you should! — first mount your /home at /mnt.
sudo mount -t ext4 /dev/nvme0n1p4 /mnt/
Then, you need to create a mountpoint for the volume with the backups. As I don’t know what volume that is, I will use /dev/sdb1 in the example below — adjust as required.
I had shown the reduced /etc/fstabhere and it is still like this.
Yes, I’m mounting several thins to /media. All devices mounted like that can be accessed without any issue.
Yes, /media is present:
insgesamt 296
drwxr-xr-x 18 root root 4096 18. Mai 11:07 .
drwxr-xr-x 18 root root 4096 18. Mai 11:07 ..
lrwxrwxrwx 1 root root 7 8. Mai 02:57 bin -> usr/bin
drwxr-xr-x 5 root root 4096 3. Aug 18:00 boot
-rw-r--r-- 1 root root 23351 19. Okt 2020 desktopfs-pkgs.txt
drwxr-xr-x 20 root root 4420 5. Aug 16:03 dev
drwxr-xr-x 125 root root 12288 5. Aug 16:03 etc
-rw-r--r-- 1 root root 169993 27. Apr 2021 file
drwxr-xr-x 4 root root 4096 7. Nov 2020 home
lrwxrwxrwx 1 root root 7 8. Mai 02:57 lib -> usr/lib
lrwxrwxrwx 1 root root 7 8. Mai 02:57 lib64 -> usr/lib
drwx------ 2 root root 16384 7. Nov 2020 lost+found
-rw-r--r-- 1 root root 7 19. Okt 2020 .manjaro-tools
drwxr-xr-x 8 root root 4096 21. Feb 2023 media
drwxr-xr-x 3 root root 4096 7. Nov 2020 mnt
drwxr-xr-x 11 root root 4096 10. Mai 08:08 opt
dr-xr-xr-x 365 root root 0 5. Aug 16:02 proc
drwxr-x--- 9 root root 4096 16. Mai 08:26 root
-rw-r--r-- 1 root root 5218 19. Okt 2020 rootfs-pkgs.txt
drwxr-xr-x 35 root root 860 5. Aug 16:46 run
lrwxrwxrwx 1 root root 7 8. Mai 02:57 sbin -> usr/bin
drwxr-xr-x 4 root root 4096 19. Okt 2020 srv
dr-xr-xr-x 13 root root 0 5. Aug 16:46 sys
drwxrwxrwt 14 root root 300 5. Aug 16:46 tmp
drwxr-xr-x 9 root root 4096 4. Aug 13:28 usr
drwxr-xr-x 12 root root 4096 4. Aug 13:32 var
My next step would be the message from @Aragorn (copy /home/myname from backup); any objections?
What I’d do is copy the current /home to somewhere safe (particularly the .dotfiles where you might have some more recent emails stored, etc.) & then restore from your backup.
However, this might be part of the issue:
… leading to accumulating corruption, quite likely.
looking at the inxi output above, it looks like you are almost out of space on your disk, which can cause not to boot…
run these: sudo pacman -Scc sudo journalctl --rotate sudo journalctl -m --vacuum-time=1s
and see if it helped…
To mitigate that situation, you could and probably should clear out the package cache: sudo pacman -Scc
or sudo rm -rf /var/cache/pacman/pkg/*
(the effect is the same for both commands)
Another way to give anyone but root more space without deleting anything is:
sudo tune2fs -m 1 /dev/nvme0n1p3
It lowers the reserved for root only space from 5% (default) to 1%
(for your /home partition you should even set that value to 0 - no point in having reserved space for root there)
Try these steps first.
Check results by rebooting.
If nothing changed, continue here:
You have now (several posts ago) altered your display manager configuration.
Do not forget that you did.
It didn’t seem to have the desired effect.
For that reason alone I’d reverse the changes you made in:
/etc/sddm.conf.d/kde_settings.conf
… it did work before, no reason to assume why it would not work now with the very same settings.
Next I’d stop or even disable the display manager
and (try to) start the session “by hand”
From a TTY:
log in as your user - not as root systemctl stop sddm.service startx
From virtual konsole I run: sudo pacman -Scc
Directory: /var/cache/pacman/pkg
ERROR: unable to remove /var/cache/pacman/pkg/download-zI20ay, is a directory Should I remove it manually?
sudo journalctl --rotate sudo journalctl -m --vacuum-time=1s
Done, freed 430,2 M … After which period do you recommend to run these commands?
For a new setup on a machine I’m expecting, which size do you recommend for this partition?
There should be a timer that does that automatically, periodically.
You should not need to do that “by hand” - but it did free up some space (~430 MB it seems).
Not a lot.
You should check the result by looking at how much free space you have now, after running these commands.
df -h
You where tight on space - see how it looks now.
32 GB for / (root) is sufficient - if you don’t install snaps or flatpacks.
They use a lot of space.
I gets tight really quickly.
Just remove it, including it’s contents.
It’s something pamac created - pacman only removes files from the cache.
It doesn’t expect to see directories inside it’s cache …
… on you go with what I said in my comment above?
Or wait for input from @brahma
Official download pages, f.e. libreoffice. As I’m using LibreOffice BASE quite a lot, I have been advised to run the original packages, not the ones from the distributions. They are stored in /opt and have been running before the issue without any problem.