Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 23:11:55 -0800
From:      Kirk McKusick <mckusick@beastie.mckusick.com>
To:        Manfred Antar <null@pozo.com>
Cc:        current@FreeBSD.ORG, Robert Watson <rwatson@tislabs.com>, re@FreeBSD.ORG, Poul-Henning Kamp <phk@critter.freebsd.dk>
Subject:   Re: Update to UFS2 Superblock Format 
Message-ID:  <200211300711.gAU7Bt59078123@beastie.mckusick.com>
In-Reply-To: Your message of "Fri, 29 Nov 2002 22:57:12 PST." <5.2.0.9.2.20021129222331.00a79090@pozo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
You will have to ask Puol-Henning Kamp, but I do not believe that 
he has yet put together a bootstrap for the i386 platform that can 
boot from a UFS2 filesystem. As such, I believe that you are
required to have a UFS1 root on the i386 at this time. I have
copied Poul-Henning Kamp so that he can correct me if I am incorrect
on this point.

	Kirk McKusick

=-=-=-=-=-=

Date: Fri, 29 Nov 2002 22:57:12 -0800
To: Kirk McKusick <mckusick@McKusick.COM>, current@FreeBSD.ORG
From: Manfred Antar <null@pozo.com>
Subject: Re: Update to UFS2 Superblock Format
Cc: Robert Watson <rwatson@tislabs.com>, re@FreeBSD.ORG
In-Reply-To: <200211250511.gAP5BU59067794@beastie.mckusick.com>
X-ASK-Info: Confirmed by User

At 09:11 PM 11/24/2002 -0800, Kirk McKusick wrote:
>On Tuesday Nov 26th I plan to make an update to the UFS2
>superblock. It will not affect UFS1 filesystems so should
>be generally transparent to most -current users. For those
>using UFS2 filesystems, the new kernel will update the
>superblock to the new format the first time that your UFS2
>filesystem is mounted read-write. Once updated it will not
>be able to be mounted by older kernels unless the `zapsb'
>program (see below) is run to revert it to the old format.
>
>The only really noticable problem arises when you are booting
>from a UFS2 root partition. Here, you must follow the following
>steps:
>
>1) boot new kernel
>2) mount -u /
>3) install new bootstrap
>
>Once the new kernel has converted the filesystem format for the
>root partition, the old bootstrap will no longer recognize it, so
>if you do not have a new bootstrap, you will no longer be able to
>boot from it. Note that you cannot update to the new bootstrap
>until the filesystem has been converted as the new bootstrap will
>not recognize the old superblock format. Again, this change will
>only affect you if you are using a UFS2 filesystem as your root
>filesystem.
>
>The changes that I plan to apply can be viewed at:
>
>        http://www.freebsd.org/~mckusick/UFS2_update.diffs
>
>The program `zapsb.c' that reverts a UFS2 filesystem to its
>previous state can be found at:
>
>        http://www.freebsd.org/~mckusick/zapsb.c
>
>If this change is going to cause you undue hardship, please
>send me mail (mckusick@mckusick.com).
>
>        Kirk McKusick
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-current" in the body of the message 

Kirk
With a kernel and system current as of Thurs night.
I did a dump of / , /var , /usr filesystems.
I did a disklabel -B da0s1
I did a make release and booted off the cdrom.
went into the fixit mode and did newfs -O2 /dev/da0s1a (root) /dev/da0s1e (/var) /dev/da0s1f (/usr)
I then did a restore of the file systems.
when i reboot somehow the bootstrap bypasses /boot/loader
Here is what I see on the screen

/boot.config -P
Invalid format

>>FreeBSD/i386/UFS1 BOOT
Default: 0:da(0,a)/kernel
boot:
WARNING: loader(8) metadata is missing!

I have a current kernel in the / directory so it boots that
and I get to the:
mountroot>    and do
mountroot> ufs:da0s1a

I guess what ineed to know is how to install the UFS2 bootblocks
Thanks
Manfred
==================================
||      null@pozo.com           ||
||      Ph. (415) 681-6235      ||
================================== 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211300711.gAU7Bt59078123>