Technowine

The Search Ends Here

Error message : device or resource busy

Posted by admin On June - 24 - 2009

dorb

You may have encountered the error message:

Cannot open /dev/hda9 : device or resource busy

in linux many times..where /dev/hda9 is one of your partitions of your hard drive /dev/hda..and 9 is the partition number.

This can happen due to one of the following reasons:-

1.The device could be mounted somewhere.To fix this

Check /etc/fstab file.

#cat /etc/fstab

56

We can see that the last line contains /dev/hda9 mounted on /quota folder.

Comment out this line

Open /etc/fstab file with your favourite editor..we will use vi editor here.

#vi /etc/fstab

Go in insert mode by pressing ‘i’ and comment out the line.

111

Move out of the editor with [esc] and then :wq

Then,

#umount /dev/hda9

#mount –a

Now check with,

#mount

You will not see /dev/hda9 mounted.

2.Another reason may be that the device you are trying to access (or use) is supposedly busy (in use) or that a resource it needs (such as an IRQ) is supposedly being used by another device and can’t be shared. This message is easy to understand if it only means that the device is busy (in use). But it sometimes means that a needed resource is already in use (busy). What makes it even more confusing is that in some cases neither the device nor the resources that it needs are actually “busy”.

To read more on this.Read here

Leave a Reply

Sponsors

About Me

Hello everyone, My name is Jaskiran Singh and I am currently pursuing B. Tech final year from Maharaja Agrasen Institute of technology.I am currently RHCT,RHCE,RHCSS certified.

Twitter

    Photos

    Activate the Flickrss plugin to see the image thumbnails!