Upgrade from 10.1-RELEASE to 10.3-RELEASE went wrong, pls. help!
Matthew Seaman
matthew at FreeBSD.org
Fri Jun 30 15:05:04 UTC 2017
On 2017/06/30 15:36, Alejandro Imass wrote:
> Maybe it's a trivial issue but I followed the procedure on:
>
> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
>
> Everything went well until the first reboot. I was able to ssh to the
> system and then when I did freebsd-update install for the second time,
> it started outputting a whole bunch of ELF related messages, like some
> sort of 32/64 compatibility problem.
>
> ELF interpreter /libexec/ld-elf.so.1 not found, error 8
> Abort trap
> /usr/sbin/freebsd-update: /bin/rm: Exec format error
> ELF interpreter /libexec/ld-elf.so.1 not found, error 8
> Abort trap
> ELF interpreter /libexec/ld-elf.so.1 not found, error 8
> Abort trap
> /usr/sbin/freebsd-update: /bin/rm: Exec format error
> ELF interpreter /libexec/ld-elf.so.1 not found, error 8
> Abort trap
>
> Now I tried to reboot and it won't even load in single user.
>
> What gives?
That's not at all good.
You need to boot off some install media given what's on your disk is
apparently toast. The "livecd" option is what you want here. You
should then find your existing hard drives mounted under /mnt, or else
you'll be able to mount them there by hand.
Then you have two possible routes:
1) Back up everything important from your system, then wipe and
reinstall 10.3 from scratch, and then restore what you backed up.
You will need some sort of media to write to, obviously, or else
you'll need to bring up your network interface to copy stuff over
the network.
2) Backup your /etc. Grab the installer tarballs from the install
media and extract them on top of your current system. Merge in
anything from your backup of /etc as required. This will give you
a 10.3-RELEASE system, so you'll need to use freebsd-update(8) to
bring it up to the latest patch level, and then upgrade packages
as needed.
The tarballs you need for 10.3-RELEASE are in here:
ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/10.3-RELEASE/
You want at minimum the base.txz and kernel.txz tarballs. These
will also be present on your install media.
(1) will give you better overall results, because it will ensure that
any now redundant files are deleted correctly. It's also trivial to
jump to 11.0 instead, if that's your ultimate aim.
(2) doesn't need a lot of extra disk space to store stuff, and it's
probably safer in the sense that you shouldn't lose anything because you
omitted to make a backup of it. However, it may not result in a
completely correctly upgraded system -- there can be odd files left
around. Most of that would get cleaned up by subsequently running
freebsd-update(8) but that isn't guaranteed to be exhaustively correct.
Cheers,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20170630/c3ef2a3c/attachment.sig>
More information about the freebsd-questions
mailing list