I have set up a new system with btrfs swapfile and luks enrcypted. Also I have created another data partition in USB-live mode, btrfs and encrypted.
I have rebooted the system. But I had had only write access to both partitions, / (root) and data (/run/media/user/Daten). So I did sudo chown -R $user:$user /.
Probably it was a mistake. I cannot install software anymore and have no more access at all to my data partition even entering the right password. What can I do? If nothing I have to reinstall everything. Its ok, if necessary. But at least I would like to understand.
And why was kdewallet asking on every reboot for its password and for the password of the encrypted data partition. This is ok for one time but not every time. Probably I have done something wrong. But what? If it is a bigger issue I can open another topic for this.
I do not have experience with that kind of encryption but you probably should not have done it in the live usb.
And if you use auto-login, then the keyring is not unlocked and you will be asked for password. Not sure if this is the case.
Thanks for all your answer. I see I did wrong. This happens to everything. It is called “learning by mistakes”.
2.1. Still would like to know. I can only resize the root partition with installed OS on, if I use a USB-live stick and partition manager. Based on the free partition size I can create a new encrypted btrfs data partition. Which permissions do I need to give to this extra data partition and which commands would you recommend?
2.1 Does it make sense to create /home directory as btrfs subdirectory @home? Will it lead to problems making home to btrfs subdirectory after installation? How is the best way to do it?
And I’m sorry, yes you are a complete beginner (or haven’t learned anything), or you would know that the question is completely crazy.
I do not feel comfortable giving you advice without knowing you UNDERSTAND that advice.
And teaching linux from scratch is not something this forum is for. Sorry.
The question you ask: “is this the correct way to use chown”. You learn that within the first 20 minutes of ANY beginners linux course.
If you do like this than do not give any advice to beginners, please. It is better like this.
I know btrfs directories shrink within a partition. But if I create a complete separated partition the main partition doesn’t. Or do you think it is better only work with subdirectories like @home and @data on one main btrfs partition?
The problem I see is, if I use timeshift I would like to backup also the /home settings but not the data. I want to keep it seperated in a different folder. For this I may not really have understood the logic.
Also if I use rsync -av --exclude=/path /origin /destination the exclude function seems not work properly.
Exactly. Manjaro is NOT for beginners, please read the link I provided.
I can’t speak for others, but I do not feel comfortable.
If you learn basics and ask relevant questions, I give you all the time in the world.
Lets take this example:
Those are not subdirectories, those are subVOLUMES.
I’m not typing this to be toxic, quite the contrary actually. I think you are out of your depth, you simply do not have enough knowledge but you can fix that.
What I advice you to do is to gain that basic knowledge and THEN come back.
I guess so. When I read you text then I think you don’t understand the basic design concept of btrfs. No worry, I felt the same. Throw out everything you know about old file systems and think new.
Subvolumes look like normal directories, but they are not. A subvolume is similar to a partition on a normal disk, but more dynamic. So please give yourself a favor and talk with the right terminology so that everyone understands you.
The idea of timeshift is NOT to have backups of your whole data, but to have a recovery tool when something bad happens.
Timeshift is not an ordinary backup tool.
Think of “Windows System Recovery” which is pretty equal to timeshift. Therefore it creates snapshot (read-only subvolumes with shared pointers) on the same partition when using btrfs. Timeshift creates a snapshot of the subvolume @ which is actually /. It doesn’t include any other subvolume by default. All data have to be on the same partition, since it de-duplicate the files internally. Therefore it is only suitable for system restore and not your data.
Yes, I know that. But if I select the option “Include subdrive @home in backups” in the Timeshift settings for backing up my personal settings, what happens to my personal data in @home? They are in the /home/user/… directory. The way the data is stored in /home/user is that there are separate folders for music, pictures, documents and so on, which I would have to back up separately.
Will they also be restored by timeshift in case of the mentioned extra setting? I do not want that.
So I was thinking of an extra btrfs partition or a simply a btrfs subvolume like @mypersonaldata if it works. Like this?
Exactly. You seem to be the first one who really understands my core problem. This is why I am looking for a separated partition created with btrfs and encryption, because I believe it it the best solution. But let the high professionals also give their statement.