Saturday, June 25, 2005

Eject command is not working, message : 'Unable to open /dev/hdd'

This is caused due to permission set to your /dev/hdd. Give necessary permission to your /dev/hdd and it will work.

bash-3.00$ eject /dev/hdd
eject: unable to open `/dev/hdd'

bash-3.00$ ls -l /dev/hdd
brw-rw---- 1 root disk 22, 64 2002-06-09 23:27 /dev/hdd

// you have to provide a permission to read+write to all. To do so, log in as root

bash-3.00$ su
Password:

bash-3.00# chmod a+rw /dev/hdd

//you have done the necessary change, now check that, whether it is ok or not ...

bash-3.00# ls -l /dev/hdd
brw-rw-rw- 1 root disk 22, 64 2002-06-09 23:27 /dev/hdd

//now give your eject command again
bash-3.00# eject /dev/hdd

It is not working? So, have fun...

0 Comments:

Post a Comment

<< Home