SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am re-writing from scratch the "manual" mode of the Slint installer, which until now uses "setup" and associated scripts from the Slackware installer with some adaptations, and plan to provide it for Slint 15 which I hope to release one month or so after Slackware 15.
In this manual (or expert) mode I will allow (not propose) to set up separate partitions for /home, /var, /usr/local, /opt and /tmp and propose for these (if not yet populated, but in case of /tmp) to format them if not yet done using one of the file systems btrfs, ext4, f2fs, or xfs.
In a further (not the next) version of the installer I also consider making btrfs the default in "auto" mode (instead of ext4 generally, or f2fs for some flash devices) as already do recent versions of Fedora and OpenSUSE.
In anticipation, my question is: I know that it is technically possible to convert an ext4 file system to btrfs, but if, say, user has chosen separate partitions for the directories listed below, will it be possible after having converting them to btrfs if needed, to convert the content of these directories to btrfs subvolumes?
Any clue, caveat and information appreciated, especially from folks having related experience.
Last edited by Didier Spaier; 01-23-2022 at 02:12 PM.
From developer perspective I would not touch *converting* from one filesystem to another during installation because the risk of unrecoverable data due from unmanaged event(s).
From developer perspective I would not touch *converting* from one filesystem to another during installation because the risk of unrecoverable data due from unmanaged event(s).
Context: I was even paranoid during ext3 -> ext4
Thanks for giving me an occasion to clarify: I certainly do not intend to make this a feature of the installer. What I want is to be able to provide sound good information and advice to users interested to do that themselves.
I use ext4 on mechanical drives because ext4 can keep a bad-sectors list and avoids using them. I use btrfs on my SDD drives because error bits are remapped by firmware. I got bit on btrfs when a laptop drive started throwing bad sectors. Had to reformat to ext4 and restore a recent backup. I create the EFI and slackware partitions using usbboot.img on a thumb drive, then tell setup to use existing partitions. It is a simple matter to re-organize the filesystem after install once the system is up and running. Why confuse folks with a more elaborate setup fraught with possible input errors?
I use ext4 on mechanical drives because ext4 can keep a bad-sectors list and avoids using them. I use btrfs on my SDD drives because error bits are remapped by firmware. I got bit on btrfs when a laptop drive started throwing bad sectors. Had to reformat to ext4 and restore a recent backup. I create the EFI and slackware partitions using usbboot.img on a thumb drive, then tell setup to use existing partitions. It is a simple matter to re-organize the filesystem after install once the system is up and running. Why confuse folks with a more elaborate setup fraught with possible input errors?
This doesn't answer my request for advice. That you do not need or want to use btrfs does not imply that no one does. In case you do not know the distinctive features of btrfs, have a look here.
tl;dr: to "how-to?", "don't" is not an useful answer.
Last edited by Didier Spaier; 01-28-2022 at 03:48 PM.
I know that it is technically possible to convert an ext4 file system to btrfs, but if, say, user has chosen separate partitions for the directories listed below, will it be possible after having converting them to btrfs if needed, to convert the content of these directories to btrfs subvolumes?
Any clue, caveat and information appreciated, especially from folks having related experience.
I just started using btrfs for my data partition (with multiple disks as the backing store), so am by no means an expert.
However, to answer your question: I'm pretty sure no. It is possible to have multiple disks be combined into 1 btrfs filesystem that then has multiple subvolumes, but I don't think you can transition the way you describe. Most (all?) of what I know is from these articles:
... however, if there is enough disk space on one of the disks maybe you could make it work. Create subvolumes on just that disk, copy everything to it, and then add the remaining disks to that btrfs file system: https://btrfs.wiki.kernel.org/index....ng_new_devices
But that's basically the "restore from backup" method, which I don't think is what you're after.
When dealing with multiple disks be aware of the problem with RAID on SMR drives: https://raid.wiki.kernel.org/index.php/Timeout_Mismatch
This one bit me. I tried having RAID5 on top of my multiple disks, and had occasional corruption. Finally found the above article, reconfigured to btrfs sitting on top of the raw disks (no RAID, just btrfs utilizing all the combined disk space) and haven't had problems since.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.