Have you tried using eject /dev/device_name to eject cd? eg. eject /dev/cdrom for first cdrom drive
Hope this helps...
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' :
And to eject the CD/DVD I have to do one of these: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]#
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.![]()
This will be over soon, and then I can ...
Have you tried using eject /dev/device_name to eject cd? eg. eject /dev/cdrom for first cdrom drive
Hope this helps...
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:
Then did 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'
I don't know why this is happening, because on the Mndrake distro, it has no problem.Code:[root@localhost omid]# mount /dev/hdb4 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hdb3 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/hdb1 on /windows/c type vfat (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/hdc on /media/FC-6 i386 DVD type iso9660 (ro,noexec,nosuid,nodev,noatime,uid=500,utf8) [root@localhost omid]# eject /dev/hdc umount: /media/FC-6\040i386\040DVD: not found eject: unmount of `/media/FC-6\040i386\040DVD' failed [root@localhost omid]# eject /dev/cdrom-hdc umount: /media/FC-6\040i386\040DVD: not found eject: unmount of `/media/FC-6\040i386\040DVD' failed [root@localhost omid]#
This will be over soon, and then I can ...
ps auxf
find out PID
kill -9 $(pidof <program_name>)
(rude, I know). Then you'll be able to do:
umount /cdrom
or.
use fuser to kill process
fuser -k < drectory >
umount /dev/hdc
Omid,
The thing that has me slightly confused about all this is the following:
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?[root@localhost omid]# eject /dev/hdc
umount: /media/FC-6\040i386\040DVD: not found
eject: unmount of `/media/FC-6\040i386\040DVD' failed
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?
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>
Last edited by mechdave; 04-20-2007 at 10:00 AM. Reason: Idea failure!
Bookmarks