Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 1998 17:11:05 -0800
From:      Mike Smith <mike@smith.net.au>
To:        FreeBSD-Stable@FreeBSD.ORG
Subject:   Re: Important questions regarding the new slice code 
Message-ID:  <199803240111.RAA14594@dingo.cdrom.com>
In-Reply-To: Your message of "Mon, 23 Mar 1998 15:52:51 PST." <27566.890697171@time.cdrom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > The only thing you should be clued about here is updating /etc/fstab
> > (maybe this is re-written for you, too - I don't remember).
> 
> It is not, and the clue about updating was just added to the final
> confirmation dialog. :)

Just to clarify here; the original plan was to have it automagically 
updated, but there are some unpleasant corner cases here where the 
result would be a plastered configuration, and I don't think anyone 
wants that.

So instead, here's some text to explain the situation.  It needs to be 
somewhere prominent (for upgraders anyway).

  ----

FreeBSD 2.2.6 introduces a change in the naming of the device from 
which the root filesystem is mounted.  This change affects all systems, 
however user intervention is only required for systems undergoing an 
upgrade installation.

Previously, the root filesystem was always mounted from the
compatability slice, while other partitions on the same disk were
mounted from their true slice.  This might, for example, have resulted 
in an /etc/fstab file like:

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/wd0s2b             none            swap    sw              0       0
/dev/wd0a               /               ufs     rw              1       1
/dev/wd0s2f             /local0         ufs     rw              1       1
/dev/wd0s2e             /usr            ufs     rw              1       1

For FreeBSD 2.2.6 and later, this format changes so that the device for 
'/' is consistent with others, ie.

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/wd0s2b             none            swap    sw              0       0
/dev/wd0s2a             /               ufs     rw              1       1
/dev/wd0s2f             /local0         ufs     rw              1       1
/dev/wd0s2e             /usr            ufs     rw              1       1

On a new installation, this change is handled automatically by
Sysinstall.  For an upgrade where the local configuration information is
preserved, the user must make this change manually, by editing /etc/fstab.
THIS CHANGE IS EXTREMELY IMPORTANT.

If /etc/fstab is not updated manually in this case, the system will
issue a warning message whenever / is mounted (normally at startup)
indicating the change that must be made.  In addition, trouble may be
experienced if the root filesystem is not correctly unmounted, whereby
the root filesystem will not be marked clean at the next reboot.

  ----

Note that whilst the procedure for the not-clean problem is reasonably 
straightforward, this is probably not the place to document it.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



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



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