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

Post History

60%
+1 −0
Q&A How can I put my home directory on a different partition?

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, sam...

posted 5mo ago by matthewsnyder‭  ·  edited 5mo ago by matthewsnyder‭

Answer
#2: Post edited by user avatar matthewsnyder‭ · 2024-06-13T20:13:43Z (5 months ago)
  • Suppose you currently use the partition `/dev/sda1` for everything, and you create a new partition `/dev/sda2` to use for `/home`.
  • 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.
  • 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.
#1: Initial revision by user avatar matthewsnyder‭ · 2024-06-13T20:13:13Z (5 months ago)
Suppose you currently use the partition `/dev/sda1` for everything, and you create a new partition `/dev/sda2` to use for `/home`.

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.