Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can´t umount CDROM on server ?

Status
Not open for further replies.

Madz

Technical User
Jan 31, 2001
33
SE
I can´t umount the CDROM. How to detect the process that is running or force the system to umount the drive?

thanks in advance!
 
Hi Madz

To check the process locking the device
type -

1. fuser /cdrom (or mount point).

2. Ensure you aren't in the cdrom filesystem, as you can't unmount a filesystem you are sat in.





 
Sometimes just fuser won't help. Try using it with the -c option.
fuser -c /cdrom
Then check those process IDs it lists. You'll have to stop any processes attached to /cdrom or contact the users that are in /cdrom and have them "cd" out of /cdrom, or lastly, kill those processes (if safe).

Also, if the /cdrom is NFS mounted to another host, you may need to telnet to that host and do the umount command command there.

If all else fails and you cannot get it to release, try using the -k option on fuser to kill the processes for you.
fuser -k /cdrom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top