Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Dec 2006 09:23:09 -0900
From:      Beech Rintoul <freebsd@alaskaparadise.com>
To:        Dino Vliet <dino_vliet@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: error when doing make installworld
Message-ID:  <200612240923.34462.freebsd@alaskaparadise.com>
In-Reply-To: <20061224180030.84696.qmail@web51107.mail.yahoo.com>
References:  <20061224180030.84696.qmail@web51107.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart9287939.71I0Cf7GNE
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 24 December 2006 09:00, Dino Vliet wrote:
> Hi Beech,
>
> many thanks for your clear help. I will try that in a
> few moments....
>
> However, I wanted to ask you something else becuase of
> your quote:
>
> "Doing a make installworld before finding out if the
> new kernel will boot will bite you big time at some
> point"
>
> Unquote
>
> How am I able to find out if the new kernel will boot
> then? Because I have done this a few times
> already....but I don't like to be biten:-)
> A nice Christmas eve too:-)
>
> Dino
>
> --- Beech Rintoul <freebsd@alaskaparadise.com> wrote:
> > On Sunday 24 December:46, Dino Vliet wrote:
> > > Hi peeps,
> > >
> > > I have tried to update my src with cvsup and got
> >
> > stuck
> >
> > > because of an error while doing make installworld.
> > >
> > > My system is an amd64 machine running freebsd 6.1
> >
> > and
> >
> > > I have performed the steps without problems:
> > > -make buildworld
> > > -make buildkernel kernconf=3Dmykkernel
> > > -make installkernel kernconf=3Dmykernel
> > >
> > > Normally I would then immediately follow this
> >
> > sequence
> >
> > > with a mergemaster -p, make installworld and
> > > mergemaster -i and then reboot.
> > >
> > > However, this time I decided to check the handbook
> >
> > and
> >
> > > saw that it recommended to do a boot into single
> >
> > user
> >
> > > mode between the step -make installkernel
> > > kernconf=3Dmykernel AND the step mergemaster -p.
> > >
> > > So I did it and when I rebooted and saw the
> >
> > beastie
> >
> > > splash screen, I hit option 4. Then I had to press
> > > enter to get to the shell. When I did I noticed I
> > > couldn't cd into the /usr/src directory because
> >
> > the
> >
> > > /usr/src directory was missing!
> >
> > The filesystem is not mounted in single  user mode.
> > You need to do
> > a "mount -a" which will read /etc/fstab and mount
> > the slices. After that you
> > can cd normally. Also, you should not do a make
> > installworld in multi-user.
> > You should do that step in single user before you
> > run mergemaster. Doing a
> > make installworld before finding out if the new
> > kernel will boot will bite
> > you big time at some point. Believe me I've been
> > there.
> >
> > Beech
> >
> > > So I rebooted again into multi-user mode and here
> >
> > I
> >
> > > tried the mergemaster -p but it failed with:
> > >
> > > =3D=3D=3D> lib/libcom_err/doc (install)
> > > lockf -k /usr/share/info/dir  install-info --quiet
> > > --defsection=3D"Programming & development tools."
> > > --defentry=3D"* libcom_err: (com_err).        A
> >
> > Common
> >
> > > Error Description Library for UNIX."  com_err.info
> > > /usr/share/info/dir
> > > install -o root -g wheel -m 444  com_err.info.gz
> > > /usr/share/info
> > > =3D=3D=3D> lib/libcrypt (install)
> > > install -C -o root -g wheel -m 444   libcrypt.a
> > > /usr/lib
> > > install -C -o root -g wheel -m 444   libcrypt_p.a
> > > /usr/lib
> > > install -s -o root -g wheel -m 444   -fschg -S
> > > libcrypt.so.3 /lib
> > > install: rename: /lib/INS@9du9 to
> >
> > /lib/libcrypt.so.3:
> > > Operation not permitted
> > > *** Error code 71
> > >
> > > Stop in /usr/src/lib/libcrypt.
> > > *** Error code 1
> > >
> > > Stop in /usr/src/lib.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > > *** Error code 1
> > >
> > > Stop in /usr/src.
> > > [root@zouk /usr/src]#
> > >
> > >
> > > So, what to do now???
> > >
> > > O yeah, I've been running my system from
> > > securelevel=3D3, so maybe that has something to do
> >
> > with
> >
> > > this also.
> > >
> > > Any help will be appreciated...
> > >
> > > (Yes, it's Christmas eve, I know, but hey that
> >
> > gives
> >
> > > me a lot of time to check things out).
> > >
> > > Thanks
> > >
> > > ps is this bad? Should I start evacuate all my
> > > important files while I'm still able to?

The proper way is:

make buildworld
make kernel (KERNCONF=3DYOURKERNEL) if custom
reboot to single user
If the new kernel doesn't boot reboot and hit the space bar at the boot pro=
mpt
boot kernel.old
If the new kernel boots OK
mount -a
cd /usr/src
make installworld
mergemaster
exit

The main thing is you don't want to install the new userland before finding=
=20
out if the new kernel boots. If you install the userland it's very possible=
=20
that your old kernel may not boot either. Then you're looking at=20
re-installing the system so you can restore from backups. I've had to do th=
at=20
and while not hard, is very time consuming. Plus I lost everything between=
=20
when I backed up and the date I restored.

Also, please don't top post.

Beech
=2D-=20
=2D------------------------------------------------------------------------=
=2D-------------
Beech Rintoul - Sys. Administrator - beech@alaskaparadise.com
/"\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
=2D------------------------------------------------------------------------=
=2D-------------












--nextPart9287939.71I0Cf7GNE
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQBFjsWmR5sEeCt9j00RAnfhAJ9E9W5MrPVT8zFvLwcZuf0oywIvKQCfe4a1
izGBTgCWay2oN0rjjpf6AYY=
=ZTbX
-----END PGP SIGNATURE-----

--nextPart9287939.71I0Cf7GNE--



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