Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 07-04-2003, 02:25 PM   #1
Registered: Apr 2003
Posts: 185

Rep: Reputation: 30
Mounting and unmounting in Linux...


Mounting and unmounting in Linux...please advice.

1. I the device is busy and you therefore cannot umount how to find out that what process makes it busy?

2. When you know that which process makes your device busy, how to kill that process.

3. Is there power command which umounts as effectively like it does when Linux closes and reboots...


Old 07-04-2003, 02:43 PM   #2
Registered: Jul 2003
Location: Toronto
Distribution: Redhat
Posts: 89

Rep: Reputation: 15
if the device is busy it is possible that you are in the mounted dir

i.e if you mount your cdrom to /mnt/cdrom and your in that dir when you try to unmount it you will get the device is busy error

being "in that dir" i mean within that tree in a shell, have a file manager open to that dir etc etc.

ps -eaux |grep "mount point" will tell you what is accessing that dir

not that i'm aware of - anyone else?
Old 07-05-2003, 06:56 AM   #3
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
Yes but changing dir does not allways help.

Old 07-05-2003, 09:02 PM   #4
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Originally posted by xscousr
ps -eaux |grep "mount point" will tell you what is accessing that dir
ie ps -eaux |grep "/dev/cdrom/" will tell you which programs are currently using the mounted CD-rom, for example. See if this resupts in anything. If you can't end the program once you know what it is, you can always do a "kill [PID]" command


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting and Unmounting issues kronuskaos Linux - Hardware 14 11-24-2005 04:32 AM
mounting & unmounting? 777JR Slackware 3 02-08-2004 04:26 AM
Mounting and unmounting in redhat. Tommi Linux - General 3 04-22-2003 08:08 AM
Mounting and unmounting Hidden Dragon Linux - General 20 09-01-2002 08:52 PM
Mounting / unmounting of partition URGENT mauritzv Linux - Newbie 1 02-12-2002 10:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration