Hi all, I wonder if any of you had a similar experience and/or can help me solve this. I had an ext3 root filesystem on top of a soft-raid RAID0. One of the hard drives started to issue media errors. I immediately stopped all work, booted with a rescue system, and was able to tar all files from the filesystem, except two ( cannot remember, sorry ) belonging to /var/lib/rpm. tar warned that it did include the file with padding zeros. My first thought was that it not a big deal, as I could rebuild the RPM database. When I booted into the system again I tried fixing the mentioned database but, I'm experiencing a lot of errors. I'll enumerate the attempts and errors: 1) rpmdb --rebuilddb Error: error: rpmdbNextIterator: skipping h# 881 blob size(21356): BAD, 8 + 16 * il(0) + dl(0) error: rpmdbNextIterator: skipping h# 913 blob size(13820): BAD, 8 + 16 * il(0) + dl(0) error: rpmdbNextIterator: skipping h# 945 blob size(67712): BAD, 8 + 16 * il(0) + dl(0) ... error: rpmdbNextIterator: skipping h# 5086 blob size(16084): BAD, 8 + 16 * il(0) + dl(0) error: rpmdbNextIterator: skipping h# 5118 blob size(28752): BAD, 8 + 16 * il(0) + dl(0) error: rpmdbNextIterator: skipping h# 5135 blob size(4740): BAD, 8 + 16 * il(0) + dl(0) Segmentation fault 2) db_verify fails on the files /var/lib/rpm/{Basenames,Filemd5s,Packages} 3) Tried ( on all databases ): mv Basename Basename.original; db_dump Basename.original | db_load Basename db_verify now succeeds . After this I issued rpmdb --rebuilddb: It also issued errors but, from rpmdb, the database is now OK. Problem: After all this operations the databases size has shrunk dramatically. eg: Basenames 21MB -> 2.6MB. Filemd5s: 21MB -> 432KB. Packages: 77MB -> 14MB. My first thought was "bummer - there goes my rpm database." My questions are: 1) Is the supposedly corrected database, OK? How can I verify it? 2) Is it possible to build an RPM database from scratch ? Thanks for you help, -- Rui Santos http://www.ruisantos.com/ Veni, vidi, Linux! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org