Re: [reiserfs-list] I've screwed something up
On Sun, Sep 16, 2001 at 04:36:43AM -0400, Elliott Potter wrote: > dd if=/dev/sda4 of=/dev/sdb1 conv=noerror bs=4M use bs=512 conv=noerror,sync Without "sync" target blocks may have different offsets (after error block) and if you use bs=4M you may loose much more data. Really, all reiserfs errors you've noted are maybe just caused by your funny "dd" arguments. -- ciao - Stefan
Re: [reiserfs-list] I've screwed something up
On Fri, 14 Sep 2001, Stefan Fleiter wrote: > Hi Elliott! > > > I did this: > > > > zarquon:~# badblocks -s -v -b 4096 /dev/sda4 > > Checking for bad blocks in read-only mode > > >From block 0 to 2192872 > > Checking for bad blocks (read-only test): 8210 8210/ 2192872 > > done > > Pass completed, 1 bad blocks found. > > > > So looks like a bad block...now I have something else to try. > > I recommend to buy a new harddisk if your data is valuable to you. > If you want to keep the disk the reiser team will help you to cope with the > bad block, there should be a patch for this IIRC. Well the first step is getting important data off of the drive. This will teach me to not have current backups! So far I got another drive, wiped it clean except for a single partition that is exactly the same size as the damaged one, and then did dd if=/dev/sda4 of=/dev/sdb1 conv=noerror bs=4M and moved everything over (/dev/sda4 is the bad partition, /dev/sdb1 is the good one). Running reiserfsck with no options told me that there were several more screenfuls of errors than I could read; running reiserfsck with the --rebuild-tree option appears to have found everything, but dumped it all in lost+found, which is only marginally useful. I'm re-copying the data, and will try reiserfsck with the --fix-fixable option, to see what happens there. I'm encouraged that I was able to get the data into lost+found; hopefully this time I'll get it in a useable format. Next step is to see what I can do with my 1-year-old IBM hard drive which is having bad blocks. Arrg! Thanks all -- Elliott
Re: [reiserfs-list] I've screwed something up
Hi Elliott! > I did this: > > zarquon:~# badblocks -s -v -b 4096 /dev/sda4 > Checking for bad blocks in read-only mode > >From block 0 to 2192872 > Checking for bad blocks (read-only test): 8210 8210/ 2192872 > done > Pass completed, 1 bad blocks found. > > So looks like a bad block...now I have something else to try. I recommend to buy a new harddisk if your data is valuable to you. If you want to keep the disk the reiser team will help you to cope with the bad block, there should be a patch for this IIRC. Greetings, Stefan
Re: [reiserfs-list] I've screwed something up
On Thu, 13 Sep 2001, Stefan Fleiter wrote: > Hi Elliott! > > On Wed, 12 Sep 2001 Elliott Potter wrote: > > > When I try to do a reiserfsck on the partition, I get a > > segmentation fault, and this shows up in stdout: > > > > scsi0: ERROR on channel 0, id 0, lun 0, CDB: Read (10) 00 01 18 35 43 00 > > 00 78 00 > > Info fld=0x1183548, Current sd08:04: sense key Medium Error > > Additional sense indicates Unrecovered read error > > I/O error: dev 08:04, sector 65684 > > sense key Medium Error sounds like a hardware failure. > Sector 65684 seems to be damaged. > > Use the badblocks program to verify this, but read the man page first. I did this: zarquon:~# badblocks -s -v -b 4096 /dev/sda4 Checking for bad blocks in read-only mode >From block 0 to 2192872 Checking for bad blocks (read-only test): 8210 8210/ 2192872 done Pass completed, 1 bad blocks found. So looks like a bad block...now I have something else to try. Thanks for the tip, -- Elliott