this post was submitted on 04 Jul 2026
87 points (100.0% liked)
Linux
66264 readers
408 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Well, moving partitions is at least a bit tricky and somewhat unreliable. So, unless you do a full repartitioning you will have sda1 with 520GB(ish). Current /home partition you can extend to fill the ~550MB from end of the drive.
Then it's up to you what you want to do with that 520GB. One option would be to build LVM (or zfs if you wish, LVM likely makes more sense on your case) setup from that and current /home partition and that way you could have ~850GB logical partition for home. Or you can just format the new sda1 as ext4 and mount it to /home/youruser/Media or whatever and have your home directory data split to two different partitions.
But whatever you decide, when messing around with partitions make absolutely sure that your backups are in good shape. One small error somewhere and your data might be gone, or at very least you need to learn how to rebuild partition tables. Also when changing partitions check that your fstab uses UUIDs instead of device paths or your system may not boot cleanly. Broken fstab is fairly simple to fix, but it's easier to check that while the system is up and running.
I'd rather have a single large
/homepartition, and the LVM method sounds less risky if I find out how to do it safely. I am sure I read somewhere that LVM is the clean way to manage partitions.I see my
fstabsays the following, so it's UUIDs although I am not sure about that/swapfile:Swapfile refers to a file at /. As long as you have rootfs there's a place to put that swap file too, so no worries there. Usually there's a separate partition for swap, but that works too.
So, what you need to do is remove sda1 and sda2 windows partitions. That'll leave you ~520GB of unallocated space at the start of the drive. Create a partition there and set it to 'Linux LVM' -type. Then create LVM 'filesystem' on that partition, or more accurately, assign that partition as an LVM physical volume with 'pvcreate'. After that you need to create a volume group with 'vgcreate'. Now you'll have 520GB allocated to LVM. Create new partition for your home with 'lvcreate', use all the space if you like, but at least as big as your current consumption on /home. Then create an filesystem on it and mount it as /mnt/newhome (or whatever).
Log out with your main user and make sure there's no processes running on that user afterwards. Then you can copy data from current home to newhome and unmount the now old home (sda8). Change fstab so that your new home will be mounted on /home (blkid to get UUID and change that to fstab). Mount new home in it's proper place, old home partition will be unmounted at this stage. Verify that everything works.
Now you can change your current sda8, a.k.a. old home, to Linux LVM-type, assign that as LVM physical volume and extend your volume group with vgextend to include the another partition. And now with lvextend you can expand your brand new home directory to that ~850GB total.
But, as I mentioned, make sure that you have your backups in good shape. These steps, if done incorrectly, will destroy your data. That's also why I'm being somewhat vague on the instructions, you'll need to understand what you're doing. There's plenty of information to push you in the right direction, but trust me, it's better for you to take a minute or two and read documentation so that you're actually confident on the steps.
I don't know if LVM acts the same as btrfs, but in order for my root snapshots to work, I couldn't have the swapfile directly in /. It has to be made in /swap/swapfile to work. Just something to be aware of.
It will take some reading but this sounds like a good long-term solution. Perhaps LVM should be the default. And there should be a live USB GUI method that would make the process less scary and safer. Thanks.