Re: /home as a symlink?

2020-10-17 Thread Mike Castle
You could run into issues where the value of 'pwd' does not equal the value of 'readlink -f .'. For myself, I use autofs with autohome. It's been a while since I've looked at the details, but I believe it simply does with bind mount described elsewhere in this thread. My main machines happen to

Re: /home as a symlink?

2020-10-16 Thread David Wright
On Fri 16 Oct 2020 at 11:23:13 (+0200), Jesper Dybdal wrote: > I currently have /home in the root partition.  I am considering moving > it to a different existing partition. > > Can I simply move the files and then make /home a symlink to /disk2/home? > > Or perhaps set up

Re: /home as a symlink?

2020-10-16 Thread deloptes
Jesper Dybdal wrote: > Can I simply move the files and then make /home a symlink to /disk2/home? do this and it will be safe. I have a symlink in the root partition to real home for 10+ years. no risk

Re: /home as a symlink?

2020-10-16 Thread Stefan Monnier
> Do either of these run a risk of files under /home being needed before > /disk2 is mounted (it is in fstab)? No, a normal boot will typically never look inside /home at all, and if it ever does it should/will likely be quite late, definitely after mounting /disk2. So using symlinks like you

Re: /home as a symlink?

2020-10-16 Thread Jesper Dybdal
On 2020-10-16 13:49, Urs Thuermann wrote: IIUC, you have a directory on that disk where you want to move the home directories of your users i.e. /some/path/to/homes to, as well as some some other directories on that disk. You could then mount that disk to some mount point, say /data, and then

Re: /home as a symlink?

2020-10-16 Thread Urs Thuermann
Jesper Dybdal writes: > Thanks for your response.  That would be the natural way of doing it > if I were partitioning a new disk.  But I don't want to do that, and > the target disk also has other data, so /home cannot be a complete > partition. IIUC, you have a directory on that disk where you

Re: /home as a symlink?

2020-10-16 Thread Greg Wooledge
> > > On 2020/10/16 at 11:23 am, Jesper Dybdal wrote: > > > > Can I simply move the files and then make /home a symlink to > > > > /disk2/home? On Fri, Oct 16, 2020 at 01:43:59PM +0200, Klaus Singvogel wrote: > I'm already running my Debian with $HOME se

Re: /home as a symlink?

2020-10-16 Thread Klaus Singvogel
Jesper Dybdal wrote: > > On 2020-10-16 11:45, Yoann LE BARS wrote: > > On 2020/10/16 at 11:23 am, Jesper Dybdal wrote: > > > Can I simply move the files and then make /home a symlink to /disk2/home? > > You can, but I think a better way is to simply mount the parti

Re: /home as a symlink?

2020-10-16 Thread Felix Miata
Jesper Dybdal composed on 2020-10-16 12:18 (UTC+0200): > Yoann LE BARS wrote: >> Jesper Dybdal wrote: >>> Can I simply move the files and then make /home a symlink to /disk2/home? I can't think of a reason why you couldn't, but maybe there is a reason that escapes me

Re: /home as a symlink?

2020-10-16 Thread Yoann LE BARS
partition. Alright, I did not get that. Well, in this case, you can indeed make some symlink. In my experience, you can either use a symlink to replace /home or to replace /home/user. Which will be the best way? Well, I guess it depends on what you prefer. Best regards.

Re: /home as a symlink?

2020-10-16 Thread Jesper Dybdal
On 2020-10-16 11:45, Yoann LE BARS wrote: On 2020/10/16 at 11:23 am, Jesper Dybdal wrote: Can I simply move the files and then make /home a symlink to /disk2/home? You can, but I think a better way is to simply mount the partition as /home. Thanks for your response.  That would

Re: /home as a symlink?

2020-10-16 Thread Yoann LE BARS
Hello everybody out there! On 2020/10/16 at 11:23 am, Jesper Dybdal wrote: > Can I simply move the files and then make /home a symlink to /disk2/home? You can, but I think a better way is to simply mount the partition as /home. For instance, I have a separated hard drive for my /h

/home as a symlink?

2020-10-16 Thread Jesper Dybdal
I currently have /home in the root partition.  I am considering moving it to a different existing partition. Can I simply move the files and then make /home a symlink to /disk2/home? Or perhaps set up a symlink for each user: /home/user1 => /disk2/home/user1? Do either of these run a r