LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2005, 11:38 PM   #1
dunkel
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Rep: Reputation: 0
User eject/mount of next CD-ROM?


I need to develop a software installation from two CDs. MS Windows can do it. The installer started from the first CD can eject the CD from which it was started and it can mount the next CD.

But on Linux, the installer cannot eject the CD from which is was started, while it is running:

# eject
umount: /mnt/cdrom: device is busy
eject: unmount of `/dev/cdrom' failed

Any idea how to change the CD while the installer is running? ThanX

Last edited by dunkel; 12-23-2005 at 01:06 AM.
 
Old 12-23-2005, 03:53 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Have you tested why the device is busy (ie which program is accessing the cd-rom)?
Commands like "lsof" and "fuser" may help you.

Note also that, if the present working directory of the installer program is on the cdrom, then
the installer itself causes the "device is busy" error. To avoid this, and still remember where your
present working directory (PWD) was, try the following sequence:
cd / #change directory so device is no longer "busy" by the installer
eject #eject/unmount
mount #mount new cdrom (maybe automatically done when cd is inserted)
cd - #go back to the directory where you were before the "cd /"
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CD-ROM won't eject after unmounting exit3219 Linux - Hardware 6 07-13-2005 12:52 AM
cannot mount CD ROM on non-root user rsumbeling Linux - Security 4 12-04-2004 01:09 AM
can't mount CD ROM on non-root user rsumbeling Linux - Software 3 12-03-2004 01:13 PM
cd rom eject help kingroo Linux - Hardware 6 09-29-2004 11:25 AM
can't eject dvd rom boda Linux - General 4 08-31-2003 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:42 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
Open Source Consulting | Domain Registration