RE: Ever solve eject problem?

From: Steven Jones (Steven.Jones_at_vuw.ac.nz)
Date: 07/29/04

  • Next message: Steven Jones: "RE: [OT] Hard Drive shutdown"
    Date: Fri, 30 Jul 2004 08:30:50 +1200
    To: "Eric M. Monsler" <emonsler@radixtek.com>, <jerryvb@toast.net>, <debian-user@lists.debian.org>
    
    

    try fuser, it should show if someone or something is in the directory in question.

    so man fuser

    eg

    [root@vinson etc]# fuser /mnt/ (gives no return)
    [root@vinson etc]# cd /mnt/
    [root@vinson mnt]# fuser /mnt/
    /mnt/: 16337c
    [root@vinson mnt]# ps aux |grep 16337
    root 16337 0.0 0.0 4268 1372 pts/0 S 08:19 0:00 -bash
    root 16408 0.0 0.0 3676 676 pts/0 S 08:25 0:00 grep 16337

    So this shows "me" as root in a bash shell in /mnt so /mnt cannot be ejected/unmounted while "I" am in there. This should work for where ever the cd is mounted.

    regards

    S

    -----Original Message-----
    From: Eric M. Monsler [mailto:emonsler@radixtek.com]
    Sent: Friday, 30 July 2004 5:34 a.m.
    To: jerryvb@toast.net; debian-user@lists.debian.org
    Subject: Ever solve eject problem?

    Jerry, you reported:

    > I get the same problem even as root:

    > debian:/home/jerry# mount /dev/hdc
    > debian:/home/jerry# umount /dev/hdc
    > debian:/home/jerry# eject /dev/hdc
    > eject: unable to eject, last error: Invalid argument

    ...two weeks ago in a thread on ejecting a CD problem.

    Did you ever find a solution?

    I've got the exact same problem on my recently Debianed box.

    I didn't see any solution on the list, although other threads discussed
    when only root can eject. I can't eject, even as root:

    habanero:/etc# eject /dev/hdc
    eject: unable to eject, last error: Invalid argument
    habanero:/etc# eject /media/cdrom
    eject: unable to eject, last error: Invalid argument
    habanero:/etc#

    My fstab is:

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda6 none swap sw 0 0
    /dev/hda3 / ext3 defaults,errors=remount-ro 0 1
    /dev/hda5 /home ext3 defaults 0 2
    /dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
    /dev/fd0 /media/floppy auto rw,user,noauto 0 0
    endor:/export/home6/emonsler /home/emonsler/nethome nfs defaults,_netdev

    Finally, uname -s reports:

    Linux habanero 2.4.26-1-686-smp #1 SMP Fri Jul 9 22:32:32 JST 2004 i686
    GNU/Linux

    Thanks,

    Eric

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Steven Jones: "RE: [OT] Hard Drive shutdown"

    Relevant Pages

    • debian
      ... I can't use eject to eject my cdrom. ... someone said fuser shows the cdrom device is ...
      (Debian-User)
    • RE: Cant eject CD
      ... do a fuser on the cdrive look for the process that "holds" it and stop/kill it. ... aka thing ... Subject: Can't eject CD ...
      (Debian-User)
    • Re: cdrecord problem
      ... Try to eject and ... the CD after your burn is done. ... mount /media/cdrecorder/ ... /dev/hdb: Invalid argument ...
      (Fedora)
    • Ever solve eject problem?
      ... I can't eject, even as root: ... eject: unable to eject, last error: Invalid argument ... Finally, uname -s reports: ...
      (Debian-User)
    • RH9 does not eject DVD-ROM
      ... I cannot get my newly installed Samsung DVD-ROM to eject: ... eject: unable to eject, last error: Invalid argument ... trying to eject `/dev/cdrom1' using CD-ROM eject command ... trying to eject `/dev/cdrom1' using tape offline command ...
      (comp.os.linux.setup)