Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Debian3.1 with kernel 2.6.8-2-386 on a Dell Laptop. I am using it as a remotely accessed always-on server. It seems to run quite well, but sometimes after a few months, I get a "dma_timer_expiry: dma status == 0x20" error the file system (reiserFS) resets itself into readonly mode. I get all sorts of Input/Output errors and I can't even reboot the box.
Is this showing that the disk is bad? It seems not to be as it is working fine for months before getting the DMA errors. Is there anything I can configure to avoid these problems? Is there a kernel modification, or fstab/hdparm command, or other filesystem that I should use that will prevent the drive going into read-only mode?
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
That is a weird message to get. I think, probably, it has something to do with the laptop's power saving features, such as suspend to disk, which linux can't adequately handle.
if dma is the error, then perhaps you can just turn it off by 'hdparm -d0 /dev/hda'. but i'm warning you. your hd's problems might only get worse with this.
btw how did you access the syslog messages anyway?
It seems as though there was a bug submitted to debian as someone else was having problems with their drives "going to sleep". He was using ext3, which was also freaking out and going into read-only mode.
(won't let me post URLs yet as I am too new to this forum so check out bug 335538 in debian bugs if you are interested)
I'll have to double check the server the next time I have physical access (server in Canada, I'm in the UK) but I think that I have all the BIOS-related power saving turned off.
I'll check hdparm, but I think that the guy who raised the bug also tried this to no effect. It is funny how the server works for weeks and months fine without any problems, but then it gets this problem
I was thinking of changing filesystems the next time I have physical access to this laptop gateway/server, but he was using ext3 and he ended up ro as well!
konsolebox,
I am able to log into the gateway/server still via SSH. Most of the commands I cannot run as I get the following I/O errors:
For some reason, it allows me to su to root and cat syslog where I find these messages.
Any way to avoid these problems? In the bug report he says that his drives "go to sleep" and then they can only be restarted with a hard reset (power cycle in my case).
I guess I had better look at a more stable server/gatway solution.
Could be a heat problem with the powersupply as well as something powering down the drive and then the kernel freaking out when it can't access the drive.
I think that I will retire the laptop and be moving to a solid-state solution (NLSU2) and connecting an external HD for storage (if necessary).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.