Wednesday, February 23, 2005

Golf Thimb Injury Symtoms



Uf!
Last week I came across one of those problems that do hate the hardware.

Then the (long) story: Preliminary


As a good follower of Debian sid I have installed in my home. But I have no internet, so I update every couple of days copying the new packages on a ZIP disk, which led from the paste.
I have a rather old PC and a Duron 600MHz, PC-Chips board cheap. And I have now installed a kernel 2.6.1910-AC4, I installed for testing. 80Gb disk with Debian partition (root + home) of 20Gb on reiserfs, plus other partitions for large multimedia files.


Day 1 Well, as I said earlier, last week was copying from the local disk USB ZIP and USB became stuck. As my mouse is also USB Hub is the same, I had no mouse. AND ZIP light was on.
A 'dmesg' showed no major problems, so I decided to just turn off the file and see what happens. And nothing happened, was still on the light.
So I decided to disconnect the entire HUB. At that time, the whole PC was hit, the keyboard no longer worked. So I rebooted.

Now the problems started. The system does not did nothing. Grub said he could not load the second stage from the file system. And therefore, it was stuck. And it was already 21:30 ...

"I will seek a rescue disk." Oops, I find nothing very modern ... a bunch of records of Debian, but none bootable. Woody disks with kernel 2.4.18 was the newest I found.
After booting, the partition is not mounted, the center claimed. And in the CD there are tools to check reiserfs partitions (clever idea to install everything on a reiserfs partition.)

Finally, I remembered that old hard disk, I have still installed on the PC, I installed Fedora Core 2 for testing, time ago. Booting from the CD
woody, mount the Fedora partition, chroot grub-install and then made it possible to boot from that disk as secondary.
Fedora Once inside, look for programs reiserfs ... Not!

think a while ... Where do I get the reiserfsprogs? ... Fortunately, I had several CD's with Debian packages (the recorded time to time with updates for my PC). And I found one reiserfsprogs Debian package, which unzipped using the old method infallible + gunzip + tar ar .

finally had my full tool box. Now, proceed to execute 'reiserfsck' The partition dead.
Well, it looks great. "Error in the primary superblock" and the like (obviously not quite remember all the posts), but the investigation was carried out.

After a few minutes, the program concludes kindly errors found will be repaired only with the option "- Rebu-tree" , bone rebuilding the entire tree from scratch. And the documentation says to first make a backup of the partition before using this option. Difficult to make a backup of 20Gb if I can not even access the data inside.

Having no other option, apply Rebu-tree. And he began saying it would take 6000 seconds to finish, making sure 4 million blocks. Fortunately it took a lot less (like half an hour).
addition, to add some excitement to the affair, mistakenly killed the process before the end, so I had to start from scratch ...

complete reconstruction of the tree, he found reiserfsck states lost about 40 directories with many files inside ...
When mounting the partition (even from Fedora), I see that I have not really root directory is all on 'lost + Founds' . Now I know why grub was not his famous second stage. That's funny ...

Fortunately, identify directories more important, as 'usr' , 'var' and 'etc' in lost + Founds was fairly simple. And after a few minutes it seemed the root directory of the Linux root. course in 'Lost & Founds' many things were not identified.
I tried to do a chroot to the directory new town, but it was impossible. I learned that the dynamic linker ( 'ld.so' ) Debian is incompatible with the core Fedora Core 2 (problems with "excec shield" apparently). That makes it difficult to run grub.

After a few more reboots, I finally managed to boot into my system Debian. Now, to verify the signatures of the packages to see that things need to be reinstalled. It was about 100 (about 1500) packages with problems.

That was on day 1. Finally, almost two in the morning I finished (I'm good to stay stuck on the PC). Day 2


next day in the recorded two albums with hits all Debian packages that fit, from a list of what I had installed on my PC. So I thought it best to have a backup of what was installed.
When I got home, re-installed everything that had changes from the md5sum's saved.
And then I did a backup (always good) from my home, using 'give' , I find the perfect tool for backups on CDs. Quota on three discs.

But the backup problems arose: various files in my home had giant sizes of several gigabytes (they were files with holes, so a simple 'du' did not notice). I proceeded to delete several files, while others had
array simply by cutting the tail. Epilogue


before yesterday I again had problems. Some of the files giants, to unsubscribe, gave errors largely ignores.
Then on Monday, to boot my PC, said the partition had errors and was irreparable need a new "- Rebu-tree" . Fortunately there was nothing wrong after finishing (this time it found many files lost).
I hope that things improve, I'm thinking about changing the file system (XFS now prove me tinca), but that will take a while, so wait for a better time.

Oh, I forgot!. In the meantime, I recorded a rescue CD with all the necessary tools. I found an internet mini-cd called "RIP (rescue is possible), based on kernel 2.6.10 and with all the bells and whistles to the rescue. modify it by adding 'to' also changed the lynx and links, compressed documents to consume a bit less memory and added a script 'zless' .

RIP Grace is that it uses ramdisk only, does not need the CD in the drive to work, so it can be used to recover from a CD but has a single CD-ROM, or record CD's, etc.

0 comments:

Post a Comment