From owner-freebsd-questions@FreeBSD.ORG Sat May 25 05:51:37 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D608233F for ; Sat, 25 May 2013 05:51:37 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 5A294F6F for ; Sat, 25 May 2013 05:51:37 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id eg20so5173331lab.13 for ; Fri, 24 May 2013 22:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=q6V10EWUyhtX/r4JuLymWQLM536j7/cAY+9lu9IRrHI=; b=KFiSntPO5k2o3rI3qS/Li+5z0Bz44a1BoryN342uRwFrgoUCIrSS0YFfx+Y0E6TrNh RAt3owRV0UbJdT38aGB1FceCkTW5zjRdSZFtebfJVKkBLPDf+Cdv3rPrzeREEpsSng88 srN0Om0rcl0bwLzRVupkiXpPyEOA9I6J3moreuEf/7m0HgIiCSJrVN0ype31j0oqqpvc XzDwWuQ7cQXi260CY4is7ncJ8sYPzJBCpUgQDFbQise1xH7ZZSWJGx2s3O/Mw6QZWcLS mT2DOVmaaMxc0QKvt/FkbbUtl7+8681mMjqqLVfYiCmDdYxSji3poBLpJ2sGRVI9RwR8 /FHQ== MIME-Version: 1.0 X-Received: by 10.112.21.234 with SMTP id y10mr10374786lbe.53.1369461096157; Fri, 24 May 2013 22:51:36 -0700 (PDT) Received: by 10.112.2.70 with HTTP; Fri, 24 May 2013 22:51:36 -0700 (PDT) In-Reply-To: References: <519B4F11.9030309@ulb.ac.be> <519B87BC.1010301@qeng-ho.org> <519B9042.5050704@qeng-ho.org> Date: Sat, 25 May 2013 10:21:36 +0430 Message-ID: Subject: Re: setup journaling for root partition From: s m To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions , Torsten Hantzsche X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2013 05:51:37 -0000 thanks Warren, you're right but i want to set journaling in fixit mode!!!! in fixit mode none of my partitions are mounted (mount command show no partition) but geom returns error yet. is there any way to tell geom that my partitions are unmounted? On 5/23/13, Warren Block wrote: > On Thu, 23 May 2013, Torsten Hantzsche wrote: > >> On Thu, 23 May 2013, s m wrote: >> >> >>> thanks, >>> >>> i do as you said, but after loading gjournal, dd says "operation not >>> permitted". >>> gjournal clear says "operation not permitted" too and therefore >>> "gjournal >>> label" is not done and say previous error (gjournal cannot clear >>> metadata >>> on ad3s1a: operation not permitted). and -v return no extra log. >>> >>> i don't know why i can not do any thing in fixit mode:( >>> >>> is this a true procedure? i mean maybe i should do any thing else >>> because >>> freebsd handbook set journaling for user partition in single user mode >>> not >>> in fixit mode. i test it and it works well, but for root partition i can >>> not do the same because root partition can not be unmount in single user >>> mode. >>> >>> any hints or comments are really appreciated. >>> thanks in advance >>> >> >> Hi, >> >> i remember having similar error messages with glabel some years ago. >> The solution was found in "man 4 geom" in section DIAGNOSTICS: >> >> I had to set "kern.geom.debugflags=0x10" to enable the "foot shooting" >> mode. >> >> Maybe this could help you too? > > For certain values of "help". :) > > If geom won't let you write to part of a disk, it's because it thinks > that part of the disk is already in use, usually by a mounted > filesystem. Overwriting part of a filesystem is not guaranteed to lose > data. But why take the chance? > > Better to boot from mfsBSD (http://mfsbsd.vx.sk/). Possibly better yet > to use SUJ, which can be enabled with tunefs with the root partition > mounted read-only in single user mode. SUJ has its own problems, > though. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >