Permanently edit fstab

Razorblade

Dabbler
Joined
Apr 12, 2012
Messages
35
Hello,

can anyone please tell me how to edit/change /etc/rc.d/ix-fstab permanently?

I am trying to mount bind/nullfs a directory on one ZFS volume into a directory on another ZFS volume.

Thanks
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
You need to mount "/" read-write by doing "mount -uw /", then edit /conf/base/etc/rc.d/ix-fstab

After that you need to remount / readonly, mount -ur / or just reboot.


EDIT: As a note to others thinking this is a magic solution for installing apps, *don't do it*!
 

Razorblade

Dabbler
Joined
Apr 12, 2012
Messages
35
I should have known that :smile:
I already mounted "/" uw and then changed /conf/base/etc/fstab <-- went terribly wrong :-D. And then I worked with /etc/rc.d/ix-fstab <-- did not withstand a reboot.

Thanks protosd

No, I don't want to install apps or stuff like that, just mount bind/nullfs a directory into my proftpd structure.
 
Joined
Apr 30, 2016
Messages
26
Hello,

I have very similar question. I use FreeNAS 11.3. I have two datasets:
1. Volume/Data/nfsboot
2. Volume/Data/tftpboot

nfsboot is exported as /mnt/Volume/Data/nfsboot, and shared as nfs
tftpboot is shared to tftp service.

I need permanently mount /mnt/Volume/Data/nfsboot/rby1-srv/boot to /mnt/Volume/Data/tftpboot/adf58e87

Not sure how to implement this in freeNAS? any help?

Ed
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
Please don't resurrect 8 year old threads, post a new one.

Create a postinit scipt in tasks to do the mounting:
mount -t nullfs <src> <dst>
 
Top