How do I move home out of OS partition into a partition of its own
Olivier
Olivier.Nicole at cs.ait.ac.th
Fri Jan 25 05:12:33 UTC 2019
Tom H <tomh0665 at gmail.com> writes:
> 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.
As a supplementary safeguard, you may consider have one "root" account,
that still has its home directory on the boot disk, while your normal
user account has its home directory on the independant disk. Your normal
user account could still be an administrator of course.
That root like account, I usually call it toor (reverse of root) and
it's home directory will be /toor and it will have admin privileges.
I do that because more often than none, my normal account is a network
account and I may need to login while the network is down, or when some
updates need me to be loged in a local account.
Best regards,
Olivier
--
More information about the ubuntu-users
mailing list