Mounting via /etc/fstab?

All your general support questions for OpenZFS on OS X.

Mounting via /etc/fstab?

Postby monkeyvoodoo » Fri Oct 25, 2019 4:50 pm

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…
monkeyvoodoo
 
Posts: 12
Joined: Tue Oct 22, 2019 3:27 pm

Re: Mounting via /etc/fstab?

Postby lundman » Sun Oct 27, 2019 4:07 pm

They do indeed, at least for zvols. I think rottegift uses fstab regularly, using guid matches.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Mounting via /etc/fstab?

Postby monkeyvoodoo » Fri Nov 01, 2019 11:41 am

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.
monkeyvoodoo
 
Posts: 12
Joined: Tue Oct 22, 2019 3:27 pm

Re: Mounting via /etc/fstab?

Postby lundman » Thu Nov 07, 2019 4:59 pm

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.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to General Help

Who is online

Users browsing this forum: No registered users and 24 guests

cron