HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free and registered users see less advertising! If you just want to browse through the existing questions, just select the forum that you want to visit from the selection below. Otherwise, click here to register!. We highly recommend that you print a copy of our Guide for New Members. Enjoy!

eject command error on FC6 (KDE)

Hi,
When I insert a CD/DVD in the CD/DVD drive on my PC running FC6 and using KDE, sometimes when I try to eject the CD/DVD from the CLI I get error messages.
For example here is what happened when I tried to eject a CD labeled 'ATI DRIVER' :

Code:

[root@localhost omid]# eject /media/ATI\ DRIVER/
eject: tried to use '/media/ATI DRIVER' as device name but it is no block device
eject: unable to find or open device for: '/media/ATI DRIVER'
[root@localhost omid]#

And to eject the CD/DVD I have to do one of these:
1- Reboot the system
2- Start nautilus from the CLI and navigate to system folder, right click on the CD/DVD drive and eject.
Using any of these solutions works.
Is this a KDE issue or my system issue?
I have one LG CD Writer and One Sony DVD writer.
Thanks.

HI, sorry for taking a long time to reply. I did not have time to try that, because of my presentation at university on PHP.
I tried that, but it did not work. When I tried to eject my FC6 DVD I got this:

Code:

[root@localhost omid]# eject /media/FC-6\ i386\ DVD/
eject: tried to use `/media/FC-6 i386 DVD' as device name but it is no block device
eject: unable to find or open device for: `/media/FC-6 i386 DVD'

Something about your /media folder doesn't look right. In my experience when FC6 auto mounts a cd it creates a folder automatically in /media (in this case it probably is FC-6), and the backslash character is used to fill whitespace in filenames and directory names with white space, so with that in mind is there a folder by the name of "FC-6 040i386 040DVD" present in the media folder while this cdrom is mounted?

Can you post the directories present in the /media directory with the cdrom mounted?
At the moment I am thinking you may be trying to eject the cd called FC-6 040i386 040DVD when there is no cdrom mounted on the file system by that name, it is possibly mounted as just FC-6 (just a guess at the moment).

This one is an interesting one...
cheers,
Mechdave
P.S. How did your presentation go?

RE: eject command error on FC6 (KDE)

Omid,
I have worked out what the 040 is in the umountfailure message! It is octal for "space" so therefore what FC6 is doing is it is taking the string associated with /dev/hdc and converting the space to octal to then try to un mount your cdrom. try "umount /media/FC-6\i386\DVD" and see what happens. Fingers crossed

<edit>
Hmmm upon experimentation with my own system this will not work!
A work around is:
[root@localhost omid]# umount "/media/FC-6 i386 DVD"
[root@localhost omid]# eject /dev/hdc
I am still not sure why the space is being turned into a octal 040 unless KDE is doing something funny with it (doubtful if you are using a terminal, a way to tell for sure would be Ctrl+Alt+F1 then login as root and then try eject /dev/hdc)
</edit>