On 6/24/06, Mark Knecht <[EMAIL PROTECTED]> wrote:
That said, I seem to have file system problems on my external 1394 hard drives. I do not know if this is due to a recent move to 2.6.17-rt1, or bad maintenance on my part, or just bad luck. I've
Well, I've had various problems with external drives. I have 3 1394/USB2 combo drives that I use for backups. If I connect them via 1394, they will start to have problems at some point during my backups....sometimes several Gb will transfer fine, and then it will hiccup with various read/write failures. I *never* have a problem with these same drives connected via USB. In another event, I moved a 2.5" drive from a slightly damaged USB2 case to a new one. The new case started corrupting data written to it, without any warning or errors. Filesystem checks would always report no errors, but for example I could transfer kernel sources to the drive, but they would fail to extract from there. I eventually replaced the case, (same drive) and that cleared up all problems, but I had to restore the files from backups as they were actually corrupted on write (vs just not being able to read them correctly). So, what I really recommend you do for awhile is to do an md5sum of any files that you transfer to the drive before transferring them. And then periodically do a md5sum -c to verify the file contents. That is really the best way to make sure your drives are working right, and that your data hasn't been corrupted. And if they are combo drives, try the USB2 connection instead.
I wondered if there is really any value to a journaled file system? Did it protect me? I cannot tell.
With one exception, journaled filesystems are designed to protect themselves, not your data. That is, if a crash occurs in the middle of an operation, the filesystem meta-data will not be corrupted. It will know how large all files should be, which blocks are allocated to which files, whether any files should be deleted, and so on. It does not guarantee the actual file data however. But this 'guarantee' is useless if a hardware problem is corrupting the filesystem, which appears to be the problem here. The one exception is ext3 when mounted with the 'data=journal' option. But this makes the filesystem fairly slow, and still doesn't help with hardware problems.... -Richard -- gentoo-user@gentoo.org mailing list