"This is a maxtor IDE disk too. I wonder if using the Maxtor utilities to identify badblocks would help? Would it identify those 3 bad blocks and then simply remove them? So if I ran the utility, would I come back into linux and see that the end of my harddrive is now at 23053272 instead of 23053275? And if so, would I have to use resize2fs, and could I even do that afterwards?"
If you use the Maxtor utility to do a low level format of the drive then it will make the bad blocks dissapear. Every new hard drive has some spare blocks beyond the end of the hard drive. When the low level format finds a bad block it reassigns that address to one of the spare blocks. Software, such as dd, never know that the blocks have been rearranged. Everything then works OK.
"Anyway, I use gtar in the first backup pass. In the second pass, I use "dd" to make a backup of the harddrive image itself just because I'd like to have an option of simply rewriting the image instead of having to use gtar."
dd is subject to all sorts of fluky errors that tar is not. Even after you get the current problem fixed you are more likely to run into future problems with dd than with tar. Most importantly you are more likely to run into restore problems with dd than with tar.
"I figure I could try to repartition my harddrive so that the partition ends at block 23053271 instead. Then I'd just have 4 blocks at the end of my harddrive that I don't touch. I could use resize2fs first to resize my ext2 filesystem before I do this."
That is a neat idea and I would be interested in knowing if it works. Also check to see if a restore will work after you do this.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites