Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Deleted /lib directory... How to restore from LiveCD, etc?

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
nimar
n00b
n00b
Posts: 50
Joined: Thu Dec 06, 2007 9:00 pm
Location: So CA

Deleted /lib directory... How to restore from LiveCD, etc?

  • Quote

Post by nimar » Wed Dec 19, 2007 1:34 pm

Hello,
After many years of Linux use I was rebuilding a kernel on my laptop and was removing some old /lib/modules/kernel files and fat fingered it.
Ah well...
Does anyone know of a way to rebuild the /lib directory? I have a another desktop running Gentoo, as well as a LiveCD, & a Knoppix CD..
Can I CHROOT, copy the /lib directory over from the LiveCD and then rebuild the Kernel?
Many Thanks!
-N
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Wed Dec 19, 2007 11:33 pm

That's sort of the problem with Gentoo - you may not be able to steal binaries from another box and expect them to work due to differing USE flags. Ideally what you have to end up doing is taking your world file, your make.conf and USE flags, and rebuild all those files in /lib using a recovery CD as if you were starting from scratch again. Probably could swipe the /lib directory from a stage3 to start from to at least start that going again.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
nimar
n00b
n00b
Posts: 50
Joined: Thu Dec 06, 2007 9:00 pm
Location: So CA

  • Quote

Post by nimar » Thu Dec 20, 2007 2:36 am

Thanks for the reply!
I ended up copying the /lib directory from the livecd. That got me going (with a lot less errors than I had) Bash complained about everything.
I then rebuilt the kernel, re-emerged portage & bash from the CHROOT'd environment.
Rebooted to the HDD and logged in as normal.
I then re-emerged gcc,glibc, & libstdc++ and rebuilt the kernel, again, against the newly emerged compiler...
Temporarily added GCC,glibc, & libstdc++ to package.mask and emerged -e system & emerged -e world.
Still going on the world emerge, but all seems fine for now.
Guess that'll teach me for using my fat fingers while typing.
I'm sure there was an easier way, but this got me going and it got the system back into a good state of health.
Best Regards
-N
Top
altima
n00b
n00b
Posts: 8
Joined: Sat Mar 03, 2012 6:45 pm

  • Quote

Post by altima » Wed Sep 11, 2013 9:20 am

nimar wrote:Thanks for the reply!
I ended up copying the /lib directory from the livecd. That got me going (with a lot less errors than I had) Bash complained about everything.
I then rebuilt the kernel, re-emerged portage & bash from the CHROOT'd environment.
Rebooted to the HDD and logged in as normal.
I then re-emerged gcc,glibc, & libstdc++ and rebuilt the kernel, again, against the newly emerged compiler...
Temporarily added GCC,glibc, & libstdc++ to package.mask and emerged -e system & emerged -e world.
Still going on the world emerge, but all seems fine for now.
Guess that'll teach me for using my fat fingers while typing.
I'm sure there was an easier way, but this got me going and it got the system back into a good state of health.
Best Regards
-N
thanks a lot! that was useful!!!
Top
Post Reply

4 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic