Re: A home directory on removeable storage ...
On 11/04/13 04:23, peasthope@shaw.ca wrote:
> ... is possible. I understand the concept of mounting
> the filesystem.
>
> Additionally there can be a backup home directory which
> stays with the machine, on a hdd for example. I imagine
> that when the machine powers up without the removeable
> storage, the backup home directory is instated. When
> the removeable storage is connected, the backup is
> remounted as another directory in /home and the removeable
> is mounted as the home.
>
> So for example, without the removeable present /home/peter
> is on the hdd. With the removeable present, /home/peter
> is on that and the hdd is /home/peter.bak with the same
> ownership and privilages as /home/peter. With udev, it
> might be accomplished with one or two scripts.
I think I'd try to avoid changing the mounts around while logged in;
that seems to me a recipe for confused software. In particular,
unmounting it while it's in use isn't going to work.
And I think I'd leave the backup directory mounted on both /home/peter
and /home/peter.bak all the time, and just mount the removable drive
over the top.
Richard
Reply to: