Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Peripherals / Hardware > Device or resource busy

Forgot Password?
 Peripherals / Hardware   Is your hardware supported? Having trouble getting some hardware working? Post here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-22-2007   #1 (permalink)
Just Joined!
 
Join Date: Oct 2006
Posts: 12
Question Device or resource busy

Hello everyone!

My info: Ubuntu feisty (AMD64), kernel 2.6.20-16-generic, hdparm 6.9-1ubuntu2

Long time ago, my linux used to hang (or freeze) randomly when entering to X.
I figured out that my HDD tunning settings were causing this problem.
Now, I run it manually, but I still have random hangs (but less than before).
This is the script I run:

Code:
hdparm -d1 -X udma2 -u1 -k1 -c1 /dev/hda
hdparm -d1 -X udma2 -u1 -k1 -c1 /dev/hdb
This settings I copied once from a forum and worked with me very good (besides the hangs).

The error message that I receive sometimes is:
HDIO_SET_UNMASKINTK failed Device or resource busy
...
HDIO_SET_KEEPSETTINGS failed Device or resource busy


And after that, I'm not able to run any command. It is like when the computer freeze but with the difference that I'm able to move windows inside my screen (of course, I can move my mouse pointer) and even to shutdown X and I can still write anything in the console, but when I execute a command (any command) it do nothing and I can't unblock it. So I have to had-reset my box.

I don't know if it is related, but some time ago, my /dev/hdb showed sometimes "SMART" errors, when turning on the computer and I run once "smartctl" and displayed that in less than 24hrs my HDD was going to fail badly (more than 2 months have passed now). I cleaned my computer from inside and I change the HDD position from horizontal to vertical and after a while I didn't receive more "SMART" errors and if I run "smartctl" it displays that everything is fine. I think it may be related to this, but my HDD seems to work without any problem without running my hdparm script (unfortunately, without it, everything slows down).

Any Ideas? anyone know why I'm getting those errors? I wonder if my settings are correct...

Thank you for your time in advance.
yasukaname is offline  


Reply With Quote
Old 08-25-2007   #2 (permalink)
Linux Enthusiast
 
rcgreen's Avatar
 
Join Date: May 2006
Location: the hills
Posts: 716
Send a message via Yahoo to rcgreen
How old is the drive? SMART errors are warnings that come from
the drive itself. They are considered to be fairly good early warnings
of drive failure. Replace it before it fails totally.
rcgreen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:52 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2