Skip to content

Make it autoconfigure root subvolume #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rain1 opened this issue May 4, 2025 · 2 comments
Open

Make it autoconfigure root subvolume #405

rain1 opened this issue May 4, 2025 · 2 comments

Comments

@rain1
Copy link

rain1 commented May 4, 2025

I have BTRFS disk on Debian but it still says:

Select BTRFS system disk with root subvolume (@)

Even tough I have root with BTRFS (I actually just want to make snapshots for /media/data):

UUID=02ef6261-0ab3-489c-a3ea-d12245d0ef76 /               btrfs   defaults,subvol=@rootfs 0       0
UUID=9c76582a-95c4-437c-abf2-81e3542665ae /media/data btrfs defaults,subvol=data 0 0

It can be a bit overwhelming for new user to figure out how format and configure everything. I have read the different manuals, watched different youtube videos and asked Chat GPT for weeks but still cant get it to work.

Can you make it so that instead of only showing the error message it would offer option to re-configure BTRFS and fstab so that whatever disk I select would become a new root subvolumne? Optionally if it is needed to re-format or re-partition the disk could ask confirmation for that.

Problem is that every Youtube video instructs how to make entire system snapshotted and that requires advanced things like messing around with grub configuration and so on. but I don't really want to go after grub hacking. I just want to snapshot my data. And my starting point is empty hard drive so it would be completely fine for Timeshift to partition/format/configure it from scratch so that it can become a root subvolume.

Image

@abfipes12
Copy link

notice that you have @rootfs instead of @
why exactly does timeshift have a feature that only allows @ and @home subvols named exactly like that? how often do people change the name of their root subvol and if it is necessary to keep the name of that subvol consistent, cannot it be stored/tracked?

@rain1
Copy link
Author

rain1 commented May 5, 2025

Thanks for pointing out that @rootfs vs @ difference. Debian's default is @rootfs and other linuxes seem to default to @.

But still would be cool to be able to do snapshots of just @home. Because I may not always care about OS. Like if it for example my personal Samba server where I am the only user then it would actually take less tome to just re-install OS if it breaks than to set up snapshotting of root because getting it to snapshot @rootfs would take like 2 months of reading every single BTRFS manual I can read on the internet while reinstalling OS + samba server would take like 2 hours so reinstalling OS in case of accident is clear winner in this choice. However @home would be nice to have snapshotted because for that I may have a separate hard disk and data that I do care about. And that shouldn't be artificially limited. I should be able to tell that "ok this is my blank hard disk for data, partition, format, configure it so that I can rollback if something happens".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants