Wolly schrieb:
ERRORS: ======= error 0x40 uncorrectable error LBAsect=9 sector=0 end_request: I/O error dev 03:00 (hda) sector unable to read partition table
Dear Oliver,
unless I am terribly wrong, you have a physical problem with your hd. You get an I/O error which means that the hd could not read the sector containing the partition table. I can imagine two reasons: 1) you changed the BIOS settings for LBA access and the like [in this case: undo the changes and re-try] 2) a block on your hd went bad after the last boot. [in this case: prepare yourself for a lot of work...] IMHO, lilo has nothing to do with that.
You could try & run badblocks on /dev/hda from a rescue system to check for bad blocks (this will NOT change anything on your hd).
badblocks -b512 -o /test /dev/hda 1000 gave me: 0 1 130 131 cannot access my manpages at the moment (as you know...hmmm) so what does that tell me?
If you know the byte offset of your partitions on hda, you could try and copy the partitions to image files on another hd by issuing
dd if=/dev/hda of=imagefile skip=OFF bs=512 count=N OFF: partition offset in 512b blocks from beginning of hda This will skip the bad block at the beginning of the hd. N: size of partition in 512b blocks (a too big value does not do any harm here but a too small one is bad) [A quick test on my box showed that skip=63 for hda1 for my hd.]
how2 calculate that skip value?
Note that this will fail in case 1) your offset is larger than 2Gb (could use a shell script and a pipe or quickly patch dd sources to deal with that case.) 2) you have bad blocks on the partition
Now, if you did that correctly, you should be able to mount the image file via loopback device:
losetup /dev/loop0 imagefile mount /dev/loop0 /mnt -txyz # xyz is filesystem type: ext2, reiserfs... and get file files in /mnt/
So, the first thing you have to find is the small piece of paper where you noted down your partition table.... There could be other ways to get the start of a file system (e.g. finding the ext2 magic number). next is: i cannot find that damn piece of paper. i have now for 3
THIS IS THE SOLUTION!!!!!! I TRIED IT! I CAN ***ONLY*** VIA THIS WAY ACCESS THE DRIVE!!!! i just tried for a start dd if=/dev/hda of=/image skip=1024 bs=512 count=xxx and guess what? i have now been able to read the autoexec.bat of my there existing dos paartition. now, i plan to entirely evacuate all the data of the 4 partitions which still ARE there on hda. WHERE exactly does the data of the partition start on the drive? if i run using skip=63 with count=100 i get an i/o error and only 67 records copied. so it seems that a bit of the beginning of my valuable hda1 is damaged (test: 100-67=33*512 bytes lost ###IS THAT RIGHT?###) this question is about the SKIP= value which i shall enter. next, can you go into detail for the above "N" value (count=N) i tried with 63 but am unsure about it. hrs been searching my whole appartement. it is gone :-(((( i have yet a file on /dev/hda..... shit :-))) so what other ways are there?
-- -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<