Page 1 of 1
		
			
				Mounting via /etc/fstab?
				
Posted: 
Fri Oct 25, 2019 4:50 pm 
				by monkeyvoodoo
				Do /etc/fstab entries work for mounting ZFS? If so, is there an example entry somewhere I can use for reference? I'd like to set my home directory to legacy mount, so I can share it between macOS and Ubuntu installs…
			 
			
		
			
				Re: Mounting via /etc/fstab?
				
Posted: 
Sun Oct 27, 2019 4:07 pm 
				by lundman
				They do indeed, at least for zvols. I think rottegift uses fstab regularly, using guid matches.
			 
			
		
			
				Re: Mounting via /etc/fstab?
				
Posted: 
Fri Nov 01, 2019 11:41 am 
				by monkeyvoodoo
				But, what if I want to mount just a portion of a pool, not a whole pool, via fstab. e.g. just rpool/HOME/monkey.
Is there an example somewhere of what an fstab entry like that would look like? I've tried a few guesses and nothing mounted.
			 
			
		
			
				Re: Mounting via /etc/fstab?
				
Posted: 
Thu Nov 07, 2019 4:59 pm 
				by lundman
				With ZFS, and ZFS datasets, the mounting is handled by ZFS, using the properties mountpoint=, canmount= etc. But if you set it to legacy, you can presumably call
"mount_zfs dataset /path" and mount it manually, but I've never tried, and not used fstab myself. I would have thought it could be done, somehow.