setup journaling for root partition

Michael Sierchio kudzu at
Thu May 23 06:11:49 UTC 2013

On Wed, May 22, 2013 at 10:53 PM, s m <sam.gh1986 at> 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.

More information about the freebsd-questions mailing list