HISTORY:
Ok, since I'm often bored with my computer now that 12.10 is so dang stable; I often look for ways to make it less boring (a.k.a. more complicated).
I recently installed an SSD but only use it for my installs and not for personal data. Since I have several install I boot to, I prefer to keep /home within each install and keep the lions-share of data on a different drive. Unsatisfied with symlinks to connect each folder from my home to the data drive, I use bind mounts instead as I do on my server.
The downside to this is, being a multiuser system, one bind mount per folder (8) per user times 5 users is a very large and difficult to manage fstab. Add to this that any time a user is added or removed, I must edit fstab and create or remove the target folders manually. This is not manageable.
So my solution? I have a script that creates the target folders on initial log in for each user. Along with that, I use /etc/X11/Xstartup and Xreset to bind mount all the folders when then user logs in and un-mount them when they log out. One neat outcome of this method is I have a single local Public folder that gets mounted for every user, thus providing a very simple way to share something. Additionally, it adds a small level of file security since none of a users personal data is available unless they are logged in.
Please keep in mind this is more of a mental exercise in automating desktop functions than it is a real-word requirement. As I said at the outset - I'm a bit bored with Kubuntu so I must create my own challenges.
THE ISSUE:
All the above works well except one small thing. One of the bind mounts is to a NFS share mount and it won't mount at log in. The mount is listed in the output of "mount" but it's not actually connected the the share mount location. I have to manually un-mount and then re-mount it after log-in. I tried a sleep to see if it was a delay in the NFS share becoming available, but that had no effect.
In theory, the NFS mount is in fstab so it should be mounted at boot time. The bind mount command is executed at log into the desktop so should mount just fine.
Any ideas where to start looking?
Ok, since I'm often bored with my computer now that 12.10 is so dang stable; I often look for ways to make it less boring (a.k.a. more complicated).
I recently installed an SSD but only use it for my installs and not for personal data. Since I have several install I boot to, I prefer to keep /home within each install and keep the lions-share of data on a different drive. Unsatisfied with symlinks to connect each folder from my home to the data drive, I use bind mounts instead as I do on my server.
The downside to this is, being a multiuser system, one bind mount per folder (8) per user times 5 users is a very large and difficult to manage fstab. Add to this that any time a user is added or removed, I must edit fstab and create or remove the target folders manually. This is not manageable.
So my solution? I have a script that creates the target folders on initial log in for each user. Along with that, I use /etc/X11/Xstartup and Xreset to bind mount all the folders when then user logs in and un-mount them when they log out. One neat outcome of this method is I have a single local Public folder that gets mounted for every user, thus providing a very simple way to share something. Additionally, it adds a small level of file security since none of a users personal data is available unless they are logged in.
Please keep in mind this is more of a mental exercise in automating desktop functions than it is a real-word requirement. As I said at the outset - I'm a bit bored with Kubuntu so I must create my own challenges.
THE ISSUE:
All the above works well except one small thing. One of the bind mounts is to a NFS share mount and it won't mount at log in. The mount is listed in the output of "mount" but it's not actually connected the the share mount location. I have to manually un-mount and then re-mount it after log-in. I tried a sleep to see if it was a delay in the NFS share becoming available, but that had no effect.
In theory, the NFS mount is in fstab so it should be mounted at boot time. The bind mount command is executed at log into the desktop so should mount just fine.
Any ideas where to start looking?
Comment