LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-03-2004, 04:45 AM   #1
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
ejecting cd's


Sometimes when unmounting or ejecting cd's I get device busy errors, only normally happens when looking inside a tar.gz file.

Other than not looking inside these's files is there a way to stop this.
 
Old 06-03-2004, 04:47 AM   #2
Chris H
Member
 
Registered: Aug 2003
Location: Farnborough, UK
Distribution: Zenwalk
Posts: 288

Rep: Reputation: 30
Linux uses a mounting system whereby if an app is using a cd then you won't be allowed to eject, remove or unmount that device. Tis common sense really, at least when compared to other systems which allow you to remove cds even when they're being used.

Basically, if you can't eject a cd then it's cos something or some process is accessing it.
 
Old 06-03-2004, 05:12 AM   #3
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
you can use lsof to find who is accessing the /mnt/cdrom and then take the appropriate action (for ex if a shell is using the same then just change the directory, if nautilius is the only guy using it then click on the cdrom icon on the desktop and eject) etc
 
Old 06-03-2004, 05:20 AM   #4
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Original Poster
Rep: Reputation: 30
Nothing is using the cdrom.

Its something todo with looking inside tar.gz files, even when konqerour is closed it still wont eject.

I've tried logging off and logiing back in.
 
Old 06-03-2004, 06:26 AM   #5
Chris H
Member
 
Registered: Aug 2003
Location: Farnborough, UK
Distribution: Zenwalk
Posts: 288

Rep: Reputation: 30
Could be that if you've got an app running then rebooting may only cause it to restart when you login again.

Try what Zeropash recommends. Else do a ps aux and see what processes you have running that could be causing the problem and then kill it/them.
 
Old 06-03-2004, 10:07 AM   #6
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
are your tar.gz files on the cdrom? and you have opened those in file-roller or some such application?
 
Old 06-04-2004, 03:40 AM   #7
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by zeropash
are your tar.gz files on the cdrom? and you have opened those in file-roller or some such application?
tar.gz files are on the cdrom, opened them with konquerour.
 
Old 06-04-2004, 06:13 AM   #8
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
so your konquerer is accessing those files from the CD. unless it stops that you cannot unmount tbe CD and hence eject it.
make sure those tar.gz files are closed and then try to do a eject/umount
to see who is accessing the files do this.
/usr/sbin/lsof | grep cdrom
if there are any process listed either close them or if you have trouble close them.
 
Old 06-04-2004, 08:47 AM   #9
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Rep: Reputation: 15
follow the guys instructions above as it is correct. i would just like to simplify a few things for the newbie. First thing you do after inserting a cdrom is 'mount' many distors like redhat, fedora, etc do this for you (automount). This mounts the disk as a file, so 'cd' to the location usually /mnt/cdrom or /cdrom. Copy info or whatever you were going to do....Then change out of the dir /mnt/cdrom or /cdrom so it is not in use typing just 'cd' is an easy way to do this. then you type 'eject' at a terminal. Note: some distros dont have 'eject' so 'umount /dev/cdrom' first and then press the eject button on the cdrom. Also some distros require you to have root access to mount/umount devices.

hope that clears things up.
 
Old 06-07-2004, 04:33 AM   #10
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by name_in_use450
.. Also some distros require you to have root access to mount/umount devices.

I've already changed fstab to allow users to mount cdroms.
 
  


Reply



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
Kaffeine and playing cd's (can it look for cd's on both drives at the same time?) RoaCh Of DisCor Linux - Software 3 03-16-2006 12:38 AM
ejecting cd rom minm Linux - Newbie 9 08-23-2005 11:04 AM
ejecting CD with kde lopette Linux - Hardware 0 09-12-2004 09:34 AM
CD-rw problems Ejecting jklaroe Slackware 4 06-20-2004 03:22 PM
Trouble playing commercial audio cd's. MP3 cd's ok. barryww1956 Linux - General 7 12-17-2001 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 AM.

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
Open Source Consulting | Domain Registration