On Wed, Apr 10, 2013 at 08:23:03AM -0800, 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. > > This can't be an original idea. Is it available? Is pam_mount of any use to you? It's intended for mounting home directories on login. I'm not sure how you'd access the original /home/peter once you'd mounted the removable home on top of it, though. Someone will know how, though.
Attachment:
signature.asc
Description: Digital signature