LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-04-2003, 01:25 PM   #1
Tommi
Member
 
Registered: Apr 2003
Posts: 185

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


Yo!

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...

Thanks!

-Tommi
 
Old 07-04-2003, 01:43 PM   #2
xscousr
Member
 
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, 05:56 AM   #3
Tommi
Member
 
Registered: Apr 2003
Posts: 185

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

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

Rep: Reputation: 49
Quote:
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
 
  


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 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 03:32 AM
mounting & unmounting? 777JR Slackware 3 02-08-2004 03:26 AM
Mounting and unmounting in redhat. Tommi Linux - General 3 04-22-2003 07:08 AM
Mounting and unmounting Hidden Dragon Linux - General 20 09-01-2002 07:52 PM
Mounting / unmounting of partition URGENT mauritzv Linux - Newbie 1 02-12-2002 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:59 AM.

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