1

I would like to store all the 'working' data on an USB drive. So I can unplug it and use it on another machine, having all the 'working' data ready.

I don't think it is a good idea to change the home directory permanently to the USB drive, since it may not be plugged in. What I'm looking for is a command I can enter in the shell, which will work for the current shell session.

1 Answer 1

0

as root:

mount --bind /media/usbdrive /home/you
4
  • You also need to set the ownership to the target user.
    – terdon
    Commented Nov 3, 2016 at 19:37
  • @terdon, could you explain how to do that? or link to some documentation? Commented Nov 30, 2016 at 19:23
  • @flavio.donze in the simplest form, sudo chown -R flavio:flavio /media/usbdrive. That's assuming that /home/you (or /home/flavio or whatever) ios also owned by your user.
    – terdon
    Commented Dec 1, 2016 at 9:32
  • with the addition of terdon's input, it seems to work so far. Commented Dec 1, 2016 at 11:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .