How to bypass formatting disk for btrfs subvolume installations #378
InvisibleRasta
started this conversation in
Tutorials
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I wanted to share a simple method I've been using to install Linux Mint on Btrfs subvolumes without needing to format the Btrfs partition. This method is particularly handy if you have multiple subvolumes on your partition and don't want to spend time moving large amounts of data to other disks or partitions.
While there are YouTube videos and guides out there, I've found them to be overly complicated. So, I'm here to show you an easier way to install LMDE/Linux Mint on btrfs subvolumes without formatting with just four simple commands.
DISCLAIMER: Ensure that if you have any other Linux distribution installed on the same partition, it doesn't already have two subvolumes named @ and @home. The Linux Mint installer will overwrite these subvolumes if they already exist. If you do have them, rename them to something else like '@gentoo' and '@gentoo-home'.
Explanation: Firstly, we backup mkfs.btrfs (the executable used to format a disk to Btrfs). Since we already have a Btrfs partition and we don't want the installer to format it, we replace the mkfs.btrfs executable with /bin/true, which is a command that returns 0 (a truth value in the shell). This tricks the installer into thinking that it formatted the partition and allows the installation to continue.
MAKE SURE TO TYPE EVERYTHING EXACTLY AS SHOWN.
Now you can proceed with the installation. Just remember to read the disclaimer, as this process will overwrite any subvolumes with the names @ and @home because the Linux Mint installer uses these two subvolumes to install.
Beta Was this translation helpful? Give feedback.
All reactions