Results 1 to 8 of 8

Thread: eject command error on FC6 (KDE)

  1. #1
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239

    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.
    This will be over soon, and then I can ...

  2. #2
    Member
    Join Date
    Jan 2007
    Location
    Adelaide, Australia
    Posts
    112

    Post Not ejecting cdrom...

    Have you tried using eject /dev/device_name to eject cd? eg. eject /dev/cdrom for first cdrom drive
    Hope this helps...

  3. #3
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239
    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'
    Then did this:
    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]#
    I don't know why this is happening, because on the Mndrake distro, it has no problem.
    This will be over soon, and then I can ...

  4. #4
    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

  5. #5
    Member
    Join Date
    Jan 2007
    Location
    Adelaide, Australia
    Posts
    112

    Post RE: eject command error on FC6 (KDE)

    Omid,
    The thing that has me slightly confused about all this is the following:

    [root@localhost omid]# eject /dev/hdc
    umount: /media/FC-6\040i386\040DVD: not found
    eject: unmount of `/media/FC-6\040i386\040DVD' failed
    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?

  6. #6
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239
    Quote Originally Posted by mechdave View Post
    Can you post the directories present in the /media directory with the cdrom mounted?
    I will post it soon.
    Quote Originally Posted by mechdave View Post
    P.S. How did your presentation go?
    It was really great, didn't imagine that good !!!!
    This will be over soon, and then I can ...

  7. #7
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239
    Quote Originally Posted by mechdave View Post
    Can you post the directories present in the /media directory with the cdrom mounted?
    Code:
    [root@localhost omid]# cd /media/
    [root@localhost media]# ls -a
    FC-6 i386 DVD  .hal-mtab  .hal-mtab-lock
    [root@localhost media]#
    This is the /media directory when the FC6 DVD is mounted.
    This will be over soon, and then I can ...

  8. #8
    Member
    Join Date
    Jan 2007
    Location
    Adelaide, Australia
    Posts
    112

    Post 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>
    Last edited by mechdave; 04-20-2007 at 10:00 AM. Reason: Idea failure!

Similar Threads

  1. wget command Error (HTTP 404: Not Found)
    By bsoo in forum Redhat / Fedora
    Replies: 3
    Last Post: 12-21-2011, 08:45 AM
  2. Error executing make command for xmlrpc-c 1.06.32 tarball version
    By sabkuchindia in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 04-16-2009, 06:38 AM
  3. How and where to use the cat command
    By tech291083 in forum Redhat / Fedora
    Replies: 3
    Last Post: 05-15-2007, 09:58 AM
  4. Internal Server Error - ASP error
    By Jason Lu in forum Windows - General Topics
    Replies: 2
    Last Post: 02-18-2005, 09:45 AM
  5. Help with a command?
    By Rastar in forum Linux - General Topics
    Replies: 4
    Last Post: 05-11-2002, 12:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •