1820586 Members
1806 Online
109626 Solutions
New Discussion юеВ

umount cdrom

 
juno2
Super Advisor

umount cdrom

I have a cdrom mounted to /mnt/scd0 , but when umount it , it pop the message "device is busy" , i tried "fuser -k /dev/scd0 " or " lsof /dev/scd0 " , no any output , i check that it should no other system mounting it , can suggest what can i umount it? thx.
15 REPLIES 15
Martin P.J. Zinser
Honored Contributor

Re: umount cdrom

Which directory are you located in when you try this? As long as someone did a cd /mnt/scd0 the umount will not work.
juno2
Super Advisor

Re: umount cdrom

thx Martin , yes I know I can't run the umount on the cdrom path , i do it at other path but still fail , can suggest what is wrong in my system ? thx.
Stuart Browne
Honored Contributor

Re: umount cdrom

A few things to do.

Change to your home directory.

Ensure that it is still mounted ('mount').

Try unmounting both the mount path (usually /dev/cdrom), and the dev path (/dev/scd0).

Try 'lsof' on both the device, and the mount path. If it's in use, it *WILL* show something.
One long-haired git at your service...
Martin P.J. Zinser
Honored Contributor

Re: umount cdrom

I agree with Stuart, try lsof | grep scd0, since it seems your CD Rom is mounted on /mnt/scd0.

lsof /dev/scd0 will not work since it does display the files, not the file systems.

Greetings, Martin
Steven E. Protter
Exalted Contributor

Re: umount cdrom

Most common cause of not being able to umount a cdrom: As stated, there is someone on the mountpoint.

At this point, you've tried everything. Boot the box and be careful next time. Review cron scripts for problems.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
juno2
Super Advisor

Re: umount cdrom

when I re-mount the cdrom , it pop

mount: block device /dev/scd0 is write-protected, mounting read-only
mount: /dev/scd0 already mounted or /mnt/cdrom busy
mount: according to mtab, /dev/scd0 is already mounted on /mnt/cdrom

so I sure the cdrom is mounted , on the other hand , i use "lsof |grep scd0 " but no any output , can suggest the solution except reboot the system ? thx.
juno2
Super Advisor

Re: umount cdrom

I remove the entry on /etc/mtab and it is Ok now. thx all help .

Re: umount cdrom

My experience with this symptom is that the kernal doesn't release control of the mount device after the device has been exported and mounted on an externel system..
I've never seen the problem without the exporting step..

A safer/cleaner way to unmount the cdrom is:

service nfs stop
unmount /dev/scd0
service nfs start
Elmar P. Kolkman
Honored Contributor

Re: umount cdrom

Next time try the fuser on the whole filesystem (/mnt/cdrom in your case) instead of on the device... fuser -m /mnt/cdrom should do the trick.
Every problem has at least one solution. Only some solutions are harder to find.
Madhu Sudhan_1
Respected Contributor

Re: umount cdrom

Check if the mount point is nfs exported.
Think Positive
Alexander M. Ermes
Honored Contributor

Re: umount cdrom

Hi there.
Just a short note and question to all :
I know, that there is a tool for a scsi reset on HP-UX. Is there one, that could be used on Linux ?
In HP-UX you give the parameter of the raw device ( of cdrom or disk ) to scsireset and that unmounts your cdrom.
Rgds
Alexander M. Ermes


.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Madhu Sudhan_1
Respected Contributor

Re: umount cdrom

Alex,
If you want to send scsi reset in Linux, use
cdrecord -reset dev=. This command sends the scsi reset.
Thank you,
Madhu
Think Positive
Michael Schulte zur Sur
Honored Contributor

Re: umount cdrom

Hi,

I am wondering too. I allways use fuser on the mountpoint and not the device.

greetings

Michael
Michael Schulte zur Sur
Honored Contributor

Re: umount cdrom

Hi juno2,

if your problem is solved, could you please award some points, who could help you?

greetings,

Michael
John Meissner
Esteemed Contributor

Re: umount cdrom

did you try umount -f cdrom ?

-f is force
All paths lead to destiny