Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on How can I put my home directory on a different partition?

Parent

How can I put my home directory on a different partition?

+1
−1

I want /home to be on a different partition than the rest of my files. How can I do this?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Very broad scope (1 comment)
Post
+1
−0

Suppose you currently use the partition /dev/sda1 for everything, and you create a new partition /dev/sda2 to use for /home. It doesn't matter if the partition is on a different physical drive, same drive, LVM, etc.

All you have to do is move your files to the new partition, and make sure it is mounted at /home automatically during boot.

The automount configuration is in /etc/fstab (https://wiki.archlinux.org/title/Fstab). In short, for home you can use something like:

UUID=abcd1234   /home       ext4        rw,relatime 0 2

Note that it's better to specify the partition with UUID. I am giving examples as /dev/sda* for simplicity.

You should test this with a dummy folder, like /home-test, so that if you make a mistake and it fails to mount you don't end up with a broken homedir.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Not granular enough (2 comments)
Not granular enough
Quasímodo‭ wrote 5 months ago

Probably some points are unclear for someone who looks has this question.

you create a new partition /dev/sda2

How? Also please consider the case that there is enough free space but no unallocated space in the volume.

move your files to the new partition

How?

specify the partition with UUID

How does one find this identifier?

matthewsnyder‭ wrote 5 months ago

My intent was that people who are unfamiliar with these tangents would look for or ask a question about them. "How do I create a new partition?" "How do I move my files to a new partition?" "How do I find the UUID of a partition?"

These are, after all, not specific to relocating your home directory.