I turned on my laptop and while booting up on Manjaro I got this weird error that I’ve been trying to solve it till now with the help of other similar threads on the internet.
The error says:
The following installation problem was detected while trying to start Plasma:
No write access to $HOME directory (/home/alex).
Plasma is unable to start.
It seems like I can use only the system default apps.
My home directory is located on a shared SSD partition with my Windows. The partition filesystem is NTFS so there are no problems with the r/w permissions. Even though, what I found weird is that when I tried to delete a file from /home/alex/ I wasn’t able to do it.
I freshly installed both Manjaro and Windows on different partitions made for only their system files and they are sharing a big partition for everything else. Yesterday, everything worked just fine while I was trying to set my VS Code debugger for hours and eventually giving up and installing CLion from AUR.
There’s your problem. Your /homemust be on a native Linux filesystem such as ext4, btrfs, jfs or xfs, and not on NTFS, because NTFS does not store UNIX/POSIX file ownership and permissions. This means that when an NTFS or other non-POSIX filesystem is mounted into the tree, its file ownership and permissions need to be emulated in the kernel’s virtual filesystem layer at mount time, and cannot be altered in real-time, nor can they be set for individual files and directories.
Please read through these two long but very explanatory tutorials…
That will have been a fluke. I’m afraid you’re going to have to repartition your system.
No, because like I said, that might have been a fluke as the result of a combination of things, one of which is the unreliability and unpredictability of the ntfs3 kernel driver, which — just as an FYI — will eventually also end up corrupting your NTFS volumes. A better alternative is to use the ntfs-3g driver, which is fully functional.
But even then still, your /homemust be on a Linux-native filesystem, because it relies upon UNIX/POSIX permissions, file ownership and special file types — such as symbolic links — which are not supported in NTFS.
What’s also important to note here is that if you dual-boot with Windows, then you must disable Windows Fast Boot and Hybrid Sleep, because this leaves your Windows filesystems in an open state, which the Linux kernel will see as filesystem damage, and it will thus mount said filesystems as read-only to prevent further damage. And Secure Boot must of course also be disabled, because Manjaro does not support that.
The best and least cumbersome approach for sharing files between GNU/Linux and MICROS~1 Windows is to use a shared partition formatted as exfat or vfat (FAT32), and to have this partition mounted to a directory (“folder”) inside your $HOME — for instance, ~/Documents/Shared or ~/Documents/Data — and to set up this mount as static, i.e. by way of an entry in /etc/fstab, as opposed to relying on the automagic of udisks2.
Again, and not to toot my own horn, but those two tutorials I’ve posted above explain everything into great detail. So take your time to read through them, and then implement things on your system accordingly. It may even be handy if you have a second computer, so that you can look at the tutorials while reinstalling the other machine.