LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 03-18-2015, 11:39 PM   #1
contactteja
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Rep: Reputation: Disabled
Failed to unmount /cache and /system, 16: Device or resource busy


Hi,

In my code, I have resized my cache and system partiotions.
After sucessful repartiotion, Before rebooting the device was trying to unmount /cache and /system partiotions.

But I was getting this below error.
Failed to unmount /cache and /system, 16: Device or resource busy

Can any one help this issue please ?

Thanks,
Teja
 
Old 03-19-2015, 08:47 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,861
Blog Entries: 36

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Use lsof to determine if any applications have open files on that device.

Code:
 lsof | grep '/path'
Shut those applications down if you find any (gracefully if possible).

Also, ensure that your shell working directory is not on the device you want to umount.

Are those directories you originally mounted? What OS and platform?

Last edited by sag47; 03-19-2015 at 08:51 AM.
 
1 members found this post helpful.
Old 03-19-2015, 10:28 PM   #3
contactteja
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.
I am working on android platform.


I have used this command "adb shell lsof | grep system", I could see there are couple of files related to security libraries files and shared libs files are running on
on system partition. But I am not getting what to close, (I couldnt see any of my process which are running on system partition)

Thanks,
Teja
 
Old 03-22-2015, 09:48 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,861
Blog Entries: 36

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Use lsof | head -n1 to see the top of the lsof command. It shows all of the fields in the lsof output. You want to refer to PID and not which field it is. Then use your original lsof command and look at what PIDs have open file handles on the partition. You can use other tools like ps to find more information about the PID.

E.g.

Code:
ps aux | grep somePID
From there you can decide how to handle the process. Either by gracefully shutting it down or by using the kill command.
 
  


Reply


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
[SOLVED] device-mapper: remove ioctl on failed: Device or resource busy jheengut Linux - Kernel 1 10-23-2013 09:38 AM
Failed to stop array: device or resource busy RAID/DMCrypt eponymous Linux - Software 0 12-08-2012 05:45 PM
Device busy, cannot unmount trebek Linux - Hardware 19 10-17-2008 05:58 AM
Unmount cd: device is busy jhimes Linux - Hardware 18 04-08-2008 02:51 AM
can't delete, rename, unmount: Busy resource. AIX 5.3 poeta_boy AIX 4 08-16-2006 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

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