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 Partially moving /home to a new partition, leaving some content behind

I have a partition and directory structure that looks like: small partition: / usr var ... # etc. large partition: /home shared other_stuff large_folder ...

0 answers  ·  posted 6d ago by Karl Knechtel‭

#1: Initial revision by user avatar Karl Knechtel‭ · 2024-10-31T02:54:36Z (6 days ago)
Partially moving /home to a new partition, leaving some content behind
I have a partition and directory structure that looks like:

```
small partition:
/
    usr
    var
    ... # etc.

large partition:
/home
    shared
        other_stuff
        large_folder
    user_1
        ...
    user_2
        ...

medium partition:
(empty)
```

The other partitions are too small to hold the `large_folder` by itself, never mind the rest of `/home`. Note that `shared` does *not* correspond to a user; it's just an ordinary folder I created under `/home`, mainly so that the `large_folder` contents would be on the large partition.

Now with the benefit of hindsight (my reasons for creating the empty partition were ill considered, and also considering reasoning given in https://unix.stackexchange.com/questions/70700), I want to rearrange things like so:

```
small partition:
/
    usr
    var
    ... # etc.

large partition:
/large_folder

medium partition:
/home
    shared
        other_stuff
    user_1
        ...
    user_2
        ...
```

That is: move everything *except* the `large_folder`'s contents to the medium partition and have the system recognize this as the new `home` mount point, while promoting the `large_folder` to the top level of the large partition.

What's the simplest way to do this? Is it possible without scratch space on a separate drive?