Forums

Skip to content

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

Deleted part of /var, what to do?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Nordmats
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 6:54 pm
Location: Finland
Contact:
Contact Nordmats
Website

Deleted part of /var, what to do?

  • Quote

Post by Nordmats » Mon Nov 07, 2005 6:33 pm

Hi

I managed to delete something in /var, dont know what but I can't restart anything in /etc/init.d/. When I try I get /var/lib/softlevel not a file or directory. I have tried to reemerge some pakages to see if it would fix it but no. Can anyone please help me???
FSC Amilo A1630
AMD DTR 64 3400+
60GB 7200
512 MB 333MHz
DVD+rw
Radeon 9700
Top
monkeyboy
n00b
n00b
Posts: 29
Joined: Thu Apr 18, 2002 2:20 am
Location: Denver

  • Quote

Post by monkeyboy » Mon Nov 07, 2005 7:21 pm

If you deleted unknown things in /var you could end up with all kinds of weird problems. You could try re-emerging everything on your system (assuming things are super b0rked) to make sure nothing important is gone. If that doesn't work, I BELIVE you can boot to the live cd, decompress a stage1 tarball, and re-bootstrap your system to fix gcc, glibc, and such. If you don't know what's missing it will be extremely hard to put just that stuff back. You can speed up the process if you use the buildpkg use flag option, emerge -K will install the binary packages you have already compiled.
Top
Nordmats
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 6:54 pm
Location: Finland
Contact:
Contact Nordmats
Website

  • Quote

Post by Nordmats » Mon Nov 07, 2005 7:25 pm

I added default to the softlevel file and rc began working so-so. But When i try to do emerge -ep world only the pakages I emerged after show up.
FSC Amilo A1630
AMD DTR 64 3400+
60GB 7200
512 MB 333MHz
DVD+rw
Radeon 9700
Top
linuxtuxhellsinki
l33t
l33t
User avatar
Posts: 700
Joined: Mon Nov 15, 2004 1:56 pm
Location: Hellsinki

  • Quote

Post by linuxtuxhellsinki » Mon Nov 07, 2005 10:44 pm

I don't have /var/lib/softlevel -dir at all also :?
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Top
Malcolm
n00b
n00b
User avatar
Posts: 59
Joined: Thu Jul 11, 2002 3:58 am
Location: Ontario, Canada
Contact:
Contact Malcolm
Website

  • Quote

Post by Malcolm » Tue Nov 08, 2005 5:36 am

I, interestingly enough, managed to delete my whole /var directory. Currently I'm doing a full emerge sync && emerge -e system && emerge -e world; I'll post the results in the morning. I'll either be happy as hell or be crying like a 2-year-old with his/her candy stolen ;)

Wish me luck :P
Top
Malcolm
n00b
n00b
User avatar
Posts: 59
Joined: Thu Jul 11, 2002 3:58 am
Location: Ontario, Canada
Contact:
Contact Malcolm
Website

  • Quote

Post by Malcolm » Tue Nov 08, 2005 12:01 pm

Well things were nicely broken. The core system stuff works fine; I now have to go and figure out which packages I had installed before as my world file is gone. All in all this has been an interesting experience for me.

Main notes for anyone else who borked the system like I have:
re-emerge system
re-emerge any other packages you having installed that aren't in the base system
make sure sshd works ;)
kill all your service processes and restart them
be brave, try a restart


That is all :D
Top
nevynxxx
Veteran
Veteran
Posts: 1123
Joined: Wed Nov 12, 2003 1:34 pm
Location: Manchester - UK

  • Quote

Post by nevynxxx » Tue Nov 08, 2005 1:47 pm

Why does noone ever think of the obvious?

Get a stage <whatever> tarball, and extract /var from it.

That will get you what you *need* back.

Make sure you don't overwrite anything in /var that you have not deleted though, it is more uptodate.

How you you expect to be able to emerge world if you have deleted /var/lib/portage/world?

Don't bother emerging system or world, just re-remerge packages that complain thereafter. /var is for machine generated code, and most sanly written packages just create what they need if it is not already there.

your screwed if you deleted /var/mysql or /var/www etc.
My Public Key

Wanted: Instructor in the art of Bowyery
Top
Nordmats
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 6:54 pm
Location: Finland
Contact:
Contact Nordmats
Website

  • Quote

Post by Nordmats » Tue Nov 08, 2005 5:23 pm

Figured I'd do that but that won't bring back my world file. Tried to manually add pakages into it but no. Anyone know how to iject pakages into the world file?
FSC Amilo A1630
AMD DTR 64 3400+
60GB 7200
512 MB 333MHz
DVD+rw
Radeon 9700
Top
Malcolm
n00b
n00b
User avatar
Posts: 59
Joined: Thu Jul 11, 2002 3:58 am
Location: Ontario, Canada
Contact:
Contact Malcolm
Website

  • Quote

Post by Malcolm » Wed Nov 09, 2005 4:45 am

nevynxxx wrote:Why does noone ever think of the obvious?

Get a stage <whatever> tarball, and extract /var from it.

That will get you what you *need* back.

Make sure you don't overwrite anything in /var that you have not deleted though, it is more uptodate.

How you you expect to be able to emerge world if you have deleted /var/lib/portage/world?

Don't bother emerging system or world, just re-remerge packages that complain thereafter. /var is for machine generated code, and most sanly written packages just create what they need if it is not already there.

your screwed if you deleted /var/mysql or /var/www etc.
When you re-sync portage and then 'emerge system -e' that rebuilt the system for full usablilty. Then I untared my backed up log files and took a look at what ebuilds I had emerged and re-emerged the list (I love teh regex).

Only things I couldn't get back were my MySQL dbs and my web pages (thankfully there were only a few small things).

:)
Top
nevynxxx
Veteran
Veteran
Posts: 1123
Joined: Wed Nov 12, 2003 1:34 pm
Location: Manchester - UK

  • Quote

Post by nevynxxx » Wed Nov 09, 2005 8:55 am

Malcolm wrote: When you re-sync portage and then 'emerge system -e' that rebuilt the system for full usablilty. Then I untared my backed up log files and took a look at what ebuilds I had emerged and re-emerged the list (I love teh regex).

Only things I couldn't get back were my MySQL dbs and my web pages (thankfully there were only a few small things).

:)
I guess I'd just rather not have t use the -e flag anytime ever. Then again my gentoo box is a K6-II 450, so even emerge -e system takes a wee while!
My Public Key

Wanted: Instructor in the art of Bowyery
Top
Post Reply

10 posts • Page 1 of 1

Return to “Other Things 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