System won't boot after mistake in changing mountpoint of dataset
Posted: 06 Oct 2015 22:16
I have a few questions about ZFS and booting.
Is there a way to boot nas4free so it will skip loading the zfs pools?
If a zfs pool is not mounted or imported will 'zfs set mountpoint=/mnt pool/dataset' work? If not is there a way to change the mountpoint without importing the pool?
I could if there is no other option destroy the dataset, that one didn't have much on it of importance, so another question is can a dataset be destroyed before it's imported?
I imported a pool that I had previously on OS X. The mountpoint was set to /Volumes I wanted it to be on /mnt
the GUI wouldn't import the pool so I SSH'd in and and I changed the mountpoint from the command line. Everything stopped working on next reboot. Looking thru my terminal scroll back I see what stupid mistake I made. I did 'zfs set mountpoint=/ pool/dataset' so I'm guessing it mounted as root, which means no /bin /sbin no /*anything*... the machine doesn't boot all the way, it spits out an error that it is not able to find /etc/rc.d
Is there a way to boot nas4free so it will skip loading the zfs pools?
If a zfs pool is not mounted or imported will 'zfs set mountpoint=/mnt pool/dataset' work? If not is there a way to change the mountpoint without importing the pool?
I could if there is no other option destroy the dataset, that one didn't have much on it of importance, so another question is can a dataset be destroyed before it's imported?
I imported a pool that I had previously on OS X. The mountpoint was set to /Volumes I wanted it to be on /mnt
the GUI wouldn't import the pool so I SSH'd in and and I changed the mountpoint from the command line. Everything stopped working on next reboot. Looking thru my terminal scroll back I see what stupid mistake I made. I did 'zfs set mountpoint=/ pool/dataset' so I'm guessing it mounted as root, which means no /bin /sbin no /*anything*... the machine doesn't boot all the way, it spits out an error that it is not able to find /etc/rc.d