From owner-freebsd-questions@freebsd.org Fri Jun 30 15:05:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0BFBD93755 for ; Fri, 30 Jun 2017 15:05:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CEA470F90 for ; Fri, 30 Jun 2017 15:05:03 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id EA04EC1A7 for ; Fri, 30 Jun 2017 15:04:57 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/EA04EC1A7; dkim=none; dkim-atps=neutral Subject: Re: Upgrade from 10.1-RELEASE to 10.3-RELEASE went wrong, pls. help! To: freebsd-questions@freebsd.org References: From: Matthew Seaman Message-ID: Date: Fri, 30 Jun 2017 16:04:51 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uSPCKar4E8LGd1vQRsC5Bkw9JxjI43qGJ" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 15:05:04 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uSPCKar4E8LGd1vQRsC5Bkw9JxjI43qGJ Content-Type: multipart/mixed; boundary="81JW2gxHXoXDLPtQ1xWkjtuNielAn8699"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: Subject: Re: Upgrade from 10.1-RELEASE to 10.3-RELEASE went wrong, pls. help! References: In-Reply-To: --81JW2gxHXoXDLPtQ1xWkjtuNielAn8699 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2017/06/30 15:36, Alejandro Imass wrote: > Maybe it's a trivial issue but I followed the procedure on: >=20 > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upg= rading-freebsdupdate.html >=20 > 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. >=20 > 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 >=20 > Now I tried to reboot and it won't even load in single user. >=20 > 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 --81JW2gxHXoXDLPtQ1xWkjtuNielAn8699-- --uSPCKar4E8LGd1vQRsC5Bkw9JxjI43qGJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJZVmiZXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnZ+wQAKD5cyEEIMyOKHnJGFW8+IiG qvQCxR2fnaukuVgCg7l8tOPl47tEIhhwW+NxRk+90rnLuAa9g47aL0dmq5tfFHbY htItpFrGwQUD6O16WC+6MaEmBSWRUtLFWP7BxW9kCP0cS8zV82p4ZTb2z8sNx/98 bAMW8G6Pyq9X/m/AVC3QnW5eHhvqndmd0ifCHRpT+hIp15RLJjlCDmvEqE/Tqs/D NNlzTRwgJprCwnx8Zj0iYW7skNgIxkP3IwT6zKRKZETZGV0pwiQfgY90RTt+t12P 4gYtJsliFkl/7wFFXZwaPgsyvpYLt67HTmi/atlm9oeiJtUv7XckEzDkGiPy/m6r FpV5p1AR9ZollFGDm8Bnt4IQYcU4lBqX4mnO0d1QxWmprDvSWGOqO9RfrLydRevJ SFJnLrHd6HMY7YOUoexwDNr+p+XL55dVY4fkr97+7qZfVkbYuiLVvwQftP+zCpdY tcbjsRm3bhTNrIvEi3rewx/qvMpSmzpPicAOmBP7c7YPTs+zl+Ie8So/Qs1+Fkka NTxXIzEKFRhdrsWhowNYJNMqQZK/z2lFj7tcvxidyl2J6hq4fEoFZmub1L4xx643 joZYbXTd9XBtjCXVc1VEwO0ktCi9Mf4iLkMALDR/jakrwjQtkKN/I+WzeSk9lXH0 XMt2SCWT831Z0c1N2RvE =o4XI -----END PGP SIGNATURE----- --uSPCKar4E8LGd1vQRsC5Bkw9JxjI43qGJ--