Re: recovery from terminated make installworld?
On Thu, Mar 18, 2010 at 4:08 PM, krad kra...@googlemail.com wrote: On 18 March 2010 20:41, Freddie Cash fjwc...@gmail.com wrote: On Thu, Mar 18, 2010 at 1:07 PM, Justin Hibbits jr...@alumni.cwru.edu wrote: On Thu, Mar 18, 2010 at 4:03 PM, Anton Shterenlikht me...@bristol.ac.uk wrote: I was in the single user mode doing 'make installworld' when the system froze and I had to cold reboot. Now in single user mode I get to: Enter full pathname of shell or RETURN for /bin/sh: /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format Enter full pathname of shell or RETURN for /bin/sh: Is there a way to recover? Or do I have to reinstall from scratch? Try /rescue/sh (or tcsh). It's all statically linked, so you should be able to recover from there. And if that doesn't work, try a LiveFS CD. And, if all else fails, you can do a minimal install overtop. You'll lose all your /etc settings, but will get a bootable system again. -- Freddie Cash fjwc...@gmail.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org easier and less risky to boot in on some form of live cd, mount all the fs up under /mnt, set the DESTDIR=/mnt and continue the installworld Yes, this is the easiest way to do things: 1. Boot live CD, USB, w/e. 2. mount all of your filesystems. 3. make -C $DESTDIR/usr/src installworld DESTDIR=$DESTDIR No loss of data. But given that you've already done the reinstall, I suppose there's no way to go back now :/... -Garrett ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: recovery from terminated make installworld?
On Fri, 19 Mar 2010 02:28, Garrett Cooper wrote: In Message-Id: 7d6fde3d1003182328w63c84053r2bbc3e05f4ec6...@mail.gmail.com On Thu, Mar 18, 2010 at 4:08 PM, krad kra...@googlemail.com wrote: On 18 March 2010 20:41, Freddie Cash fjwc...@gmail.com wrote: On Thu, Mar 18, 2010 at 1:07 PM, Justin Hibbits jr...@alumni.cwru.edu wrote: On Thu, Mar 18, 2010 at 4:03 PM, Anton Shterenlikht me...@bristol.ac.uk wrote: I was in the single user mode doing 'make installworld' when the system froze and I had to cold reboot. Now in single user mode I get to: Enter full pathname of shell or RETURN for /bin/sh: /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format Enter full pathname of shell or RETURN for /bin/sh: Is there a way to recover? Or do I have to reinstall from scratch? Try /rescue/sh (or tcsh). It's all statically linked, so you should be able to recover from there. And if that doesn't work, try a LiveFS CD. And, if all else fails, you can do a minimal install overtop. You'll lose all your /etc settings, but will get a bootable system again. -- Freddie Cash fjwc...@gmail.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org easier and less risky to boot in on some form of live cd, mount all the fs up under /mnt, set the DESTDIR=/mnt and continue the installworld Yes, this is the easiest way to do things: 1. Boot live CD, USB, w/e. 2. mount all of your filesystems. 3. make -C $DESTDIR/usr/src installworld DESTDIR=$DESTDIR No loss of data. But given that you've already done the reinstall, I suppose there's no way to go back now :/... make(1) and friends come on the live CD or USB stick images ? AFAIR they didn't and it required a chroot(1) into the newly mounted environment and then running make(1) after invoking /rescue/sh to continue the install from a previously built world. If so then the above would become: chroot /mnt /rescue/sh cd /usr/src mergemaster -p make installworld mergemaster sync ;sync ;reboot --- continue whatever other steps from here... The above assumes you have already installed your new kernel. If not then it should be obvious of the steps you have to take to get that done. Regards, -- jhell ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: recovery from terminated make installworld?
On Thu, Mar 18, 2010 at 4:03 PM, Anton Shterenlikht me...@bristol.ac.ukwrote: I was in the single user mode doing 'make installworld' when the system froze and I had to cold reboot. Now in single user mode I get to: Enter full pathname of shell or RETURN for /bin/sh: /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format Enter full pathname of shell or RETURN for /bin/sh: Is there a way to recover? Or do I have to reinstall from scratch? thanks anton Try /rescue/sh (or tcsh). It's all statically linked, so you should be able to recover from there. - Justin ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: recovery from terminated make installworld?
On Thu, Mar 18, 2010 at 1:07 PM, Justin Hibbits jr...@alumni.cwru.eduwrote: On Thu, Mar 18, 2010 at 4:03 PM, Anton Shterenlikht me...@bristol.ac.uk wrote: I was in the single user mode doing 'make installworld' when the system froze and I had to cold reboot. Now in single user mode I get to: Enter full pathname of shell or RETURN for /bin/sh: /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format Enter full pathname of shell or RETURN for /bin/sh: Is there a way to recover? Or do I have to reinstall from scratch? Try /rescue/sh (or tcsh). It's all statically linked, so you should be able to recover from there. And if that doesn't work, try a LiveFS CD. And, if all else fails, you can do a minimal install overtop. You'll lose all your /etc settings, but will get a bootable system again. -- Freddie Cash fjwc...@gmail.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: recovery from terminated make installworld?
Freddie Cash fjwc...@gmail.com writes: On Thu, Mar 18, 2010 at 1:07 PM, Justin Hibbits jr...@alumni.cwru.eduwrote: On Thu, Mar 18, 2010 at 4:03 PM, Anton Shterenlikht me...@bristol.ac.uk wrote: I was in the single user mode doing 'make installworld' when the system froze and I had to cold reboot. Now in single user mode I get to: Enter full pathname of shell or RETURN for /bin/sh: /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format Enter full pathname of shell or RETURN for /bin/sh: Is there a way to recover? Or do I have to reinstall from scratch? Try /rescue/sh (or tcsh). It's all statically linked, so you should be able to recover from there. And if that doesn't work, try a LiveFS CD. And, if all else fails, you can do a minimal install overtop. You'll lose all your /etc settings, but will get a bootable system again. A lot of the time, an upgrade binary install will do the job, with less risk to your /etc directory. I had a problem like this not that long ago, thanks to the new kernel crashing (but not until I'd had time to start the installworld). Going back to the old kernel and copying in the libraries that didn't work was enough to get me up enough to retry the upgrade with a GENERIC kernel. I don't generally recommend running -current to anybody unless they have some comfort with recovering from these kinds of problems... ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: recovery from terminated make installworld?
On 18 March 2010 20:41, Freddie Cash fjwc...@gmail.com wrote: On Thu, Mar 18, 2010 at 1:07 PM, Justin Hibbits jr...@alumni.cwru.edu wrote: On Thu, Mar 18, 2010 at 4:03 PM, Anton Shterenlikht me...@bristol.ac.uk wrote: I was in the single user mode doing 'make installworld' when the system froze and I had to cold reboot. Now in single user mode I get to: Enter full pathname of shell or RETURN for /bin/sh: /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format Enter full pathname of shell or RETURN for /bin/sh: Is there a way to recover? Or do I have to reinstall from scratch? Try /rescue/sh (or tcsh). It's all statically linked, so you should be able to recover from there. And if that doesn't work, try a LiveFS CD. And, if all else fails, you can do a minimal install overtop. You'll lose all your /etc settings, but will get a bootable system again. -- Freddie Cash fjwc...@gmail.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org easier and less risky to boot in on some form of live cd, mount all the fs up under /mnt, set the DESTDIR=/mnt and continue the installworld ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: recovery from terminated make installworld?
On Thu, Mar 18, 2010 at 05:26:52PM -0700, Julian Elischer wrote: Anton Shterenlikht wrote: I was in the single user mode doing 'make installworld' when the system froze and I had to cold reboot. Now in single user mode I get to: Enter full pathname of shell or RETURN for /bin/sh: /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format /libexec/ld-elf.so.1: /lib/libc.so.7: invalid file format Enter full pathname of shell or RETURN for /bin/sh: Is there a way to recover? Or do I have to reinstall from scratch? thanks anton is there anything in /rescue? they should still run. e.g. /rescue/sh many thanks for all advice In my situation reinstall was the easiest option. anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org