*BSD News Article 38742


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uhog.mit.edu!grapevine.lcs.mit.edu!ginger.lcs.mit.edu!wollman
From: wollman@ginger.lcs.mit.edu (Garrett A. Wollman)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Are FreeBSD 1.1.5.1 and 2.0 ufs filesystems compatible?
Date: 2 Dec 1994 03:25:11 GMT
Organization: MIT Laboratory for Computer Science
Lines: 34
Message-ID: <3bm42n$7lk@GRAPEVINE.LCS.MIT.EDU>
References: <3blt5d$sui@shore.shore.net>
NNTP-Posting-Host: ginger.lcs.mit.edu

In article <3blt5d$sui@shore.shore.net>, Robert Withrow <witr@rwwa.com> wrote:
>Ca I just use my 1.1.5.1 file systems on 2.0, and my 2.0 filesystems
>on 1.1.5.1, or is that a no-no.

Yes and no.  [Takes off his Chris Torek mask...]

The clean bit processing in 2.0 will result in fsck complaining about
your superblock.  However, you can safely ignore this error, because
the 1.1.5 kernel doesn't notice it.  By contrast, the lack of clean
bit processing in 1.1.5 will cause the 2.0 fsck to complain.

The above only applies to 4.2-compatible (``version 1'') FFS
filesystems, such as those originally newfs'ed by FreeBSD 1.x and not
later converted.  If you have a ``version 2'' FFS filesystem, such as
is the default under FreeBSD 2.0, while the kernel will be able to
read it just fine (except for symbolic links which have changed in
format between the versions), fsck will be unable to make any sense
out of it.

>If it is a no-no, how do I convert my 5 disks from one to the other?

fsck -c2 /dev/device # convert to version 2
fsck -c1 /dev/device # convert to version 1 - untested

However, this is an extremely invasive operation, and we don't take
any responsibility for fsck screwing up your data in the process.

-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant