Date: Sat, 20 Aug 2016 18:00:12 -0700 From: "Russell L. Carter" <rcarter@pinyon.org> To: freebsd-questions@freebsd.org Subject: Re: erm shot my foot off with zfs, q on rescue Message-ID: <893652a5-f4e6-4d81-d940-7ee5760bf29a@pinyon.org> In-Reply-To: <CAOc73CD7WTq2odvE2AA2VHO-3CD0nYik_yufY63KkmNd4r4DZw@mail.gmail.com> References: <a33962da-71ec-bbfd-12c6-b007d7e0aa59@pinyon.org> <614e5532-b929-1e68-aa86-2e75b157565a@gmail.com> <CAOc73CD7WTq2odvE2AA2VHO-3CD0nYik_yufY63KkmNd4r4DZw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08/20/16 17:26, Ben Woods wrote: > On Sunday, 21 August 2016, Shamim Shahriar <shamim.shahriar@gmail.com> > wrote: > >> On 21/08/2016 00:44, Russell L. Carter wrote: >>> >>> Hi, >>> >>> So I misfired and hosed my 10/stable zfs / mounts by running >>> >>> zfs set mountpoint=/ zroot/zetc >>> >>> so that now I don't seem to actually have any of the uh mandatory >>> system directories visible. (turns red) >>> >>> No emergency thankfully, I've got three border gateways and just got >>> all three happily configured so if I had to I could just reinstall >>> this poor innocent one that I accidentally shot in the face. >>> >>> But as it happens I pulled it and have it interfaced with a keyboard >>> and monitor and have booted a USB 10.3 stable install image. I >>> dropped into the shell, and ran zfs list and it comes up with nothing. >> I'm not sure it is supposed to -- your boot disc has no knowledge of >> available pools or the zfs available. The better way of doing it, if I >> understand right as to what you are trying to do, would be to run >> >> zpool import >> >> that will show you available zpools. >> >> Then you can import the pool using >> >> zpool import <poolName> >> >> you can even set different mountpoints etc., the export it, and then fix >> the mountpoints as to where they are supposed to be. >> >> Hope this helps. >> Regards >> > > I normally get zpool to temporarily mount the datasets in the /mnt > directory when I have booted from a USB disk image, so that it doesn't > overwrite the root for the currently running system. This doesn't affect > the mountpoint for future boots, and still lets you set the mountpoint > parameter for future boots. > > You use: > # zpool import -R /mnt myzpool > > More details here: > http://man.freebsd.org/zpool That worked, and a zfs destroy -f zroot/zetc did the job. Many thanks, Russell > Regards, > Ben > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?893652a5-f4e6-4d81-d940-7ee5760bf29a>