Re: Accidentally moved /libexec/ld-elf.so.1
I appreciate the help thus far; as /rescue/csh in single user mode has moved me past my first hurdle. However, being the blundering newbie I am, I was working in the /tmp directory, which seems to have been cleared (or is empty for whatever reason in the current state.) If it has been wiped, my ld-elf.so.1 file has been wiped with it. What to do? Thanks much Stew On Fri, Aug 21, 2009 at 1:24 AM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.netmel.flynn%2bfbsd.questi...@mailing.thruhere.net wrote: On Thursday 20 August 2009 18:44:12 Stew Houston wrote: Setting up a chroot jail I accidentally moved /libexec/ld-elf.so.1 instead of copying it. Bash would no longer take any commands, though I can't remember the error I was getting (it was aborting.) I rebooted, hoping I could do something in Single User Mode; but to no avail. Is there a way I can undo this blunder? /rescue/mv /path/to/jail/libexec/ld-elf.so.1 /libexec/ -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Accidentally moved /libexec/ld-elf.so.1
On Fri, Aug 21, 2009 at 7:28 PM, Stew Houstonstewhous...@gmail.com wrote: I appreciate the help thus far; as /rescue/csh in single user mode has moved me past my first hurdle. However, being the blundering newbie I am, I was working in the /tmp directory, which seems to have been cleared (or is empty for whatever reason in the current state.) If it has been wiped, my ld-elf.so.1 file has been wiped with it. What to do? You'll have to mount /tmp to use it. On my system, /tmp is /dev/ad6s1e - yours may vary. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Accidentally moved /libexec/ld-elf.so.1
On Fri, 21 Aug 2009 19:28:47 -0400, Stew Houston stewhous...@gmail.com wrote: However, being the blundering newbie I am, I was working in the /tmp directory, which seems to have been cleared (or is empty for whatever reason in the current state.) Cleaning the /tmp directory at startup usually is controlled via an /etc/rc.conf setting: it's clear_tmp_enable=YES. As far as I got from searching for ld-elf related stuff, a command like # cd /usr/src/libexec/rtld-elf # make install could do the trick. But I haven't checked this, and I am not sure. If it has been wiped, my ld-elf.so.1 file has been wiped with it. What to do? If your source tree is still intact, you could install it from there. It may be possible that the system doesn't run well enough to perform this task. In such a case a live file system could help you, e. g. the FreeBSD rescue system or a FreeSBIE bootable CD. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Accidentally moved /libexec/ld-elf.so.1
Replying to my own message in order to clarify: On Sat, 22 Aug 2009 01:53:43 +0200, Polytropon free...@edvax.de wrote: On Fri, 21 Aug 2009 19:28:47 -0400, Stew Houston stewhous...@gmail.com wrote: However, being the blundering newbie I am, I was working in the /tmp directory, which seems to have been cleared (or is empty for whatever reason in the current state.) Cleaning the /tmp directory at startup usually is controlled via an /etc/rc.conf setting: it's clear_tmp_enable=YES. As Glen suggested: If /tmp resides on its own partition, it could still be intact. So mount /tmp and copy the file: # mount /tmp # cp /tmp/ld-elf.so.1 /libexec As far as I got from searching for ld-elf related stuff, a command like # cd /usr/src/libexec/rtld-elf # make install could do the trick. But I haven't checked this, and I am not sure. I checked now. The make command produces ld-elf.so.1, at least on my system. If make install doesn't work correctly, copy the file manually. # cd /usr/src/libexec/rtld-elf # make # cp ld-elf.so.1 /libexec Of course, you will need to have /usr mounted if it's not on the / partition. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Accidentally moved /libexec/ld-elf.so.1
Polytropon wrote: Replying to my own message in order to clarify: On Sat, 22 Aug 2009 01:53:43 +0200, Polytropon free...@edvax.de wrote: On Fri, 21 Aug 2009 19:28:47 -0400, Stew Houston stewhous...@gmail.com wrote: However, being the blundering newbie I am, I was working in the /tmp directory, which seems to have been cleared (or is empty for whatever reason in the current state.) Cleaning the /tmp directory at startup usually is controlled via an /etc/rc.conf setting: it's clear_tmp_enable=YES. As Glen suggested: If /tmp resides on its own partition, it could still be intact. So mount /tmp and copy the file: # mount /tmp # cp /tmp/ld-elf.so.1 /libexec As far as I got from searching for ld-elf related stuff, a command like # cd /usr/src/libexec/rtld-elf # make install could do the trick. But I haven't checked this, and I am not sure. I checked now. The make command produces ld-elf.so.1, at least on my system. If make install doesn't work correctly, copy the file manually. # cd /usr/src/libexec/rtld-elf # make # cp ld-elf.so.1 /libexec Of course, you will need to have /usr mounted if it's not on the / partition. I don't know if it will help or not, but here is a link to the file in question. If all of the other great recommendations don't pan out, you may be able to boot from some form of 'live cd', and then fetch the file into place. http://www.ipv6canada.com/ld-elf.so.1 % mount /dev/ad0s1a /mnt # where ad0s1a is your / on the hard disk % cd /mnt/libexec % fetch http://www.ipv6canada.com/ld-elf.so.1 % reboot Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: Accidentally moved /libexec/ld-elf.so.1
Thank you all for the wonderful help. I've recovered the file and the system is fully operational. The solution that worked was: Single User Mode /rescue/sh /rescue/mount / /rescue/mount /tmp /rescue/mv /tmp/libexec/ld-elf.so.1 /libexec As I spent my entire youth on Windows, I can honestly say this is the first time this type scenario didn't end in reformatting. FreeBSD is rockin' Stew On Fri, Aug 21, 2009 at 8:15 PM, Steve Bertrand st...@ibctech.ca wrote: Polytropon wrote: Replying to my own message in order to clarify: On Sat, 22 Aug 2009 01:53:43 +0200, Polytropon free...@edvax.de wrote: On Fri, 21 Aug 2009 19:28:47 -0400, Stew Houston stewhous...@gmail.com wrote: However, being the blundering newbie I am, I was working in the /tmp directory, which seems to have been cleared (or is empty for whatever reason in the current state.) Cleaning the /tmp directory at startup usually is controlled via an /etc/rc.conf setting: it's clear_tmp_enable=YES. As Glen suggested: If /tmp resides on its own partition, it could still be intact. So mount /tmp and copy the file: # mount /tmp # cp /tmp/ld-elf.so.1 /libexec As far as I got from searching for ld-elf related stuff, a command like # cd /usr/src/libexec/rtld-elf # make install could do the trick. But I haven't checked this, and I am not sure. I checked now. The make command produces ld-elf.so.1, at least on my system. If make install doesn't work correctly, copy the file manually. # cd /usr/src/libexec/rtld-elf # make # cp ld-elf.so.1 /libexec Of course, you will need to have /usr mounted if it's not on the / partition. I don't know if it will help or not, but here is a link to the file in question. If all of the other great recommendations don't pan out, you may be able to boot from some form of 'live cd', and then fetch the file into place. http://www.ipv6canada.com/ld-elf.so.1 % mount /dev/ad0s1a /mnt # where ad0s1a is your / on the hard disk % cd /mnt/libexec % fetch http://www.ipv6canada.com/ld-elf.so.1 % reboot Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Accidentally moved /libexec/ld-elf.so.1
Setting up a chroot jail I accidentally moved /libexec/ld-elf.so.1 instead of copying it. Bash would no longer take any commands, though I can't remember the error I was getting (it was aborting.) I rebooted, hoping I could do something in Single User Mode; but to no avail. Is there a way I can undo this blunder? Stew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Accidentally moved /libexec/ld-elf.so.1
On Thu, Aug 20, 2009 at 10:44 PM, Stew Houstonstewhous...@gmail.com wrote: Setting up a chroot jail I accidentally moved /libexec/ld-elf.so.1 instead of copying it. Bash would no longer take any commands, though I can't remember the error I was getting (it was aborting.) I rebooted, hoping I could do something in Single User Mode; but to no avail. Is there a way I can undo this blunder? When entering single user mode, you should be prompted with an option to select a shell. You should be able to use /bin/csh. Worst case, you can use /rescue/csh. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Accidentally moved /libexec/ld-elf.so.1
On Thursday 20 August 2009 18:44:12 Stew Houston wrote: Setting up a chroot jail I accidentally moved /libexec/ld-elf.so.1 instead of copying it. Bash would no longer take any commands, though I can't remember the error I was getting (it was aborting.) I rebooted, hoping I could do something in Single User Mode; but to no avail. Is there a way I can undo this blunder? /rescue/mv /path/to/jail/libexec/ld-elf.so.1 /libexec/ -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org