I need to write a script that can mount
/home in an USB drive at the boot and keep all the files in the USB drive after ejecting it.
At every boot, if there is an USB drive plugged in, the script has to check if there is a directory called
/home in the USB drive and mount it.
In another words, I need to use my USB drive as
/home and keep all the files there.
How can I mount
/home in an USB drive and keep all the files there, even after
umount /home ?