I made a mess. libc

Teske, Devin Devin.Teske at fisglobal.com
Thu Feb 21 17:01:30 UTC 2013


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-questions at freebsd.org [owner-freebsd-questions at freebsd.org] on behalf of Bernt Hansson [bah at 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 <bah at bananmonarki.se> 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 at 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 at pf1:/usr/ports/emulators/fuse # md5 /lib/libc.so.7
> MD5 (/lib/libc.so.7) = 9e4b09aa6dbc731bf56593b736e9fef1
>
> root at pf1:/usr/ports/emulators/fuse # shasum /lib/libc.so.7
> 19e856f287586f52611aca9a4aa8a4104b65fb4e  /lib/libc.so.7
>
> root at 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     root at 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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.


More information about the freebsd-questions mailing list