Re: single user mode buildwerld failures




i can't log on, but i can run in single user mode. does that qualify
as a "running system" should i start over from step 1 and do it all
in single user mode? maybe i better not try until hearing from
somebody.

If you have a running system, read Appendix A.5 "Using CVSup" [1] of the
handbook, which details how to update your sources and ports to the
current version.

If you don't have a running system, rebuild world + kernel and hope that
restores enough functionality so you can update the sources and go
again. This is all described in section 22.4 "Rebuilding world" [2] of
the handbook, but I will summarise it for you.

// change to root
$ su -
// remove /usr/obj to speed up the build
# cd /usr/obj && chflags -R noschg * && rm -rf *
// Build a new world
# cd /usr/src
# make -j4 buildworld
// build a new kernel (do not put any job options for this build)
# make buildkernel
// install the new kernel
# make installkernel
// reboot to single user mode (boot -s from the loader prompt)
# shutdown -r now

// After reboot
// check + mount all filesystems
# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a
// prepare /etc for the world install
# mergemaster -p
// install the new world
# cd /usr/src ; make installworld
// run mergemaster again
# mergemaster
// reboot to an updated system
# shutdown -r now

All these instructions are in the handbook.

Cheers

Tom

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
[2]
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html


_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: make installworld fails
    ... I know that updating requires the mergemaster steps because I read the ... % To rebuild everything and install it on the current system. ... % you boot into single user mode to do the installworld. ... `make installworld' with an old kernel and have it blow up, ...
    (freebsd-questions)
  • Re: Rebuilding World Problems
    ... the last step has a link to the FreeBSD ... -s" to go into single user mode; it's easier to to just select option ... I decided to go ahead and try the "mergemaster -p" step. ... * On an initial install ALWAYS buildworld BEFORE buildkernel ...
    (freebsd-stable)
  • Re: Rebuilding World Problems
    ... I decided to go ahead and try the "mergemaster -p" step. ... I thought that maybe in single user mode my $PATH isn't set, ... I have to start all over from "make buildworld" or can I just ... * On an initial install ALWAYS buildworld BEFORE buildkernel ...
    (freebsd-stable)
  • Re: single user mode buildwerld failures
    ... i am going to reboot into single user mode and follow these instructions from /usr/src/UPDATING ... To rebuild everything and install it on the current system. ... su - you will be able to use mergemaster and do installworld. ...
    (freebsd-stable)
  • Re: Error "Installation aborted by the user" during "D3_setup"
    ... even Makefile's or shell scripts that need to be modified to install ... will know these commands or do the research upon encountering ... the script assumed that if the system is in single user mode, ... the actual error message encountered. ...
    (comp.databases.pick)

Loading