Skip to contentSkip to conversation

Error Code 255 and "Permission Denied"

DISCUSSION Daniel Christiansen 4 participants 4 messages May 6, 2002 – May 7, 2002

lore
Share & tools
lore
#0 lore raw

Everything seems to work by using the 3.x.1b version of reisfsck with --rebuild-tree. Thank you very much, Oleg, for taking the time to solve my problem.

I don't know anything about the "write cache enabled" issue below. Is this something I have to change with a jumper, a bios setting, or a software configuration?

Thanks again.

Quoted 1 line
Quoted 1 line

Other indications of a problem: I ran the dmesg program from /bin

and

Quoted 3 lines
Quoted 2 lines

got "Warning log replay starting on readonly filesystem" and lots of "i/o failure trying to find stat data" messages.

Your filesystem was corrupted by something. Do you have Windows on

that

Quoted 5 lines

box,
too?
I have windows on the first drive, which I rarely use, and a vfat windows partition on the second drive so that I could transfer files. I'm not sure, but I think my problems started after a power outage.

Hm. Do you have write cache enabled on your harddrive? That may explain your problems (and yes, most of drive manufacturers do enable write caching
by default).

#1 lore raw
Quoted 8 lines · Daniel Christiansen

Everything seems to work by using the 3.x.1b version of reisfsck with --rebuild-tree. Thank you very much, Oleg, for taking the time to solve my problem.

I don't know anything about the "write cache enabled" issue below. Is this something I have to change with a jumper, a bios setting, or a software configuration?

Huh! Maybe you can jumper this on your MB, too?! Or maybe also set it in your BIOS?

Use "hdparm -i /dev/drive-whatever" to get this information from your disk drive.
If your drive supports it, you 'll find a number in kB after "BuffSize=". If your jumpers/BIOS do support it with your current settings or your disks defaults do it, search for a "WriteCache=enabled". If your BIOS doesn't make it for you it, you can enable it by a "hdparm -W1 /dev/drive-whatever" and disable it with parameter "-W0" instead of "-W1". And, of course, have a look at the manpage -- this feature is marked "(DANGEROUS)" (just in case your hardware does not support it)! I have hdparm v4.6 on here since January but I just saw a v4.9 on
ftp://sunsite.unc.edu/pub/Linux/system/hardware and on
ftp://metalab.unc.edu/pub/Linux/system/hardware/ .

Quoted 17 lines

Thanks again.

Quoted 2 lines
Quoted 2 lines

Other indications of a problem: I ran the dmesg program from /bin

and

Quoted 9 lines
Quoted 3 lines

got "Warning log replay starting on readonly filesystem" and lots of "i/o failure trying to find stat data" messages.

Your filesystem was corrupted by something. Do you have Windows on that box, too?
I have windows on the first drive, which I rarely use, and a vfat windows partition on the second drive so that I could transfer files. I'm not sure, but I think my problems started after a power outage.

Quoted 5 lines

Hm. Do you have write cache enabled on your harddrive? That may explain your problems (and yes, most of drive manufacturers do enable write caching
by default).

Oleg, do you really think a dumb-crashing-Windows to be a reason?? What version do you run on your disks? I have a Win98 spread over the partitions of my 2 disks but the only things I get from a crashed=powered-off Win98 are many-many unusable files in Win98 -- not affecting my Linux system. When I have a complete-crash=power-off when there was a running VMware with Win98 inside (but it's a dual boot system with real partitions' access for VMware from Linux) I have 2-to-5 truncates-to-complete on restart/mount of my reiserfs / and the "usual" vfat problems later... like missing files, checks needed and so on)

Maybe it's the kernel <-reiserfs-sub-version-> version Daniel runs at the moment? Oleg?

Or is it somekind of connected to Chris Masons thread "2.4.19-pre7 / corruption on unwanted reboot"??? If Chris and Jens found bugs on IDE interaction with ReiserFS they should really put out a patch soon... ;-)

Chris M.? Is that related eventually? Just a doubt!

Best regards,

Manuel

#2 lore raw
Quoted 10 lines · Manuel Krause
Quoted 8 lines · Daniel Christiansen

Everything seems to work by using the 3.x.1b version of reisfsck with --rebuild-tree. Thank you very much, Oleg, for taking the time to solve my problem.

I don't know anything about the "write cache enabled" issue below. Is this something I have to change with a jumper, a bios setting, or a software configuration?

Most new IDE drives have this on by default. You can turn it off with hdparm -W 0, which will make you more able to withstand power failures.

Quoted 6 lines

Or is it somekind of connected to Chris Masons thread "2.4.19-pre7 / corruption on unwanted reboot"??? If Chris and Jens found bugs on IDE interaction with ReiserFS they should really put out a patch soon... ;-)

Chris M.? Is that related eventually? Just a doubt!

I haven't been able to reproduce problems after a crash with pre7, but Dirk is not often wrong when we reports about a bug. If anyone can reliably reproduce I'd be grateful.

-chris

#3 lore raw
In reply to Manuel Krause

Hello!

Quoted 5 lines · Manuel Krause
Quoted 4 lines

Hm. Do you have write cache enabled on your harddrive? That may explain your problems (and yes, most of drive manufacturers do enable write caching
by default).

Oleg, do you really think a dumb-crashing-Windows to be a reason?? What

Yes. Sometimes Windows gets partitioning in a wrong way and writes to incorrect places on HDD. (BTW, see this list archive for past month, there were told at least two stories on Windows corrupting innocent Linux filesystems, once on a read-only partition.)
Filesystems usually do not write garbage in metadata blocks by themselves.

Quoted 1 line

version do you run on your disks? I have a Win98 spread over the

Version of what? I do run reiserfs of a lot of different kinds, including testing my own patches which are very dangerous things sometimes ;)

Quoted 3 lines

partitions of my 2 disks but the only things I get from a crashed=powered-off Win98 are many-many unusable files in Win98 -- not affecting my Linux system.

Lucky you. There are people who are not that lucky.

Quoted 2 lines

Maybe it's the kernel <-reiserfs-sub-version-> version Daniel runs at the moment? Oleg?

The 2.4.18-6mdk? I think it should have standard reiserfs stuff as in vanilla 2.4.18.

Quoted 2 lines

Or is it somekind of connected to Chris Masons thread "2.4.19-pre7 / corruption on unwanted reboot"??? If Chris and Jens found bugs on IDE

I doubt that Mandrake people are that stupid to include not tested very much experimental code in their recommended kernels.

Quoted 1 line

interaction with ReiserFS they should really put out a patch soon... ;-)

Sure. But for now we only had one bug report, and 2.4.19-pre7 was around for quite a while already.
If you know for a way to reproduce on certain common IDE hardware, we are interested.

Bye,
Oleg