Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2013 10:21:36 +0430
From:      s m <sam.gh1986@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>, Torsten Hantzsche <t.hantzsche@hzdr.de>
Subject:   Re: setup journaling for root partition
Message-ID:  <CAA_1SgEAWJCGATWC8ZQR-5a89S=3C0VeN+s2AJfngh9Kzm5Jjg@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1305230550120.98184@wonkity.com>
References:  <CAA_1SgH_RxFUXDj3VyvUN1Kzb6BPkJxFi8y8kjJn9Z=ytne=yw@mail.gmail.com> <519B4F11.9030309@ulb.ac.be> <CAN+S=WCAHB7_FDHQNAkTsd5qHqRcQ0b6-iT+Mk0Cw4fMo45pdA@mail.gmail.com> <519B87BC.1010301@qeng-ho.org> <CAHu1Y71s9faAfGpGitQLPZ_9YmR4u+_0rPV5d+uF1CgKqsOOVQ@mail.gmail.com> <519B9042.5050704@qeng-ho.org> <alpine.BSF.2.00.1305210919560.79332@wonkity.com> <CAHu1Y72UOjt05sPyw+=mDA4tjPh2tZM1Z0PtkM7+iHfnB0q+sg@mail.gmail.com> <CAA_1SgHp_NXXE8M1fAXvhcVihhxkhhdA75ACk_GHC3WfHJ4G9A@mail.gmail.com> <CAHu1Y72o=BOxCJ9GJzT-kJ06WsGB+i8Q=OCRoRZeDCwny1hxfw@mail.gmail.com> <CAA_1SgHwNJgD=Ubt348WpkKJA9-ek4K4P+z+rcfU-NuCiNTQYg@mail.gmail.com> <CAHu1Y73H7W386Yv0CRwPjtA=Uh_KBy-Dmk7+GDM2nQOYqBZbsQ@mail.gmail.com> <CAA_1SgEOeyBp=W1=e+2SeBn5SEdF4Bb76t9K9jgykGkUvK1oPw@mail.gmail.com> <CAHu1Y73LLnmmQ0EWWvTBdT-XttsehgaZOctzbAcrs=7X9rc20A@mail.gmail.com> <CAA_1SgEDPL5xpNT9m4i+rB-pbVv-K--i0BZMZDRaY28WgR0XaA@mail.gmail.com> <alpine.BSF.2.00.1305231201320.20614@cubror.sm-ebffraqbes.qr> <alpine.BSF.2.00.1305230550120.98184@wonkity.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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 <wblock@wonkity.com> 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"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAA_1SgEAWJCGATWC8ZQR-5a89S=3C0VeN+s2AJfngh9Kzm5Jjg>