Sponsored Content
Operating Systems Solaris Delay mounting of home directory? Post 303011298 by kebabbert on Tuesday 16th of January 2018 09:42:14 AM
Old 01-16-2018
Delay mounting of home directory?

I wonder if it is possible to delay mounting of a home directory?

Here is the background to the problem I am trying to solve:
I have two zfs disks, one rpool disk, and one zfs data disk. On the zfs data disk, I have data directories. In Solaris 11.3 there are default home directories on rpool, called Documents, Public, Downloads, etc. So I have deleted these home directories from rpool, and replaced them with symlinks. These symlinks points to the zfs data disk. So on the zfs data disk there are directories called Documents, Public, Downloads, etc. In my home directory, there are symlinks to these zfs data directories.

I also have a Linux Ubuntu partition. I have done the same thing on the Ubuntu partition. My home directory on the Ubuntu partition contains symlinks, pointing to the zfs data disk.

This means Ubuntu and Solaris shares the same data directories on the zfs data disk. I do not want to share the same home directory between Solaris and Linux, so I have not put the home directory on the zfs data disk. Because the configuration files differs from Solaris and Linux. Linux might use KDE, and Solaris might use Gnome. That will be a problem when I login if I share the same home directory between OSes. So Solaris and Linux home directories are not shared, but the data is shared via symlinks in Solaris and in Linux home directory. This way, I can work with the same data no matter which OS I boot from. I also have a VirtualBox VM data directory which I access from both Solaris and from Linux, so I can work with the same VM from both OSes, without the need to synching data.

Here is the problem. When I bootup Linux, I need to import the zfs data disk. Then I bootup Solaris instead, which makes Solaris complain because Solaris are trying to mount the home directory data folders, which points to the zfs data disk - which is mounted in Linux instead!

When I boot different OSes, I need to import the zfs disk. But then the other OS will complain because it can not mount the home directory. Is there a way to delay mounting of home directories? Then I can bootup an OS and import the zfs data disk, and after that I can manually mount the home directory.

EDIT: Adding "_netdev" in vfstab is the wrong track?
delayed file system mount? (zfs, zvol, ext4) - Ars Technica OpenForum

Last edited by kebabbert; 01-16-2018 at 10:58 AM..
 

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

mounting a directory to a windows 2000 shared folder

until recently I've been using the following command successfully: mount -t smbfs -o username=my_user_name,password=password /home/temp/ //oldserver/openexchange To connect to a Win2000 shared folder called openexchange on a machine called //oldserver. But as from today, I've been getting... (2 Replies)
Discussion started by: cw1972
2 Replies

2. SCO

/data directory not mounting

Dear sir, In my SCO unix system while running an isql because of the size of the files created the ./data directory become full and now I cannot boot the system in normal mode. I am botting the machine in single user mode but i cannot delete the files from /data directory cos it is not... (2 Replies)
Discussion started by: khelen
2 Replies

3. UNIX for Dummies Questions & Answers

home directory

Hi what is the difference between the directory named /home and the user's home directory? can anyone plz reply? really confuse about it!!!!!!!! thank you (1 Reply)
Discussion started by: nokia3100
1 Replies

4. Slackware

mounting new directory

hi I installed slackware. How can I mount new partition I edit etc/fstab and add new mount point("back") What should I do next? When I perfom: mount /back it doesnt work. (16 Replies)
Discussion started by: tjay83
16 Replies

5. SuSE

home directory is not mounting

Our home directory is not mounting in SUSE 10, can you please help me in this regard. Thanks (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

6. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

7. UNIX for Advanced & Expert Users

Mounting a directory using nfs version4

Hi, I would like to know how can we mount a directory using nfs v4 ? When I use the below command, I am not sure what nfs version am using to mount the directory. mount -t <server_name>:<shared_directory> <shared_directory>. eg: mount -t 10.50.0.8:/home/arun/mount/share_dir... (7 Replies)
Discussion started by: arunsriniv
7 Replies

8. AIX

Mounting a directory in a filesystem

Hi All, Recently I came to know my / root file system is getting full because of application directory /siebel/ I have one option. 1) Down the application , take full backup 2)change the filesystem ownership 2)copy the contents into that filesystem cp -pr /siebel/* /siebelfs/* 3)Inform... (9 Replies)
Discussion started by: Thala
9 Replies

9. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies
sharefs(7FS)							   File Systems 						      sharefs(7FS)

NAME
sharefs - Kernel sharetab filesystem DESCRIPTION
The sharefs filesystem describes the state of all shares currently loaded by the kernel. It is mounted during boot time as a read-only file at /etc/dfs/sharetab. Filesystem contents are dynamic and reflect the current set of shares in the system. File contents are described in sharetab(4). File contents can be modified as a result of share(1M), sharectl(1M), sharemgr(1M) and changing properties of a zfs(1M) data set. The module may not be unloaded dynamically by the kernel. FILES
/etc/dfs/sharetab System record of shared file systems. SEE ALSO
share(1M), sharectl(1M), sharemgr(1M), zfs(1M), sharetab(4) SunOS 5.11 31 Oct 2007 sharefs(7FS)
All times are GMT -4. The time now is 04:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy