Re: Moving home directory between who PCs

On 05/18/2012 10:59 AM, Bengt T wrote:
I use two PCs at different locations and wish to "move" my home
between the locations by means of a usb memory stick.

The idea is to link my home folder to the usb memory in both PCs ("ln -
/media/usb_memory/my_user_name my_user_name") in the /home/ directory.
I use
the same user name and password in both PCs.

This works fine when initializing PC1. When I start PC1 I can login
password as my_user_name and the folder in the usb memory is

It is however not possible to login into PC2 (with the usb memory in
place in
PC2). The login procedure is rejected.

By "swaping" the procedure (initialize PC2 ant try to log in into PC1)
result becomes the same. I. e. I can login into PC2 bot not into PC1.

Is the login procedure PC name (host name?)

Is it possible to move the home directory in the way I wish and, if
so, how and where shall I make

I'd suggest modifying /etc/fstab to add a mount of your USB stick by UUID. Should just "appear" on either system at the specified mount-point.

Note that there is significant talk about USB sticks being unreliable because they wear out; the justification behind that seems reasonable enough, but I have sticks I've been using for the better part of a decade and none have gone tits-up yet. Good idea to keep backups just in case.

Relevant Pages