Re: [ilugd] Bash Shell Scripting...
Hey! > Is it coz of the fact that the device is still busy > doing some work > (just a guess...). If so, how do i find out that > which all devices are > using my cdrom/floppy??? Well, you just might do a " ps aux | grep /dev/cdrom " to see if any processes in the background are hogging your drive. If so, just kill them using "kill -9 ". Make sure the process isn't one within X, otherwise you might bring down the X Server! :) HTH = -- Viksit Gaur http://www.viksit.com me[at]viksit.com viksit[at]linux-delhi[dot]org 'Not all who wander are lost.' - J.R.R. Tolkien, The Fellowship of the Ring __ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
RE: [ilugd] Bash Shell Scripting...
> (just a guess...). If so, how do i find out that which all devices are > using my cdrom/floppy??? (as root): lsof /mnt/cdrom -Nishi ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] Bash Shell Scripting...
this error is displayed if you try to unmount cd/floppy while working in the directory in which cd/floppy is mounted. so, to avoid the error, try unmounting the device from outside the mounted device's folder .. also make sure that you are not cd'ed in that folder from another terminal. hth -!sh On Wed, 12 May 2004, Mayank Jain wrote: > Hi guys, > pls help me out on this one... > > I'm making an automated shell script installer for Oracle9i. It'll > copy the 3 cd's onto the hdd & start the installation. The prob is > that after copying from the 1st cd, the Bash prompt gives the > following error:- > > unable to unmount /dev/cdrom : busy > (i dnt remember the exact words!) > > I get the same error when i use other cd's/floppy's. > What is it due to & how can i forcefully eject my cdrom/floppy. > Is it coz of the fact that the device is still busy doing some work > (just a guess...). If so, how do i find out that which all devices are > using my cdrom/floppy??? > > thanx, > Mayank Jain > 9891415240 > > ___ > ilugd mailinglist -- [EMAIL PROTECTED] > http://frodo.hserus.net/mailman/listinfo/ilugd > Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi > http://www.mail-archive.com/[EMAIL PROTECTED]/ > ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
Re: [ilugd] Bash Shell Scripting...
Mayank Jain wrote: Hi guys, pls help me out on this one... unable to unmount /dev/cdrom : busy (i dnt remember the exact words!) Make sure you do not launch your script from the /mnt/cdrom directory. Also as Dhruv said, do a cd / before umount. Btw, how are you making an automated Oracle installer ? IIRC, you have to make selections during the install process. Is there a way to do an unattended install ? Please do let me know. -- / \__ (@\___Raj Shekhar / O My home : http://geocities.com/lunatech3007/ / (_/My blog : http://lunatech.journalspace.com/ /_/ U ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
RE: [ilugd] Bash Shell Scripting...
in your script add cd / before unmount :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mayank Jain Sent: Wednesday, May 12, 2004 7:38 PM To: ilugd-list; cd Subject: [ilugd] Bash Shell Scripting... Hi guys, pls help me out on this one... I'm making an automated shell script installer for Oracle9i. It'll copy the 3 cd's onto the hdd & start the installation. The prob is that after copying from the 1st cd, the Bash prompt gives the following error:- unable to unmount /dev/cdrom : busy (i dnt remember the exact words!) I get the same error when i use other cd's/floppy's. What is it due to & how can i forcefully eject my cdrom/floppy. Is it coz of the fact that the device is still busy doing some work (just a guess...). If so, how do i find out that which all devices are using my cdrom/floppy??? thanx, Mayank Jain 9891415240 ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/ ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
[ilugd] Bash Shell Scripting...
Hi guys, pls help me out on this one... I'm making an automated shell script installer for Oracle9i. It'll copy the 3 cd's onto the hdd & start the installation. The prob is that after copying from the 1st cd, the Bash prompt gives the following error:- unable to unmount /dev/cdrom : busy (i dnt remember the exact words!) I get the same error when i use other cd's/floppy's. What is it due to & how can i forcefully eject my cdrom/floppy. Is it coz of the fact that the device is still busy doing some work (just a guess...). If so, how do i find out that which all devices are using my cdrom/floppy??? thanx, Mayank Jain 9891415240 ___ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/