Re: I made a mess. libc
Thank you all for your input. Went to the office very dark in my mind. I found a cd with amd64 8.0-R and I could copy libc.so.7 I Thank you ALLnow i'm crying so I leave you now. ___ 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: I made a mess. libc
On 22/02/2013 4:44 PM, Shane Ambler wrote: You missed the earlier suggestion - at the single user prompt for a shell don't just hit enter - type in /rescue/sh This suggestion was gold for me, but in a different way. I have for years lamented the passing of static binaries in /bin and /sbin. I forget who mentioned that /rescue/* are statically linked - I had never known that. Today I have just built a 5.4-RELEASE jail on a 9.1-STABLE system, and being able to include a statically linked 9.1-STABLE 'ps' is very useful. The 5.4 version of ps is useless in this jail. And just in case the significance is lost on Bernt, /rescue/sh does not rely on libc, so it won't care if libc is broken. Danny ___ 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: I made a mess. libc
On 22/02/2013 10:07, Bernt Hansson wrote: Yes that is an idea. Since Damien was kind to host the file I downloaded it and will try later today (friday) The problem is I can't burn or otherwise get in to the machine. libc.so.7: invalid file format You missed the earlier suggestion - at the single user prompt for a shell don't just hit enter - type in /rescue/sh ___ 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: I made a mess. libc
2013-02-21 22:10, Joshua Isom skrev: On 2/21/2013 11:22 AM, Bernt Hansson wrote: 2013-02-21 18:01, Teske, Devin skrev: Is it the base machine that won't boot? I got this ... That is correct. So no cd burning no nothing...Well it want to drop in to a single shell bla bla bla press enter for /bin/sh libexec* libc.so.7: invalid file format I do not want to reinstall, have 4 encrypted disks. If you get the PC-BSD memstick, it boots FreeBSD with a GUI. You'll want the USB Live probably. The PC-BSD versions match the FreeBSD versions. If you're running 8.3, get the 8.3 memstick for instance. You could be safe just copying the libc from PC-BSD to your host, and then just reinstall for sanity's sake. Yes that is an idea. Since Damien was kind to host the file I downloaded it and will try later today (friday) The problem is I can't burn or otherwise get in to the machine. libc.so.7: invalid file format ___ 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: I made a mess. libc
On 2/21/2013 11:22 AM, Bernt Hansson wrote: 2013-02-21 18:01, Teske, Devin skrev: Is it the base machine that won't boot? I got this ... That is correct. So no cd burning no nothing...Well it want to drop in to a single shell bla bla bla press enter for /bin/sh libexec* libc.so.7: invalid file format I do not want to reinstall, have 4 encrypted disks. If you get the PC-BSD memstick, it boots FreeBSD with a GUI. You'll want the USB Live probably. The PC-BSD versions match the FreeBSD versions. If you're running 8.3, get the 8.3 memstick for instance. You could be safe just copying the libc from PC-BSD to your host, and then just reinstall for sanity's sake. ___ 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: I made a mess. libc
As per Devin's suggestion, I just set up a RCP server from which you'll be able to grab libc.so.7 using /rescue/rcp I'm gonna need, in private, your IP address so I can add you both to .rhosts and firewall rules. I'm leaving work now so I may not answer again before 2-3 hours. On Feb 21, 2013, at 6:46 PM, "Teske, Devin" wrote: > Can you specify perhaps "/rescue/sh" as the single-user shell? > > That should get you in. > > Then you have to stick to static executables like /rescue/rcp to remotely > transfer files. > > Perhaps someone can host a file on a machine that can be reached via > /rescue/rcp for you. > -- > Devin > > > > From: Bernt Hansson [b...@bananmonarki.se] > Sent: Thursday, February 21, 2013 9:22 AM > To: Teske, Devin > Cc: Fleuriot Damien; questions FreeBSD > Subject: Re: I made a mess. libc > > 2013-02-21 18:01, Teske, Devin skrev: >> Is it the base machine that won't boot? I got this ... > > That is correct. So no cd burning no nothing...Well it want to drop in > to a single shell bla bla bla press enter for /bin/sh > > > libexec* libc.so.7: invalid file format > > I do not want to reinstall, have 4 encrypted disks. > > >> My latest version of Druid has a very sophisticated "Interactive Disk >> Repair" script that will assemble your system "humpty-dumpty style" while >> booted from a CD or Thumb drive (you said you couldn't burn a CD, but it >> wasn't clear whether you could master a thumb drive). >> >> https://urldefense.proofpoint.com/v1/url?u=http://sourceforge.net/projects/druidbsd/files/FreeBSD-8.3_Druid-1.0b60.iso/download&k=%2FbkpAUdJWZuiTILCq%2FFnQg%3D%3D%0A&r=LTzUWWrRnz2iN3PtHDubWRSAh9itVJ%2BMUcNBCQ4tyeo%3D%0A&m=07piZUd2tTTVmRt2abbbhXwBr9OUC7olyXwRy6BdjoM%3D%0A&s=a0b244b57abd48f38a1cd817513b96950f4c6f2f035b3d33ddee2a27938b2f04 >> >> When you run the "Interactive Disk Repair (IDR) Shell" option, it presents >> you with a few questions (like, "I've found a saved network interface in >> rc.conf(5) -- would you like me to activate it for you?"), and ultimately >> mounts your system to present a working shell to fix your problems. >> >> Important: when it asks you if you want to chroot into the mounted >> filesystem, say NO (you're libc isn't working, so that would be a bad idea) >> -- rather, run from the LiveFS environment where /mnt is your mounted >> system. There's even a copy of libc in the LiveFS environment that you can >> copy over your old one... >> >> cp /cdrom/freebsd/rescue/lib/libc.so.7 /mnt/lib/libc.so.7 >> >> (if I recall correctly) >> > > _ > The information contained in this message is proprietary and/or confidential. > If you are not the intended recipient, please: (i) delete the message and all > copies; (ii) do not disclose, distribute or use the message in any manner; > and (iii) notify the sender immediately. In addition, please be aware that > any message addressed to our domain is subject to archiving and review by > persons other than the intended recipient. Thank you. ___ 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: I made a mess. libc
Can you specify perhaps "/rescue/sh" as the single-user shell? That should get you in. Then you have to stick to static executables like /rescue/rcp to remotely transfer files. Perhaps someone can host a file on a machine that can be reached via /rescue/rcp for you. -- Devin From: Bernt Hansson [b...@bananmonarki.se] Sent: Thursday, February 21, 2013 9:22 AM To: Teske, Devin Cc: Fleuriot Damien; questions FreeBSD Subject: Re: I made a mess. libc 2013-02-21 18:01, Teske, Devin skrev: > Is it the base machine that won't boot? I got this ... That is correct. So no cd burning no nothing...Well it want to drop in to a single shell bla bla bla press enter for /bin/sh libexec* libc.so.7: invalid file format I do not want to reinstall, have 4 encrypted disks. > My latest version of Druid has a very sophisticated "Interactive Disk Repair" > script that will assemble your system "humpty-dumpty style" while booted from > a CD or Thumb drive (you said you couldn't burn a CD, but it wasn't clear > whether you could master a thumb drive). > > https://urldefense.proofpoint.com/v1/url?u=http://sourceforge.net/projects/druidbsd/files/FreeBSD-8.3_Druid-1.0b60.iso/download&k=%2FbkpAUdJWZuiTILCq%2FFnQg%3D%3D%0A&r=LTzUWWrRnz2iN3PtHDubWRSAh9itVJ%2BMUcNBCQ4tyeo%3D%0A&m=07piZUd2tTTVmRt2abbbhXwBr9OUC7olyXwRy6BdjoM%3D%0A&s=a0b244b57abd48f38a1cd817513b96950f4c6f2f035b3d33ddee2a27938b2f04 > > When you run the "Interactive Disk Repair (IDR) Shell" option, it presents > you with a few questions (like, "I've found a saved network interface in > rc.conf(5) -- would you like me to activate it for you?"), and ultimately > mounts your system to present a working shell to fix your problems. > > Important: when it asks you if you want to chroot into the mounted > filesystem, say NO (you're libc isn't working, so that would be a bad idea) > -- rather, run from the LiveFS environment where /mnt is your mounted system. > There's even a copy of libc in the LiveFS environment that you can copy over > your old one... > > cp /cdrom/freebsd/rescue/lib/libc.so.7 /mnt/lib/libc.so.7 > > (if I recall correctly) > _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: I made a mess. libc
On Thu, 21 Feb 2013 18:22:47 +0100 Bernt Hansson wrote: > 2013-02-21 18:01, Teske, Devin skrev: > > Is it the base machine that won't boot? I got this ... > > That is correct. So no cd burning no nothing...Well it want to drop in > to a single shell bla bla bla press enter for /bin/sh > > > libexec* libc.so.7: invalid file format IIRC you get an option at this point to enter a full path to the shell, enter /rescue/sh which will get you a statically linked shell. You should then be able to use the tools in /rescue to replace libc provided you can somehow get a copy of it where you can read it. -- Steve O'Hara-Smith ___ 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: I made a mess. libc
On Feb 21, 2013, at 6:22 PM, Bernt Hansson wrote: > 2013-02-21 18:01, Teske, Devin skrev: >> Is it the base machine that won't boot? I got this ... > > That is correct. So no cd burning no nothing...Well it want to drop in to a > single shell bla bla bla press enter for /bin/sh > > > libexec* libc.so.7: invalid file format > > I do not want to reinstall, have 4 encrypted disks. And you have absolutely no way to boot I don't know, PXE, USB ? Do you have remote console access, anything ? I'll tell you what, I'll still scp the file to a www and give you the link, if you should find a way to access your file system, you can always copy it over. http://my.gd/libc.so.7 ___ 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: I made a mess. libc
2013-02-21 18:01, Teske, Devin skrev: Is it the base machine that won't boot? I got this ... That is correct. So no cd burning no nothing...Well it want to drop in to a single shell bla bla bla press enter for /bin/sh libexec* libc.so.7: invalid file format I do not want to reinstall, have 4 encrypted disks. My latest version of Druid has a very sophisticated "Interactive Disk Repair" script that will assemble your system "humpty-dumpty style" while booted from a CD or Thumb drive (you said you couldn't burn a CD, but it wasn't clear whether you could master a thumb drive). http://sourceforge.net/projects/druidbsd/files/FreeBSD-8.3_Druid-1.0b60.iso/download When you run the "Interactive Disk Repair (IDR) Shell" option, it presents you with a few questions (like, "I've found a saved network interface in rc.conf(5) -- would you like me to activate it for you?"), and ultimately mounts your system to present a working shell to fix your problems. Important: when it asks you if you want to chroot into the mounted filesystem, say NO (you're libc isn't working, so that would be a bad idea) -- rather, run from the LiveFS environment where /mnt is your mounted system. There's even a copy of libc in the LiveFS environment that you can copy over your old one... cp /cdrom/freebsd/rescue/lib/libc.so.7 /mnt/lib/libc.so.7 (if I recall correctly) ___ 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: I made a mess. libc
Is it the base machine that won't boot? I got this ... My latest version of Druid has a very sophisticated "Interactive Disk Repair" script that will assemble your system "humpty-dumpty style" while booted from a CD or Thumb drive (you said you couldn't burn a CD, but it wasn't clear whether you could master a thumb drive). http://sourceforge.net/projects/druidbsd/files/FreeBSD-8.3_Druid-1.0b60.iso/download When you run the "Interactive Disk Repair (IDR) Shell" option, it presents you with a few questions (like, "I've found a saved network interface in rc.conf(5) -- would you like me to activate it for you?"), and ultimately mounts your system to present a working shell to fix your problems. Important: when it asks you if you want to chroot into the mounted filesystem, say NO (you're libc isn't working, so that would be a bad idea) -- rather, run from the LiveFS environment where /mnt is your mounted system. There's even a copy of libc in the LiveFS environment that you can copy over your old one... cp /cdrom/freebsd/rescue/lib/libc.so.7 /mnt/lib/libc.so.7 (if I recall correctly) -- Devin From: owner-freebsd-questi...@freebsd.org [owner-freebsd-questi...@freebsd.org] on behalf of Bernt Hansson [b...@bananmonarki.se] Sent: Thursday, February 21, 2013 7:51 AM To: Fleuriot Damien Cc: questions FreeBSD Subject: Re: I made a mess. libc 2013-02-21 15:43, Fleuriot Damien skrev: > > On Feb 21, 2013, at 3:34 PM, Bernt Hansson wrote: > >> Hello list! >> >> It's me again. >> >> I was happily upgrading my jail make build* and so on. >> >> Make installworld failed with som chflag set on libc.so.7 >> so i left jail and went to the host and tought I fixit from there. >> >> I did remove the chflag and all was well I tought, but no. >> >> Copy it to the jail, someone screamed, ok I'll do that >> >> Well the problem is I copied it to the host amd64 and jail is i386. >> >> the host locked up hard and after a reboot I get >> >> libc.so.7 invalid file format. How do I get it back. >> >> I can not burn a cd with livefs, wich should be on memorystick >> anyway. >> >> Thanks for any help and it's needed. > > > > This is my libc.so.7 from the 19th, for 8-stable amd64, after the patch for > the security advisory. > > root@pf1:/usr/ports/emulators/fuse # ls -l /lib/libc.so.7 > -r--r--r-- 1 root wheel 1399225 Feb 19 15:27 /lib/libc.so.7 > > root@pf1:/usr/ports/emulators/fuse # md5 /lib/libc.so.7 > MD5 (/lib/libc.so.7) = 9e4b09aa6dbc731bf56593b736e9fef1 > > root@pf1:/usr/ports/emulators/fuse # shasum /lib/libc.so.7 > 19e856f287586f52611aca9a4aa8a4104b65fb4e /lib/libc.so.7 > > root@pf1:/usr/ports/emulators/fuse # uname -a > FreeBSD pf1.backbone.dev 8.3-STABLE FreeBSD 8.3-STABLE #6 r247008M: Tue Feb > 19 20:14:57 UTC 2013 r...@pf1.backbone.dev:/usr/obj/usr/src/sys/UNIVERSAL > amd64 > > > I can host the file over HTTP if you want. > That was very nice of you, but how do I get the file into my machine? ___ 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" _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: I made a mess. libc
2013-02-21 15:43, Fleuriot Damien skrev: On Feb 21, 2013, at 3:34 PM, Bernt Hansson wrote: Hello list! It's me again. I was happily upgrading my jail make build* and so on. Make installworld failed with som chflag set on libc.so.7 so i left jail and went to the host and tought I fixit from there. I did remove the chflag and all was well I tought, but no. Copy it to the jail, someone screamed, ok I'll do that Well the problem is I copied it to the host amd64 and jail is i386. the host locked up hard and after a reboot I get libc.so.7 invalid file format. How do I get it back. I can not burn a cd with livefs, wich should be on memorystick anyway. Thanks for any help and it's needed. This is my libc.so.7 from the 19th, for 8-stable amd64, after the patch for the security advisory. root@pf1:/usr/ports/emulators/fuse # ls -l /lib/libc.so.7 -r--r--r-- 1 root wheel 1399225 Feb 19 15:27 /lib/libc.so.7 root@pf1:/usr/ports/emulators/fuse # md5 /lib/libc.so.7 MD5 (/lib/libc.so.7) = 9e4b09aa6dbc731bf56593b736e9fef1 root@pf1:/usr/ports/emulators/fuse # shasum /lib/libc.so.7 19e856f287586f52611aca9a4aa8a4104b65fb4e /lib/libc.so.7 root@pf1:/usr/ports/emulators/fuse # uname -a FreeBSD pf1.backbone.dev 8.3-STABLE FreeBSD 8.3-STABLE #6 r247008M: Tue Feb 19 20:14:57 UTC 2013 r...@pf1.backbone.dev:/usr/obj/usr/src/sys/UNIVERSAL amd64 I can host the file over HTTP if you want. That was very nice of you, but how do I get the file into my machine? ___ 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: I made a mess. libc
On Feb 21, 2013, at 3:34 PM, Bernt Hansson wrote: > Hello list! > > It's me again. > > I was happily upgrading my jail make build* and so on. > > Make installworld failed with som chflag set on libc.so.7 > so i left jail and went to the host and tought I fixit from there. > > I did remove the chflag and all was well I tought, but no. > > Copy it to the jail, someone screamed, ok I'll do that > > Well the problem is I copied it to the host amd64 and jail is i386. > > the host locked up hard and after a reboot I get > > libc.so.7 invalid file format. How do I get it back. > > I can not burn a cd with livefs, wich should be on memorystick > anyway. > > Thanks for any help and it's needed. This is my libc.so.7 from the 19th, for 8-stable amd64, after the patch for the security advisory. root@pf1:/usr/ports/emulators/fuse # ls -l /lib/libc.so.7 -r--r--r-- 1 root wheel 1399225 Feb 19 15:27 /lib/libc.so.7 root@pf1:/usr/ports/emulators/fuse # md5 /lib/libc.so.7 MD5 (/lib/libc.so.7) = 9e4b09aa6dbc731bf56593b736e9fef1 root@pf1:/usr/ports/emulators/fuse # shasum /lib/libc.so.7 19e856f287586f52611aca9a4aa8a4104b65fb4e /lib/libc.so.7 root@pf1:/usr/ports/emulators/fuse # uname -a FreeBSD pf1.backbone.dev 8.3-STABLE FreeBSD 8.3-STABLE #6 r247008M: Tue Feb 19 20:14:57 UTC 2013 r...@pf1.backbone.dev:/usr/obj/usr/src/sys/UNIVERSAL amd64 I can host the file over HTTP if you want. ___ 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"