Not part of the command, it's the end of the sentence. The dot at the end is outside of the [cmd]..[/cmd]. That's why formatting is important here.Look closely, you've added a dot as an extra argument.
Not part of the command, it's the end of the sentence. The dot at the end is outside of the [cmd]..[/cmd]. That's why formatting is important here.Look closely, you've added a dot as an extra argument.
zfs unmount -f nomadbsd-zroot/usr/ports/packages
zfs unmount -f nomadbsd-zroot/usr/ports
lsof | grep /usr/ports
Yes, /usr/ports is mounted before /usr/ports/packages. Thus /usr/ports/packages needs to be unmounted before /usr/ports can be unmounted. If you unmount /usr/ports/ then /usr/ports/packages would cease to exist (that mountpoint is on the filesystem you just unmounted).The order to unmount is the reverse of the order to mount.
# zfs umount -f nomadbsd-zroot/usr/ports/packages
# zfs umount -f nomadbsd-zroot/usr/ports/distfiles
# zfs umount -f nomadbsd-zroot/usr/ports
# zfs umount -f nomadbsd-zroot
# zpool export nomadbsd-zroot
# zpool import -R /mnt/nomadbsd-zroot nomadbsd-zroot
# zfs mount nomadbsd-zroot/ROOT/default
# cd /mnt/nomadbsd-zroot/
# ls
.cshrc boot libexec proc tmp var
.profile compat media rescue unionfs
COPYRIGHT dev mnt root usr
VERSION etc net sbin usr.local.etc
bin lib nvidia sys uzip
My bad. A lapsus. Corrected post #52Yes, /usr/ports is mounted before /usr/ports/packages. Thus /usr/ports/packages needs to be unmounted before /usr/ports can be unmounted. If you unmount /usr/ports/ then /usr/ports/packages would cease to exist (that mountpoint is on the filesystem you just unmounted).
zpool import nomadbsd_zroot nomadbsd-zroot
zpool import -f -R /mnt nomadbsd-zroot
zfs mount nomadbsd-zroot/ROOT/default
nothing is inside /mnt/nomadbsd-zroot
but it I use this command,I see all the files,why ?
zpool import -f -R /mnt/nomadbsd-zroot nomadbsd-zroot
Normally you want to mount into a directory which contains no files or subdirectories
zpool import -f -R /mnt nomadbsd-zroot is a bad idea because /mnt normally contains subdirectories.
# ls /mnt/nomadbsd-zroot/
home nomadbsd-zroot usr var
zpool import -f -R /mnt/nomadbsd-zroot nomadbsd-zroot
zpool import -f -R /mnt nomadbsd-zroot