Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2013 11:06:51 +0430
From:      s m <>
To:        Michael Sierchio <>
Cc:        freebsd-questions <>
Subject:   Re: setup journaling for root partition
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

i do as you said, but after loading gjournal, dd says "operation not
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

any hints or comments are really appreciated.
thanks in advance

On Thu, May 23, 2013 at 10:41 AM, Michael Sierchio <>wrote:

> On Wed, May 22, 2013 at 10:53 PM, s m <> wrote:
>> thanks Michael for your quick reply:)
>> yes, i can boot from usb freebsd flash and use fixit mode.
>> i have root, var, tmp, usr and swap on my system. i create an extra swap
>> partition to use it as journal provider for root partition.
>> in fixit mode, first i run two below command in order to abel load
>> gjournal:
>> ln -s /dist/lib /lib
>> ls -s /dist/boot/kernel /boot/modules
>> then
>> "gjournal load"
>> and after that: "gjournal label -f ad3s1a ad3s1g" (ad3s1a is root
>> partition and ad3s1g is swap partition for journal provider)
>> but this error is shown:
>> "gjournal cannot clear metadata on ad3s1a: operation not permitted"
>> what is wrong here??? i really don't know how to fix it:((((
> Try using -v to get more verbose output.  I am at a loss here, too.
>  Perhaps you can try
> gjournal load
> dd if=/dev/zero of=/dev/ad3s1g bs=1m
> gjournal clear -v ad3s1a
> gjournal label -vf ad3s1a ad3s1g
> and see what it says, if anything.

Want to link to this message? Use this URL: <>