We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Trying to format SDCard to BTRFS and share android space. ERROR : umount: /media/sdcard: target is busy

asked 2015-02-19 15:15:36 +0200

ozzyo1212 gravatar image

updated 2015-02-24 06:25:16 +0200

foss4ever gravatar image

Please can anyone help, I have literally been trying to attempt this since 2014 lol

I have followed the instructions in the below link, with adding the the extra CD .. step in-between step 12 &13 , so step 12.5 if you'd like. But I am still met with * umount: /media/sdcard: target is busy* I have tried downloading Crest & advanced app killer , to try and close anything that may be causing this but the problem still occurs.

https://together.jolla.com/question/40802/how-to-format-your-usd-card-to-btrfs-and-share-space-with-android/

Does anyone have a solution

(64gb Samsung memory card )

edit retag flag offensive close delete

3 Answers

Sort by » oldest newest most voted
0

answered 2015-02-19 18:36:24 +0200

foss4ever gravatar image

updated 2015-02-23 15:33:14 +0200

Stop the AlienDalvik android runtime fully with System utilities app and try again.

Edit: Also, you should make sure you have removed (or have not nstalled) the Google Play Services completely from your phone cause you'll just get in more problems of getting android see the SDcard if you have Google Play hacks messing with your system.

edit flag offensive delete publish link more

Comments

Is there a possibility my jolla is faulty? Thanks for your input, but I have tried this 3 times now and still the message [root@dhcppc18 /]# umount /dev/mmcblk1 umount: /media/sdcard: target is busy. (in some cases useful info about processes that use the device is found by lsof(8) or fuser(1))

ozzyo1212 ( 2015-02-19 22:16:55 +0200 )edit

Whar do the lsof or fuser report? Which processes have locked the partition that you are trying to umount..?

foss4ever ( 2015-02-19 22:55:21 +0200 )edit

Sorry @jjaone I am not very techy, so I am unaware of the correct command to enter

I have tried a few e.g lsof -F etc... , which bring up a lot of random information (unless you know what you are looking for)

the command "lsof /mnt/rootfs , does not bring anything up for me

lol I should have tagged this question Jolla Use for dummies, hopefully we can get to the root of the problem soon

ozzyo1212 ( 2015-02-20 14:47:44 +0200 )edit
1

@ozzyo1212 Well the guide to format the card to btrfs for #SailfishOS and android is quite advanced-level so typing simply:

lsof /media/sdcard

to see which process has opened that folder shouldn't be that hard.. ;) If that command does not display anything then you can add +D option to the command to make it check which process(es) are maybe blocking files in that folder If you actually tried to type: umount /media/sdcard and get the response "device is busy" then there must be some process that is blocking the unmounting of it (most probably the android-runtime). As for me, I have been able to follow the guide and have a 32 GB card formated as btrfs, but while I was doing that I didn't even have the AlienDalvik installed so no droid-runtime interference in my case And, please note the guide does not work in 1.1.2.x because of the changes in android-runtime (but if you completely uninstall Android support you might succeed in following the guide).

foss4ever ( 2015-02-20 23:19:25 +0200 )edit

@jjaone No information comes up with those prompts. I Did the extreme and opted for the factory reset, installed android support , google play etc. & it seems to have worked, but as usual there is always something. I am now stuck on :

*preparing the system* create /etc/systemd/system/androidsdcard.service

the message bash: create: Command not found ..... appears on the screen.

Do I need to exit Terminal / restart my phone before doing this?... I have currently left terminal open, and am not using my phone until I can fix this.

ozzyo1212 ( 2015-02-22 11:29:06 +0200 )edit
0

answered 2015-02-23 15:52:07 +0200

chemist gravatar image

Well...

This is no beginners guide, you need to know your way around! I try to make everything as foolproof as possible. This version does only apply to the SFOS release with the same version number!

create is not a CLI program, it is a do create that file at the following path with the editor or in the way of your choice

>1.1.2 will need alteration of alien.sh or run a script after startup that does stop aliendalvik and the android mount
edit flag offensive delete publish link more
0

answered 2015-02-24 03:50:30 +0200

tyler gravatar image

Trying to format SDCard to BTRFS

Looks like you're sucked when formatting the sd card.

It's not necessary to format sd on your phone. Simply put your sd card in your computer, and for Ubuntu you can use GParted, and for Windows use MiniTool Partition Wizard(Free Edition).

And this post works too. But remember to replace /data/sdcard to /data/media.(I tested it on Update 10 & Update 11, works)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2015-02-19 15:15:36 +0200

Seen: 1,288 times

Last updated: Feb 24 '15