Results 1 to 3 of 3

Thread: Killed process will not release CD mount??

  1. #1
    Join Date
    Nov 2007
    Location
    Parker, CO
    Beans
    359
    Distro
    Ubuntu 10.04 Lucid Lynx

    Killed process will not release CD mount??

    I am stumped on this one!

    I was trying to copy data from an old DVD to my drive using "cp" and "diff". A couple of times the diff was taking too long and I had to do something else so I canceled the action using "CTRL+Z".

    I am trying to eject the DVD now but get an error in gnome saying the device cannot be unmounted because it is busy. Checking "System Monitor" shows my diff commands as stopped, but still accessing the drives so I killed them; but the drive still will not eject.
    Code:
    $ sudo umount /media/cdrom0
    umount: /media/cdrom0: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
    [1]   Killed                  diff -r /media/cdrom0/ Videos/300/
    [2]   Killed                  man cp
    [5]-  Killed                  diff -yrs /media/cdrom0/ Videos/300/
    [6]+  Killed                  diff -yrs /media/cdrom0/ Videos/300/
    If a process is killed, how can it still be making the drive busy?
    -AR

    (P.S.: I know I could just restart gnome or force the unmount, but I am trying to understand what is going on and not use the crowbar solution. )
    Actors make their living playing pretend, so why do we listen to them about how we should live in the real world?

  2. #2
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Killed process will not release CD mount??

    Does this command show anything?
    Code:
    sudo fuser -cv /media/cdrom0/
    It should list all programs currently using the filesystem mounted on /media/cdrom0.

  3. #3
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Killed process will not release CD mount??

    See if this produces any output:

    Code:
    lsof | grep cdrom
    Also, make sure you don't have any terminals opened that are cd'd into /media/cdrom. That's a pretty common cause of not being able to eject.
    Don't try to make something "fast" until you are able to quantify "slow".

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
  •