Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I am writing a multi-cd spanning installer for a particular software in Linux (Redhat 4 or greater / Suse )
My Program is in Java. A Shell Script is used to fork the java process. I found out that when the Installer tries to go to the next disc when prompted so, by the installer, the eject command or the umount command is not able to eject / unmount the CD which is already there in the drive.
The eject / umount reports that the device is busy.
Now I tried to find out the process which is accessing the CD-ROM device and the output of command
fuser -m /cdrom0
gives me the PID of the shell process which was used to launch this Java process.
Please note that the Java Process has a separate PID. Also please note as soon as the user launches the shell command for the installer, I copy the files to the temporary directory and then cd to the temporary dir location and then fork the java process from there.
How can i solve this problem ? How can i make the mount of the second and subsequent CD Drives work without this issue ?
Hi,
I am writing a multi-cd spanning installer for a particular software in Linux (Redhat 4 or greater / Suse )
The eject / umount reports that the device is busy.
Now I tried to find out the process which is accessing the CD-ROM device and the output of command
fuser -m /cdrom0
gives me the PID of the shell process which was used to launch this Java process.
Your program is using file(s) on the CDROM, which is mounted. Once that program is loaded, it needs to reference that file, so an attempted dismount will fail, since things are using some file(s) on the CD. You can:
- Copy whatever file(s) the installer uses to a temp directory on the hard drive first, then perform the install
- Have a shell script as part of your installer, that will copy all the CD's to a temp directory on the hard drive, then install from there.
- Do it from a single DVD, and skip CDROM's.
- Send your software out on 8GB thumb drives.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.