All of lore.kernel.org
 help / color / mirror / Atom feed
* How to work around bad blocks?
@ 2003-03-11  5:15 Dirk Leber
  2003-03-10 20:50 ` Anders Widman
  2003-05-08 11:18 ` power loss -> corruption Mirar
  0 siblings, 2 replies; 30+ messages in thread
From: Dirk Leber @ 2003-03-11  5:15 UTC (permalink / raw)
  To: reiserfs-list

Hello List,
I am the unhappy owner of a "corrupt" ReiserFS. All the other partitions on 
the same disk work fine, just this one seems to have some bad blocks. HEre 
are some outputs:

> mount /dev/hda4 /mnt/data2/
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
       or too many mounted file systems

> reiserfsck --check
[no problem]

> reiserfsck --fix-fixable /dev/hda4
reiserfsck 3.6.2 (2002)
Will check consistency of the filesystem on /dev/hda4
Will fix what can be fixed w/o --rebuild-tree
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes):Yes
###########
reiserfsck --fix-fixable started at Mon Mar 10 20:50:03 2003
###########

bread: Cannot read a block # 7503872.


> badblocks -b 4096
[detects bad blocks 7503858 - 7503871]

Obviously the build-tree option also fails. The "How Reiser handles Bad 
blocks-FAQ" can only be considered a bad joke, since you need a degree in 
computer science AND a mountable filesystem for fooling the FS in that way. 

What I would like to do is, detecting the bad blocks, freeing them (accepting 
there content) rebuilding the tree (or not) and than mounting it while 
accepting that some files will be corrupt. 

What can I do? 

Dirk 


^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: power loss -> corruption
@ 2003-05-08 12:23 berthiaume_wayne
  2003-05-08 12:32 ` Mirar
  2003-05-08 12:34 ` Anders Widman
  0 siblings, 2 replies; 30+ messages in thread
From: berthiaume_wayne @ 2003-05-08 12:23 UTC (permalink / raw)
  To: mirar-yg, Dieter.Nuetzel; +Cc: reiserfs-list

	"data=journal" will also work. You'll need to use the data logging
patches that Chris Mason has put together. 

-----Original Message-----
From: Mirar [mailto:mirar-yg@mirar.org]
Sent: Thursday, May 08, 2003 8:07 AM
To: Dieter Nützel
Cc: reiserfs-list@namesys.com
Subject: Re: power loss -> corruption


> Maybe, if you have some more details.

How do I get the necessary details?

> data-logging patches and mount option "data=ordered" solved similar
> problems for me.

Which patches? I'll add "data=ordered" to see if it'll help.

/Mirar

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: power loss -> corruption
@ 2003-05-08 19:37 Fong Vang
  2003-05-08 19:52 ` Hans Reiser
  0 siblings, 1 reply; 30+ messages in thread
From: Fong Vang @ 2003-05-08 19:37 UTC (permalink / raw)
  To: 'Hans Reiser'; +Cc: reiserfs-list

Version 4 does sound impressive.  We rely heavily on ReiserFS so we are
keeping close watch of ReiserFS.  How long do you think it will remain in
Beta before the final release?

-----Original Message-----
From: Hans Reiser [mailto:reiser@namesys.com]
Sent: Thursday, May 08, 2003 12:29 PM
To: Mirar
Cc: Dieter Nützel; reiserfs-list@namesys.com
Subject: Re: power loss -> corruption


Mirar wrote:

>I think V4 sounds excellent, and I hope it will be incorporated in
>Linux 2.6/3.0. I assume there isn't any kernal patch for 2.4.20 around
>so I can play with it? I'm sorry if it has been mentioned on the list,
>I'm not up to date.
>
>/Mirar
>
>
>  
>
Please wait until July,  when we hope to have a beta-release.

-- 
Hans



This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm)
service.  For more information, visit us at www.zantaz.com. 
IMPORTANT: This electronic mail message is intended only for the use of the
individual or entity to which it is addressed and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law.  If the reader of this message is not the intended recipient, or the
employee or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have received
this communication in error, please notify the sender immediately by
telephone or directly reply to the original message(s) sent.  Thank you.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: power loss -> corruption
@ 2003-05-15 22:38 Anders Widman
  0 siblings, 0 replies; 30+ messages in thread
From: Anders Widman @ 2003-05-15 22:38 UTC (permalink / raw)
  To: reiserfs-list

> Am Donnerstag, 15. Mai 2003 10:40 schrieb Mirar:
>> > This _is_ very well known for me.
>> > Some KDE config files and my tcsh history file where broken without
>> > data-logging (data=journal/ordered).
>>
>> My .zsh-history just got nuked with data=ordered.
>>
>> The kernel couldn't agree with my HPT controller and stopped all (!)
>> IDE activities when I did a 'hdparm -y /dev/hd?' (all sleep). (Note,
>> the .zsh-history was not on that controller.)

Hm..  Are  you sure you are using the right command? "-Y" is SLEEP and
"-y"  is STANDBY mode. With stand by mode the drive spins up by itself
when  data  is  requested.  However when you use sleep mode it needs a
reset to wake up again (or if the driver can issue a soft reset).

Even  if  the  drive spins back up there can be transfer errors or DMA
problems that follows. IF you want a reliable configuration you should
not use power-save mode. It is not very well supported on all hardware
in Linux :(


> In short, DON'T DO THAT without "suspend kernel patches".
> *nix is NOT designed for "disk power management" in the first place.
> But it evolves...;-)

> HPT ("small" IDE/ATA "RAID") controllers are not that good (supported)
as they
> seems. Apart that they are "cheap".

>> Not in the same way as previously (just a block), though. It was
>> completely filled with binary data.

> Sounds like another problem (hardware, see above).

>> No other active files seems to have been affected, though.

> Good.

> -Dieter






--------
PGP public key: https://tnonline.net/secure/pgp_key.txt



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2003-05-15 22:38 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-11  5:15 How to work around bad blocks? Dirk Leber
2003-03-10 20:50 ` Anders Widman
2003-05-08 11:18 ` power loss -> corruption Mirar
2003-05-08 11:48   ` Dieter Nützel
2003-05-08 12:06     ` Mirar
2003-05-08 13:02       ` Dieter Nützel
2003-05-08 13:19         ` Mirar
2003-05-08 13:31           ` Dieter Nützel
2003-05-15  8:40             ` Mirar
2003-05-15 11:23               ` Dieter Nützel
2003-05-15 15:17                 ` Mirar
2003-05-08 18:58           ` Hans Reiser
2003-05-08 19:20             ` Mirar
2003-05-08 19:28               ` Hans Reiser
2003-05-08 19:31               ` Hans Reiser
2003-05-08 19:39                 ` Mirar
2003-05-08 12:02   ` Bill Rees
  -- strict thread matches above, loose matches on Subject: below --
2003-05-08 12:23 berthiaume_wayne
2003-05-08 12:32 ` Mirar
2003-05-08 12:38   ` Marc-Christian Petersen
2003-05-08 12:34 ` Anders Widman
2003-05-08 12:39   ` Marc-Christian Petersen
2003-05-08 13:01     ` Dieter Nützel
2003-05-08 13:24     ` Chris Mason
2003-05-08 13:36       ` Dieter Nützel
2003-05-08 13:40         ` Chris Mason
2003-05-08 12:39   ` Dieter Nützel
2003-05-08 19:37 Fong Vang
2003-05-08 19:52 ` Hans Reiser
2003-05-15 22:38 Anders Widman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.