Date: Thu, 03 Nov 2016 18:47:54 -0500 From: Brandon J. Wandersee <brandon.wandersee@gmail.com> To: Matthias Fechner <idefix@fechner.net> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Prevent zpool from being mounted on next boot Message-ID: <86eg2sunv9.fsf@gmail.com> In-Reply-To: <b9a0002f-42cc-f663-e469-db458442a82a@fechner.net> References: <b9a0002f-42cc-f663-e469-db458442a82a@fechner.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthias Fechner writes: > Is there a way to prevent the mount from pool tank at next boot? > > I would not like to destroy the pool (tank) till I can boot the new one without problems. Here would be the "dirty" way of doing it: 1. Boot into "tank," or boot the install medium and choose "Live CD" 2. Import "zroot" (remember to use "altroot"), or mount whatever partition contains /boot for "zroot" 3. Delete /boot/zfs/zpool.cache on "zroot" That file should be replaced when you boot from "zroot," but will only contain the relevant info for the new pool. You'd need to make sure "zfs_enable='YES'" is set in /etc/rc.conf for at least the first boot, since only the root filesystem would be mounted on the first boot otherwise. Someone else might have a cleaner way of doing what you want, though. -- :: Brandon J. Wandersee :: brandon.wandersee@gmail.com :: -------------------------------------------------- :: 'The best design is as little design as possible.' :: --- Dieter Rams ----------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86eg2sunv9.fsf>