LinuxQuestions.org
Visit Jeremy's Blog.
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 10-27-2003, 11:42 AM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
problem unmount cdrom drive


hello,

I have two computers in my room, a Desktop (RH9)and my Linux Box (SuSE), I have recently set up my Box as a NFS server and I was sharing my CD drive to my Desktop.

I tried unmounting the cd-drive, but it didn't work, said that it was "busy". I closed all of the terminals on all computers to make sure it wasn't busy because of that.

I then came upon the idea to remove the mounted cd drive from the /etc/mtab. The computer let me eject the CD!! yeah! Or not Not the computer thinks that something is mounted when it is not. It still says that the CD drive is mounted when i try and mount a new CD.

Has anyone any ideas? I have already restarted the rpc.mountd daemon for the NFS server. Could the NFS server be the problem?

It was happening before I messed with mtab, so I don't think that is the problem.

thanks in advance
Hamish
 
Old 10-27-2003, 11:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
does fuser give you any information abuot which users / processes are alledgedly using it?
 
Old 10-27-2003, 11:56 AM   #3
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
nothing at all....

I also tried

ps waxf

but that didn't give any help. Didn't mention my cd drive at all.

One other puzzling thing is that i noticed my CD drive is /dev/sr0 . I don't really know what sr0 is. SCSI is sd0, and it is just a normal CD-writer.

thanks
hamish
 
Old 10-27-2003, 12:06 PM   #4
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
have now tried

# fuser -v /mnt/cdrom

which gave the output

USER PID ACCESS COMMAND
/mnt/cdrom root kernel mount /mnt/cdrom

THis suggests that the /mnt/cdrom is being used by the kernel. It doesn't give a PID so I can't kill it.

I tried 'killall -9 kernel' and that didn't do anything. Also tried to kill cdrom and mount.

hope this gives you more info to work from.

hamish
 
Old 10-27-2003, 05:45 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
I suspect that since your sharing the CDROM via NFS that is your problem. It is keeping the drive busy. Did you try killing the NFS server and then try to unmount the drive?

BTW you shouldn't change the mtab file.
 
Old 10-27-2003, 11:23 PM   #6
namespace
LQ Newbie
 
Registered: Oct 2003
Location: China
Distribution: LFS
Posts: 21

Rep: Reputation: 15
You need lsof .Just 'man lsof'
So you can find NODE, then kill it.
 
  


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
cdrom will not unmount. bbmx952 Linux - Newbie 7 07-21-2004 04:35 PM
can't unmount my cdrom drive (says it's busy) fabs Linux - Hardware 2 02-23-2004 12:12 AM
Unmount cdrom no matter what! TheCoffeeMug Linux - Hardware 6 01-26-2004 04:03 PM
I can't unmount my cdrom... ramsees Linux - Hardware 2 12-07-2003 12:42 AM
cdrom won't unmount! yocompia Slackware 3 11-07-2003 03:11 PM

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

All times are GMT -5. The time now is 07:13 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