From owner-freebsd-current@freebsd.org Sun Jan 14 13:00:42 2018 Return-Path: Delivered-To: freebsd-current@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 22855E6E4D5 for ; Sun, 14 Jan 2018 13:00:42 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 956807ACC2 for ; Sun, 14 Jan 2018 13:00:40 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([85.182.8.155]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LgISa-1fFYUN3vC0-00negW; Sun, 14 Jan 2018 14:00:32 +0100 Date: Sun, 14 Jan 2018 13:59:57 +0100 From: "O. Hartmann" To: Charlie Li Cc: freebsd-current@freebsd.org Subject: Re: /lib/casper: read error: Invalid argument Message-ID: <20180114140024.0a4c7e62@thor.intern.walstatt.dynvpn.de> In-Reply-To: <73025813-0fb8-d9a6-2b10-ad65589a6865@vishwin.info> References: <20180114121011.56204f3f@hermann.intern.walstatt.dynvpn.de> <73025813-0fb8-d9a6-2b10-ad65589a6865@vishwin.info> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/0Jlk.O6lo6/M=bUI4ZQeg_/"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:KR1vGkS9vmMRCJVmjBq0yOZQ1rco9NobylQz4SERPuyIdTplzI1 v0zEQr8hVIjMI/cn+E7BqAcKj+qOfkrM4wtemNE+DYvsFTT3qOAOovdBApaw6LM2f4DcXen wdMK2P9Q7WHhZIP5N2+4iCbcIi4pxpym0TaV9YBs07nV0GvnlA/Hb6+ZIbqYEpAhOVyARg1 DSIXliS0vtBbS79ymPSHw== X-UI-Out-Filterresults: notjunk:1;V01:K0:1ejrn9mxrrc=:7wLLJ/S7XbggVlI6ejeqAN /tFugHqVw8wjRVhmLoZy1DMFbV1XKv/Durn+QLnba+I0yx7A8vrwQ7+aBLKR1ss31D7za758p kemUtjihF+LMF6dibh+rgJslJom9Sa1Xs+FlytoKgMrVKvFJvNi5Ayt9oi/AUX1HMarlvBMW7 nRCuXosL4QnYFLniHwx0IZLwBMtMjNKz//dCwDHkjpPn78Wx2o1QlFxH/swVeivgERBIrYtY6 ZPeGMSIkpk6sRnmoHhT0DxmsHHW8fTI4J4advMIG4rJSTFS0OC7419yy2/qmscARuJXQ3v4xt a8MZhWLXzGwVbmdKnKFnJj8v870nrGGFMbyxDo6b2V9Jgmf0zNEhlZ/TgMV9M0MkRQDmXuNxO hdjzeVezaXw+NCCCYJCQYQRHDnC0al0AzFBxnvJ1wa5jD7J0aROXsepNci1NZV4ePvxWIw69a IpWlxPOq/mhub5vjuH0SgIJgOsUrIsI0IXW0kP3bfgreU4D9wJe1Qlh94GAh4Wt2Ccf5TlPY3 p5PZtyMJOJY9Q637NO9b8w3hLHpEktE6Esbf3TmnGNryRrC/gRd8ZeBnzeVT3LbxOr5tlU83J Ykfuxl0jaiYZATNSOhV9J1qlqThhekAJ1fRRZBIu7te1af1/JSnFj+AvOgAJ4HWPWO8oXcsd3 NMo6OmfG1wEoOX/dhUgiRW6cRmLhVYuNZiIYcWOoGstHT5fKATD0aPcku/uQOJU+0qsVYW5jE bYEKBfjuhMzkdKE7i/jssArw61eyf7eqy+5dkIaE9mAsYC/rF723OaEa6dZC5QCUDVlZuNSIR Q7lkPXoZoPtiqJtpniJKRV5VqdJ+A== X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2018 13:00:42 -0000 --Sig_/0Jlk.O6lo6/M=bUI4ZQeg_/ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am Sun, 14 Jan 2018 06:57:38 -0500 Charlie Li schrieb: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > On 14/01/2018 06:10, Hartmann, O. wrote: > > I tried to investigate with the USB image created 10th January > > 2018 from ISO downloads and it showed, that /boot/ was obviously > > intact, but files in /usr/sbin, /usr/bin were zero in size, also > > some libs in /usr/lib and /lib. While /boot/ seemingly being > > already installed while other portions failed, I knew from the past > > that I had to replace all /boot, /bin, /sbin, /usr/sbin, /usr/bin, > > /lib, /usr/lib , /usr/libexec and /libexec from the recent USB > > image. I did so via "pax -v -rw -pe", but I had to "chflags noschg" > > some files/libraries on the target to get them overwritten. I > > simply did a > >=20 > > chflags noschg * > >=20 > > to every folder/subfolder and "pax'ed" the destination then. So > > far. I'm able to boot into single user again, but when it comes to > > the shell and /bin/sh is supposed to be executed, I get the > > strange message: > >=20 > > /lib/casper/: read error: Invalid argument > >=20 > > and the prompt is jumping back to ensure the PASSWORD (console is=20 > > password protected). > > =20 > Something like this happened to me once, albeit a libc.so symbol > mismatch after a hard crash that corrupted that and some more system > files. >=20 > So far you're on the right track with copying files off the image, > though I extracted the relevant files/directory structures from the > base.txz that bsdinstall uses. > > Something is hindering to start the compiler somehow and it is > > related to /lib/casper/: read error: Invalid argument? > >=20 > > What is wrong here? How to fix this? > > =20 > Don't reboot out of the USB image. Stay there and chroot into your > mounted root filesystem, then run make installworld. >=20 > - --=20 > Charlie Li > Can't think of a witty .sigline today=E2=80=A6 >=20 > (This email address is for mailing list use only; > replace local-part with vishwin for off-list communication) > -----BEGIN PGP SIGNATURE----- > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ >=20 > iQIzBAEBCgAdFiEE/RdyC3Asy49czZEGtQ4IJhNZSS0FAlpbRZ0ACgkQtQ4IJhNZ > SS0aAxAAplLJ9NCLgttDDRLANK+ql15E5AE6pV1Y8jdLM7CunUzgMsyg/1hhy8ZK > 2TG/0mEE7+jsxYjW5Wu9uBjsGaRuwY4dAO7TNdkbn3DMzJsrbBCfkXKGjeFKHwQu > CB2fZRwfH6hdR0CxMeth9ftPHn8mbEqwl5YC4SLXBzixgi8Hpjj5J2Gne2nIur7q > yhXdChon+k50zl+WxAeCNXTkKK7QKEANh56D/6VgTEyR1POFJqKBywLKm07tePUC > 4Yqo4IPQsJsfQFCJ5V7o87PWqIpfsb/gPJkEsT81MKT0/XWRHXtHvzA0Ero7dMDS > WbGFblyPg7GRzNRC7FLfqPmcOW6Qc3JFr2KA6b5IVoV3IhCor1o+mEV8tkZY2iPz > scCImjPqr+QWoSt2Hv0QUc8i3L40pc4OAxslC8lCOKZrePA/nIowfRS8oJmhgKrL > 9gJDQxPQGAn0fYKoY3n+oI95YfIn9MBE6hmpUKfXSRqh+s6xX5sMnf2tqm7Swiul > Tjp05MbhBQn/Yxmwxa8Lnk6U3jtumza8qS8SXX3b039+8ADd4Y9L6l0IVk7+cG2i > uNXxbl9o5jqoUyRgEvGAGzohGGUzzpz4k/wHht1gWeEmww4WJ2VN6eL8FFepWi2v > o5rOeFbnuSzqOOslA6rQ6mkwDKPRoIVNFWEkQO1FR9MjyhKk7+4=3D > =3DYOoR > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" I was afraid of using bsdinstall or just tar'ing the base.txz into the moun= ted partition, since I know that several issues existed in the past with overwriting crucu= ial files. /etc/ is always backuped, but /var/db holds other files, like from O= penLDAP. And it seems FreeBSD didn't take care of those. Somehow I "bravely" extracted base.txz - successfully.=20 I wasn't able to isolate the /lib/casper/ issue - which is really a pity si= nce it would have been important for desaster-recovery analysis. Another point is that FreeBSD's kernel is quiet when it fails to boot into = multiuser mode. The phenomenon with the broken installation was, that the kernel stop= ped issuing anything after USB subsystem has been started. Pluggin and unplugging was r= eported, but the boot didn't proceed. Somehow this is annoying. Also, with CURRENT FreeBSD 12.0-CURRENT #75 r327948: Sat Jan 13 23:00:08 C= ET 2018 amd64 up and running again, there are some strange leftovers in /usr/lib: find ./ -ctime +5 -a -name "*.a" -exec ls -l {} \; -r--r--r-- 1 root wheel 173698 Dec 23 23:02 ./libmlx5.a -r--r--r-- 1 root wheel 75698 Dec 23 23:02 ./libibnetdisc.a -r--r--r-- 1 root wheel 43516 Dec 25 03:49 ./libcxgb4.a -r--r--r-- 1 root wheel 6044 Dec 23 23:02 ./libnandfs.a -r--r--r-- 1 root wheel 6580 Dec 23 23:02 ./libnandfs_p.a -r--r--r-- 1 root wheel 86580 Dec 25 03:49 ./libosmcomp.a -r--r--r-- 1 root wheel 22104 Oct 31 13:33 ./libibcommon.a -r--r--r-- 1 root wheel 69812 Dec 23 23:02 ./libibumad.a -r--r--r-- 1 root wheel 105084 Dec 25 03:49 ./libibverbs.a -r--r--r-- 1 root wheel 182118 Dec 23 23:02 ./libibmad.a -r--r--r-- 1 root wheel 67548 Dec 23 23:02 ./libmlx4.a -r--r--r-- 1 root wheel 51190 Oct 16 22:31 ./libmthca.a -r--r--r-- 1 root wheel 125960 Dec 23 23:02 ./libopensm.a -r--r--r-- 1 root wheel 39574 Dec 23 23:02 ./libosmvendor.a -r--r--r-- 1 root wheel 17466 Dec 23 23:02 ./libibcm.a -r--r--r-- 1 root wheel 62058 Dec 23 23:02 ./librdmacm.a -r--r--r-- 1 root wheel 112430 Oct 31 13:33 ./libibsdp.a Those files aren't addressed by "make delete-old-libs" and some of them see= m to belong to outdated or switched off portions of the tree. Regards, Oliver --=20 O. Hartmann Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.= 4 BDSG). --Sig_/0Jlk.O6lo6/M=bUI4ZQeg_/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWltUaAAKCRDS528fyFhY lHE4Af0UJEELRgjL992Juqo3CJkfXrKxbd41r47WcLeCWpyDOcar1Hj41WYNXMFy l3DNJMeR2VLQpHcPw+NAunHBvPwuAf91/h9xFgwGN4czmOjIj7qeTJzmO+ZeElWY osT055vBgOISDe6uSLBMWN++7vO1TkGMH3E1l/ZSUFZ0HtgH8x7o =7nXb -----END PGP SIGNATURE----- --Sig_/0Jlk.O6lo6/M=bUI4ZQeg_/--