I've been away from linux and freeBSD for three years. I'm basically almost brain dead on commands. but thanks it's a startYou can always drop into the bootloader, if not possible boot with a freebsd-iso and fix the problem.
If needed perform a fsck, if needed reinstall bootcode, check if you can chroot , mount filesystems, change root password, etc...
First reboot? Only ranI upgraded to 13 reboot.
freebsd-update install
once? Finish the upgrade. Also make sure to update all your installed packages/ports when indicated (after the second freebsd-update install
).i ran update reboot, lost x org so from the CLI I ran update again to finish it, rebooted the 2nd time came back and then lost user and root login. I just booted into single user had to run fsck fix the errors to the hdd, then mount -u / passwd root it did passwd twice reboot inbetween , and still do not have root or user login . it is just stuck at the login promptFirst reboot? Only ranfreebsd-update install
once? Finish the upgrade. Also make sure to update all your installed packages/ports when indicated (after the secondfreebsd-update install
).
What exactly did you run?I ran update again to finish it
Ok, maybe something went wrong with the merging of some new accounts that needed to be added. Boot to single user mode again, double check you actually have UFS,I just booted into single user and mount -u / passwd root twice
mount -a
to mount everything. Edit /boot/loader.conf and /etc/rc.conf and disable everything you don't need to boot the machine. You don't want to boot straight to X, stick to the console until you've finished/fixed the upgrade.I ran freebsd-upgrade installWhat exactly did you run?
Ok, maybe something went wrong with the merging of some new accounts that needed to be added. Boot to single user mode again, double check you actually have UFS,mount -a
to mount everything. Edit /boot/loader.conf and /etc/rc.conf and disable everything you don't need to boot the machine. You don't want to boot straight to X, stick to the console until you've finished/fixed the upgrade.
Ok, that's good. The reason I asked is that I've seen people doI ran freebsd-upgrade install
freebsd-update fetch
in an attempt to "fix" things. DO NOT DO THAT. It's going to royally screw up things even more. It's like riding a bike. You might be a bit wobbly at first but it'll all come flooding back soon enoughhope my memory comes back its been 3 years since I deal with any of this stuff.
yeah, at mulit user login. it says libncurses.so.8 missing required by bashOk, that's good. The reason I asked is that I've seen people dofreebsd-update fetch
in an attempt to "fix" things. DO NOT DO THAT. It's going to royally screw up things even more.
It's like riding a bike. You might be a bit wobbly at first but it'll all come flooding back soon enough![]()
at login says I am missing libncurses.so.8 needed by bashTry to work towards a certain phase.
E.g. being able to login as root in multi-user environment in console/text-mode.
e
how tosboot single user mode.
Mount the filesystem.
go to /etc/passwd
Check the login shell of root.
If it is bash change to sh, that has no dependencies on ncurses. So it always works.
/bin/sh
Yeah I figured that out, but the passwdOr you can edit the password file with vipw
The shell is
Code:/bin/sh
pkg update -f
pkg upgrade
Newer freebsd version zziplib Package 1301000if you have internet:
Code:pkg update -f pkg upgrade
That's not the password. That's just the gecos field of root. Which, by default, says "Charlie root" (the & is a placeholder for the user's account name). Passwords aren't stored in /etc/passwd. Actually, your user account isn't actually stored there either.root:*:0:0: Charlie &:/root:/bin/sh
Charlie isn't my password
Yes.I just seen
Major os version upgrade detected run pkg bootstrap -frrecommended I'll do that instead
pkg bootstrap -f
followed by pkg upgrade
. Once that's finished run freebsd-upgrade install
for a third and final time. This will clean up old libraries and other files.After upgrade, it did what I thought it would, took off and came back and it stops with a y/n question.That's not the password. That's just the gecos field of root. Which, by default, says "Charlie root" (the & is a placeholder for the user's account name). Passwords aren't stored in /etc/passwd. Actually, your user account isn't actually stored there either.
Yes.
pkg bootstrap -f
followed bypkg upgrade
. Once that's finished runfreebsd-upgrade install
for a third and final time. This will clean up old libraries and other files.
pkg delete -f mesa-libs nvidia-driver
and start pkg upgrade
again. Are you actually using an NVidia card? Depending on the card model you may need to switch to x11/nvidia-driver-470 or x11/nvidia-driver-390. The latest NVidia driver dropped support for a number of older cards. 20210617:
AFFECTS: users of graphics/mesa-libs and x11/nvidia-driver
AUTHOR: kbowling@FreeBSD.org
Some libraries from mesa-libs are now provided by libglvnd while
others were renamed. nvidia-driver already used libglvnd but bundled
a copy which is now provided as a separate package. When building
outside poudriere make sure to remove mesa-libs and nvidia-driver
first in order to avoid conflict with libglvnd.
For portmaster users:
# pkg delete -f mesa-libs nvidia-driver
# portmaster -a
For portupgrade users:
# pkg delete -f mesa-libs nvidia-driver
# portupgrade -a
I got past that, and now I'm gettingRight, it's obviously been a while since your last update. Justpkg delete -f mesa-libs nvidia-driver
and startpkg upgrade
again. Are you actually using an NVidia card? Depending on the card model you may need to switch to x11/nvidia-driver-470 or x11/nvidia-driver-390. The latest NVidia driver dropped support for a number of older cards.
Code:20210617: AFFECTS: users of graphics/mesa-libs and x11/nvidia-driver AUTHOR: kbowling@FreeBSD.org Some libraries from mesa-libs are now provided by libglvnd while others were renamed. nvidia-driver already used libglvnd but bundled a copy which is now provided as a separate package. When building outside poudriere make sure to remove mesa-libs and nvidia-driver first in order to avoid conflict with libglvnd. For portmaster users: # pkg delete -f mesa-libs nvidia-driver # portmaster -a For portupgrade users: # pkg delete -f mesa-libs nvidia-driver # portupgrade -a
Thanks I finally figured that out, freking eye balls are going out. Now it's telling meSirDice typo'd (I saw it as I've done the same several times)
it'sfreebsd-update install
and not freebsd-upgrade...
that's why you get "not found"
I think you meant 13.1-RELEASE.the current one is "13.0-RELEASE-p2".