From owner-freebsd-current@freebsd.org Sun Jan 14 11:57:45 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 A6593E654AC for ; Sun, 14 Jan 2018 11:57:45 +0000 (UTC) (envelope-from ml@vishwin.info) Received: from varun.vishwin.info (varun.vishwin.info [46.101.93.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "varun.vishwin.info", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B01E78AF0 for ; Sun, 14 Jan 2018 11:57:44 +0000 (UTC) (envelope-from ml@vishwin.info) Received: from varun.vishwin.info (fd35:9eae:7575::2 [IPv6:fd35:9eae:7575::2]) by varun.vishwin.info (OpenSMTPD) with ESMTP id cbb4f159 for ; Sun, 14 Jan 2018 06:57:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=vishwin.info; h=subject :references:to:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=fuccboi12; bh=AeeFdhh cat/JSs+ohpOJDrAFpWJAUpHY5G9SRK6je6M=; b=scDk1U6sfOYCgapRcTK29jo +Jan93eTsIrXa+Crt05gi5ahGFK8v/LGYHwlu1eVLf3lPrzF/lpyf+j3tYOgbzBy z/3/VdSyDQho7oF53+Gx1igU84OlMiJK0Dh7joJyPX7Hcb1G3NrMjKuYo3Rg4Gk+ yhVhsfGKzcaOqtA8v0D1PFgkNOb9KcLIDY1s/oL1PQyF3bhR23YFMrbf/Y3OMGEW GfJ09e/SA42tLJSCg490ROSCSZzEufDn+xbtbsA2gBEjE1n8KOG6As8JA5d9fXca 8WfNdmTuyUHXVVaHVg2gQM3weExzeH+vP9qEE+Ngi4u9etyphUyJCr2vPoHoy/g= = Received: from [IPv6:2001:470:8:6ca:cad7:19ff:fec0:a06d] (2001:470:8:6ca:cad7:19ff:fec0:a06d [IPv6:2001:470:8:6ca:cad7:19ff:fec0:a06d]) by varun.vishwin.info (OpenSMTPD) with ESMTPSA id 4a9f7e63 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO for ; Sun, 14 Jan 2018 06:57:39 -0500 (EST) Subject: Re: /lib/casper: read error: Invalid argument References: <20180114121011.56204f3f@hermann.intern.walstatt.dynvpn.de> To: freebsd-current@freebsd.org From: Charlie Li Message-ID: <73025813-0fb8-d9a6-2b10-ad65589a6865@vishwin.info> Date: Sun, 14 Jan 2018 06:57:38 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180114121011.56204f3f@hermann.intern.walstatt.dynvpn.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB-large Content-Transfer-Encoding: 8bit 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 11:57:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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 > > chflags noschg * > > 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: > > /lib/casper/: read error: Invalid argument > > and the prompt is jumping back to ensure the PASSWORD (console is > password protected). > 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. 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? > > What is wrong here? How to fix this? > Don't reboot out of the USB image. Stay there and chroot into your mounted root filesystem, then run make installworld. - -- Charlie Li Can't think of a witty .sigline today… (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/ 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= =YOoR -----END PGP SIGNATURE-----