From owner-freebsd-questions@freebsd.org Sun Aug 21 00:26:03 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95279BC1C3D for ; Sun, 21 Aug 2016 00:26:03 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DC78194E for ; Sun, 21 Aug 2016 00:26:03 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id z8so33098714ywa.1 for ; Sat, 20 Aug 2016 17:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MolOCMTtzf0rJ0Y3DFbfxch2ff83dCdpf1gYUisObtI=; b=KbjoWKAXZgY9hph999tR0PsAOmCSeXhXLSklBoEASblKp/sbrtHBvQkcgb72WZjnOp aLH7W9p1BwAxXhkBTSLc1rb4KXYS3FVWnloX5nDm9uq8NnMfWwc+aP3O7cT3wU90ADTE AZ5cNOeYveC9h3Lm9+VyqyLf0opcSJQJ0ZnntMBjBjv46ya252xzZlwjDaEEOGcfm4ZZ qAMF5sLaWqHHGvT8u7ZjpafwSYtrhhsTrk9DKwxiiWdy1pI7oeR3JImKY3OMhI7GN9Pn /OAwuiTumsPqXiKDP8JOUdt1XIt6u5uFybG0MLUMwMoqPNfh6hD8VY4V3WlbklQs8a0b Ot0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MolOCMTtzf0rJ0Y3DFbfxch2ff83dCdpf1gYUisObtI=; b=FFqQBQ6twVckubCXr57260LaIHlzRUpruzn6NzK/sjl3B3iiq+6FKl6JpJ6L2ZkbuC 7F0Bm+iauPx3Kke++EWjgHKfw6/qwUwsEK5nlobxI3bG1MRXDjzoAB1IKEBpxlJnS+O4 JTZ3onAGiVV7U6cSL2HWe/GzXQv0a6W9KZ+SiXE1wN1hfdHt5bgweBDblwjiXzcvu1u4 PquWRSQkJEH94har4x/Iz3wW1eFYCO3jiDYm662Gjmjx85Nr8OAsyhyXxIaaKFdKHzig wEAjlZ6oz/2XyxskOt1UAnIVM0P8CXQXtYLcOyxrgAM31eNlyVlglNbPK5rLErr/DuMc ZsBA== X-Gm-Message-State: AEkoouv8CemUP83OVS7OtkjgDpjHTVyuatX7yhPw5mImtqqVnXGnHL2pPyxRSr3ZSs8LoS94PkgBnhajvbSVzw== X-Received: by 10.129.146.143 with SMTP id j137mr12430796ywg.79.1471739162382; Sat, 20 Aug 2016 17:26:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.199.16 with HTTP; Sat, 20 Aug 2016 17:26:01 -0700 (PDT) In-Reply-To: <614e5532-b929-1e68-aa86-2e75b157565a@gmail.com> References: <614e5532-b929-1e68-aa86-2e75b157565a@gmail.com> From: Ben Woods Date: Sun, 21 Aug 2016 08:26:01 +0800 Message-ID: Subject: Re: erm shot my foot off with zfs, q on rescue To: Shamim Shahriar Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2016 00:26:03 -0000 On Sunday, 21 August 2016, Shamim Shahriar 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 > > 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 Regards, Ben -- -- From: Benjamin Woods woodsb02@gmail.com