How do I move home out of OS partition into a partition of its own

Tom H tomh0665 at gmail.com
Fri Jan 25 04:58:43 UTC 2019


On Thu, Jan 24, 2019 at 10:28 PM Bret Busby <bret.busby at gmail.com> wrote:
> On 25/01/2019, Ken D'Ambrosio <ken at jots.org> wrote:
>> On 2019-01-24 16:46, Wynona Stacy Lockwood wrote:
>>>
>>> " What is the procedure for me to now move the home directories on
>>> each system, into partitions of their own? "
>>>
>>> Well, once you add disk, it's reasonably straightforward.
>>
>> Addendum: if following the instructions below, suggest that you be
>> logged in as root, and not simply sudo'd. Your session could become
>> *very* confused if files are moved out from under it, or mounted on
>> top, etc.
>>
>>> 1: mount new formatted partition that will be home somewhere you can
>>> get to it, like say under /mnt somewhere.
>>> 2. Move everything from /home/ into that partition.
>>> 3. Add a line to /etc/fstab specifying that you want that partition
>>> mounted at /home/ at boot time.
>>> 4. run 'mount -a' to double check that it works.
>>> 5. Optionally, reboot to make sure.
>
> My understanding is that Ubuntu Linux does not allow for logging in as
> root; that superuser actions need to be performed using sudo.

It's best to do all of this while in single-user mode - and therefore
logged in as root, without actually setting a password for root and
therefore enabling root permanently.




More information about the ubuntu-users mailing list