gjournaled UFS2 filesystem is gone after power outage

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Oct 26 21:11:27 UTC 2006


On Thu, Oct 26, 2006 at 11:14:45PM +0300, Andrei Kolu wrote:
> On Thursday 26 October 2006 10:34 pm, Pawel Jakub Dawidek wrote:
> > On Thu, Oct 26, 2006 at 07:44:44PM +0200, Fluffles wrote:
> > > Andrei Kolu wrote:
> > > > I got power outage- UPS couldn't handle it this time- have to replace
> > > > battery and now I can't read my filesystem that I made for testing
> > > > purposes:
> > > >
> > > > # mount /dev/ad0s4.journal /mnt/ad0s4/
> > > > mount: /dev/ad0s4.journal: Operation not permitted
> > > > # fsck /dev/ad0s4
> > > > fsck: Could not determine filesystem type
> > >
> > > Well you should use:
> > >
> > > fsck -t ufs /dev/ad0s4
> > > and after that mount it.
> > >
> > > Right now you should be able to mount the volume with mount -f
> > > /dev/ad0s4 <mountpoint>, but that is not recommended.
> > >
> > > But i were told fsck was not necessary when using gjournal. *shrug*
> >
> > 'fsck_ffs -p /dev/ad0s4.journal' is needed, but it only handles orphaned
> > files, which takes seconds, not hours.
> 
> Can I enable background check or at least automatic one? I always forgot to 
> add .journal extension. 

It will be automatically checked if you have it in /etc/fstab.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20061026/e32b2b3e/attachment.pgp


More information about the freebsd-geom mailing list