Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-09-2004, 07:22 AM
|
#1
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
Help me to recover my rpmdb
My /var partition on SuSE 9.1 became full, and trying to free up some space, I decided to move the largest directories in it to an other partition, and symlink them to their original place:
mv /var/adm /fromvar/
ln -s /fromvar/adm /var/adm
mv /var/lib /fromvar/
ln -s /fromvar/lib /var/lib
I did not notice that there was something wrong, as the symlinks were in place.
Soon I started yast to install a new package. Here I was surprised that yast began to install packages that must have been on the system!
I killed yast, and I found that my rpmdb is almost empty; there are only those rpms in it which I installed after moving the /var/adm and /var/lib directories.
What happened to the rpm database and why? Is it not allowed to move /var/adm or /var/lib to an other location, and symlink it to the original place?
But, the most important question: is it possible to recover my original rpmdb?
(I suspect that my original rpmdb is there somewhere, as my /var/adm and /var/lib directories are not any smaller then they were before moving them.
However, "rpm --rebuilddb" finishes in 1s without seemingly doing anything; I suspect that it is because my system uses a completely new (and almost empty) rpmdb.
Last edited by J_Szucs; 09-09-2004 at 07:24 AM.
|
|
|
09-09-2004, 10:39 AM
|
#2
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Original Poster
Rep:
|
The above problem has been solved in the meantime: I could restore a previous state of the rpmdb from an automatic backup in the /var/adm/rpm/backup directory.
I also moved all files in /var to an other, larger partition. For the case of simplicity, I used the cp command for that after booting up in rescue mode from the installation CD. SuSE did a thorough hardware detection after the next startup, but otherwise everything seems to be OK.
|
|
|
All times are GMT -5. The time now is 06:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|