LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2005, 09:42 AM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
ejecting cd rom


Hey guys, i want to force eject a cd rom but it's giving me this error
linux:/home/mark # eject /media/dvdrecorder/
umount: /media/dvdrecorder: device is busy
umount: /media/dvdrecorder: device is busy


does anyone know what to do?

Thanks
 
Old 08-23-2005, 09:43 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Do you have anything accessing the directory it's mounted to?
 
Old 08-23-2005, 09:44 AM   #3
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
I don't believe so, i only have my browser open
 
Old 08-23-2005, 09:46 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by minm
I don't believe so, i only have my browser open
No other terminals with you sitting in the directory, etc?

What is the output of mount? Are any other processes using the cd/dvd rom?
 
Old 08-23-2005, 09:48 AM   #5
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
nope, i made sure the terminal closed that was accessing the directory, and now it just gives one message that the device is busy.. when i input mount, i get this:
mark@linux:~> mount
/dev/hda2 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda3 on /home type reiserfs (rw,acl,user_xattr)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)
/dev/hdd on /media/dvdrecorder type iso9660 (ro)
mark@linux:~>
 
Old 08-23-2005, 09:50 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Try:

umount /dev/hdd

In a terminal and closing all other open applications, including your browser.
 
Old 08-23-2005, 09:55 AM   #7
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
wierd, i did that command already as root and it gave me that error, but now it started to work.

Thanks!

for future reference, is there a command ( i believe it was grep?) that lets you see what applications is using what device?
 
Old 08-23-2005, 10:25 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by minm
wierd, i did that command already as root and it gave me that error, but now it started to work.

Thanks!

for future reference, is there a command ( i believe it was grep?) that lets you see what applications is using what device?
lsof can tell you what applications or users are using files, not sure about devices.
 
Old 08-23-2005, 10:56 AM   #9
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
also try as root "fuser -m /mnt/cdrom" it should display a number this is the pid or process id. type cmd "kill pid" . a last resort is just reboot.
 
Old 08-23-2005, 11:04 AM   #10
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
Thanks a lot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The cd-rom drive is not ejecting Gald3r Linux - Newbie 13 03-30-2006 11:50 PM
ejecting CD with kde lopette Linux - Hardware 0 09-12-2004 09:34 AM
Mandrake Linux 10, Ejecting the CD-ROM while running WineX bloodredbath Linux - Hardware 3 04-09-2004 02:49 PM
CD-ROM not ejecting xtree Linux - Software 3 02-20-2004 08:18 PM
cd ejecting in KDE vinthund Linux - Newbie 1 02-09-2004 09:03 PM


All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration