[Q] Re Using the mount command - Sony Tablet S

Hi,
Im try to mount my sd card to sony tablet s,
to run the following command,
mount -o bind /mnt/sdcard2 /mnt/sdcard/transferred
do I need to root the tablet first? If not, how do I do that?

boomramada said:
Hi,
Im try to mount my sd card to sony tablet s,
to run the following command,
mount -o bind /mnt/sdcard2 /mnt/sdcard/transferred
do I need to root the tablet first? If not, how do I do that?
Click to expand...
Click to collapse
Yes, you will need to root the device before you can mount anything like that.
Just search the forums and you will find instructions.
Hint: condi has created an all-in-one tool that is apparently very effective.

Related

U20i - Mini Pro ROOT!

Like the user kabaldan posted.
This version works too on Mini Pro !
http://android.doshaska.net/x10miniroot
Thanks for that !
Regards
Bin4ry
Man,Great I got it.
Thanks.
Very Nice.
Xperia Mini pro U20i.
Bin4ry said:
Like the user kabaldan posted.
This version works too on Mini Pro !
http://android.doshaska.net/x10miniroot
Thanks for that !
Regards
Bin4ry
Click to expand...
Click to collapse
works for all firmwares?is there any danger of bricking the phone?
thanks
If I can get more info on rooting this phone, I think I'll get one for my partner.
Froyo 2.2 anyone?
so what possibilities are open now that we can root our mini?
can we do it again if we update the phone?
Noob asking-- is there any chance of a simpler, single click root?
david_vargas_85 said:
Noob asking-- is there any chance of a simpler, single click root?
Click to expand...
Click to collapse
No such thing, but it should get a bit easier when a software update becomes available, and then we can probably use the method that Bin4ry created for the X10 mini.
I used the method above, and it worked like a charm. I've now deleted Roadsync, hyves, and all the demo games that Sony decided to add. Now.. how do I alter that power control widget...
Still waiting for a way to use apps2sd on rooted x10 mini pro. Anyone?
Sent from my U20i using XDA App
No real problem to us app2sd.
You should format your SD card with a unix filesystem (f.e.: ext3)
then open a shell to your phone (adb shell).
After that copy over you apps dir from phone to SD and create a Symlink between them ...
Regards
Bin4ry
Whoaaaa... Glad to know that. Actually i already resized my fat32 partition and format the the later partition into ext3. After that I run apps2sd and it says that my sd card is not partitioned correctly. I clicked apply, it says done, then I clicked reboot. But nothing happens.
I'm going to try the adb shell method. Could you give me more details please? I will also try to search myself. Can't wait to get it working on my x10 mini pro. Again, thank you Bin4ry!
Bin4ry said:
No real problem to us app2sd.
You should format your SD card with a unix filesystem (f.e.: ext3)
then open a shell to your phone (adb shell).
After that copy over you apps dir from phone to SD and create a Symlink between them ...
Regards
Bin4ry
Click to expand...
Click to collapse
Sent from my U20i using XDA App
Oki, fist you have to split your SD like in this tut:
http://forum.xda-developers.com/showthread.php?t=500387
I haven't tryed app2sd yet. But you can find the original manual app2sd tutorial here in forums easily.. Because i'm on phone now i can't search anymore for you than this above link
Regards
Bin4ry
sorry for the late reply...
this is what i did after many hours of reading many apps2sd tutorials and did some trial and errors afterward (repaired my phone twice with pc companion)
1. i created an ext2 partition (500MB) in my SD card with gparted.
2. mounted the ext2 partition with
Code:
#mount -t ext2 /dev/block/mmcblk0p2 /system/sd
3. i can see the ext2 partition is shown by running this
Code:
#busybox df -h
4. i created the /system/sd and /system/sd/app directory, copied all the installed apps from /data/app to /system/sd/app, then delete the /data/app directory by running this
Code:
#mkdir /system/sd
#mkdir /system/sd/app
#cd /data/app
#cp * /system/sd/app
#cd /data/app
#rm *
#cd /data
#rmdir app
5. created symlinks to link /system/sd/app to /data/app with this
Code:
#ln -s /system/sd/app /data/app
6. check the symlinks with this
Code:
#cd /data/app
#pwd --> it says /system/sd/app (everything's good)
up to this point, am i doing everything right?
i cannot see any installed app which i already moved to my ext2 partition in my SD right now.
i think the problem is whenever i rebooted my phone, the ext2 partition is not mounted by the system.
all the tutorials i learned from says that #mount -t ext2 /dev/block/mmcblk0p2 /system/sd must be added in the bottom line of the install-recovery.sh file, which can't be found in x10 mini pro.
how to force system to automatically mount my ext2 partition when the system boot?
anyone succeed moving the applications to SD card in x10 mini / x10 mini pro?
please advice...
thanks in advance
br,
LD
Bin4ry said:
Oki, fist you have to split your SD like in this tut:
http://forum.xda-developers.com/showthread.php?t=500387
I haven't tryed app2sd yet. But you can find the original manual app2sd tutorial here in forums easily.. Because i'm on phone now i can't search anymore for you than this above link
Regards
Bin4ry
Click to expand...
Click to collapse
whati is + and - of rooting the device? i'm still not confident to root my xperia
alg0r1thm said:
whati is + and - of rooting the device? i'm still not confident to root my xperia
Click to expand...
Click to collapse
+unbrand
+delete apps
-
hmm cant think of one atm
Rylo said:
+unbrand
+delete apps
-
hmm cant think of one atm
Click to expand...
Click to collapse
will it eliminates my warranty?
LiveDeviL said:
sorry for the late reply...
this is what i did after many hours of reading many apps2sd tutorials and did some trial and errors afterward (repaired my phone twice with pc companion)
1. i created an ext2 partition (500MB) in my SD card with gparted.
2. mounted the ext2 partition with
Code:
#mount -t ext2 /dev/block/mmcblk0p2 /system/sd
3. i can see the ext2 partition is shown by running this
Code:
#busybox df -h
4. i created the /system/sd and /system/sd/app directory, copied all the installed apps from /data/app to /system/sd/app, then delete the /data/app directory by running this
Code:
#mkdir /system/sd
#mkdir /system/sd/app
#cd /data/app
#cp * /system/sd/app
#cd /data/app
#rm *
#cd /data
#rmdir app
5. created symlinks to link /system/sd/app to /data/app with this
Code:
#ln -s /system/sd/app /data/app
6. check the symlinks with this
Code:
#cd /data/app
#pwd --> it says /system/sd/app (everything's good)
up to this point, am i doing everything right?
i cannot see any installed app which i already moved to my ext2 partition in my SD right now.
i think the problem is whenever i rebooted my phone, the ext2 partition is not mounted by the system.
all the tutorials i learned from says that #mount -t ext2 /dev/block/mmcblk0p2 /system/sd must be added in the bottom line of the install-recovery.sh file, which can't be found in x10 mini pro.
how to force system to automatically mount my ext2 partition when the system boot?
anyone succeed moving the applications to SD card in x10 mini / x10 mini pro?
please advice...
thanks in advance
br,
LD
Click to expand...
Click to collapse
Sorry i was away a little.
If you mount it manually you see the apps right ? If not: Be sure you are mounting the right mmcblk
To mount it automatic : I THINK (not sure now) you can create a init.sh in /system/etc and write down the mount command there [I'm not sure about but give it a try ]
Regards
Bin4ry
hmm... after i put that init.sh in /system/etc and restart my phone, it's just stucked at sony ericsson's logo and won't boot.
but anyway, thanks for your kind reply Bin4ry!
i wonder does anyone out there get apps2sd to work on their x10 mini / x10 mini pro?
Bin4ry said:
Sorry i was away a little.
If you mount it manually you see the apps right ? If not: Be sure you are mounting the right mmcblk
To mount it automatic : I THINK (not sure now) you can create a init.sh in /system/etc and write down the mount command there [I'm not sure about but give it a try ]
Regards
Bin4ry
Click to expand...
Click to collapse
+1 for this, I want to get this working but am stuck at the automount problem.

[SOLVED] [Q]Recovery Mount Issue

I've searched here, other device forums, as well as Google (not good at the Google skills though) and cannot find the answer to my issue.
I wanted to start with a blank formatted device and then install a clean recovery of a ROM from SDCARD. But my noob a** didn't read that TWRP and CWM both don't have the ability to mount the internal memory to the PC/MAC.
I either don't know what I'm doing (obvious answer) or don't know what setting to turn on/off to get the internal memory to mount to my Mac.
TF 201
TWRP 2.1.3
Bootloader Unlocked
Mac OS X Lion
Any help you guys can give me would be greatly appreciated!
--Chaz
lattera said:
Here's the blog entry. I hope this helps anyone who was in my same situation: http://0xfeedface.org/blog/lattera/2012-06-04/installing-cm9-encrypted-android-tablet
Sent from my Transformer Prime TF201 using XDA Premium HD app
Click to expand...
Click to collapse
The above xda post had the mount points needed to dab mount the microSD and then flash the ROM
Requirements
External microSD card
USB microSD card reader
ROM downloaded
adb installed properly
some shell knowledge
Click to expand...
Click to collapse
Steps (This is just how I did it. There are other ways once you've mounted the microSD)
Move your downloaded ROM to the microSD card via the reader plugged into your PC or Mac
Boot your device into the recovery of choice (I used TWRP since it was already installed before the mess up)
On your PC or Mac go into your terminal/cmd prompt
Type: adb shell
Type: cd /sdcard ....(this is the internal memory of the TF201)
Type: mkdir /microsd
Type: ls (you should see your newly created directory)
Type: mount /dev/block/mmcblk1p1 /sdcard/microsd (patience needed here)
Type: cd /sdcard/microsd
Type: ls (you should see the files you copied from your external card reader to the microSD card)
NOTE: I tried flashing in recovery from the external microSD but it failed so I had to copy the files to the /sdcard partition​
Type: cp /sdcard/microsd/name-of-rom.zip /sdcard/ (same command for other files for flash ie: Gapps)
Click to expand...
Click to collapse
After the copy I also performed a reboot back into recovery just to properly unmount/mount all the needed partitions for the flash.
Thanks
Again thanks to lattera for the mount point listed in his blog.
--Chaz
I tried the above but it says mounting /dev/block/mmcblk1p1 on /sdcard/microsd failed: No such file or Directory
karimooz said:
I tried the above but it says mounting /dev/block/mmcblk1p1 on /sdcard/microsd failed: No such file or Directory
Click to expand...
Click to collapse
It's better to use
Code:
mount /dev/block/mmcblk1p1 /data/media
to get into microsd then there is no error and you can flash without any risks of even harrder bricking.

CM10 - external_sd mount location

I jumped from stock to CM10 and have found an issue I need resolved, but am not sure how to go about it.
On stock, I didn't have
/sdcard/ is the path for the internal memory
/sdcard/external_sd/ is the path for the actual add-in slot you buy yourself.
This is great because the file explorer apps don't need special access to get to, and things are at least somewhat logical on how they're laid out.
On CM10:
/storage/sdcard0/ is internal memory
/storage/sdcard1/ is external memory
There are symbolic links of /sdcard and /external_sd but to access the latter, I need to tell apps like ES file explorer to change their base path rather than just having a nested mount structure.
I've tried using terminal emulator to go in and create a symbolic link, but I get 'operation not permitted' messages. I've also tried editing /etc/vold.fstab to have it change the mount from /storage/sdcard1 to /storage/sdcard0/external_sd, but the filesystem is read-only and 'mount -o remount,rw /' doesn't have an effect even though it doesn't complain.
How can I change the mount structure back to how I want it and how it's easier to access/navigate it in my apps?
Run into some situation, hopefully someone can shed some light
Did you mount this files as r/w?
Sent from my SAMSUNG-SGH-I717 using xda premium
johnrippa said:
Did you mount this files as r/w?
Sent from my SAMSUNG-SGH-I717 using xda premium
Click to expand...
Click to collapse
In my original post I mention trying to get it remounted as r/w, the command doesn't complain but the filesystem stays read-only.
Try busybox mount -o remount,rw /system
If that fails, use an app to do it.
ChronoReverse said:
Try busybox mount -o remount,rw /system
If that fails, use an app to do it.
Click to expand...
Click to collapse
Any particular apps to recommend? I had tried issuing the remount command on / and not /system. I will give that another try.
ChronoReverse said:
Try busybox mount -o remount,rw /system
If that fails, use an app to do it.
Click to expand...
Click to collapse
I was able to modify the mount point to be /storage/sdcard0/external_sd/ for the external SD slot, but when I rebooted CM it got stuck and would buzz every 10 seconds or so and stayed that way indefinitely. Not sure why this breaks CM so bad but there you have it. Oh well.
Might be a better idea to just add links so you get your old /sdcard/external_sd
I'm not currently on a CM10 ROM or else I'd test.
ChronoReverse said:
Might be a better idea to just add links so you get your old /sdcard/external_sd
I'm not currently on a CM10 ROM or else I'd test.
Click to expand...
Click to collapse
Symbolic links don't work on a FAT based filesystem (which the SD card mounts are), unfortunately.

How to exchange memories

Hi, this is a tutorial that explain how to change the internal sd with the external.
It is an idea of danitab78, i decided to create this to shy away from talking in other threads.
I think it solves the main problem of our device that has only 2,3 gb as internal sd.
It works on this script:
ICS:
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
mount -o bind /data/media /mnt/sdcard/external_sd
chmod 777 /mnt/sdcard/external_sd
The only thing to do is create a "external_sd" folder in external_sd
At first, you must have a file managar that works on rooted phones like "Root Explorer" and also "Script Manager - SManager" so you can bring the attached file into your phone, i suggest you to paste it in system/etc. Now rename your .txt in .sh.
Open Script Manager with root permissions and find the .sh, tap on it, and if is asked how to open it, choos script/executable. In the next windows tap on "su", "boot","save" and finally "run".
If it doesnt give you any error it has worked!
Congratulations
All rights reserved to Danitab78
JELLYBEAN:
I copied kumas post, so thanks to him here and here
ROOT IS REQUIRED and Jelly Bean
I made/copied (lol) this script by combining Artas182x and Mateo1111 scripts
this is how you would save it as script (.sh file)
Code:
#!/system/bin/sh
SU
busybox mount -o remount,rw /
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
if busybox mount | busybox grep vold/179:61; then
busybox mount -o bind /data/media /storage/external_SD
busybox rm /storage/external_SD/external_sd
busybox chmod -R 777 /storage/external_SD
fi
Or just download the attachment and unzip to your sdcard and run with smanger or similar app (and set to boot at startup if you want)
Note:
1.When using the camera and video recorder, change settings storage to internal memory (if you don't, you will have to reboot the phone to see your pic/vid you just took)
2.This script will allow you to install large size games (ex. Asphalt 7) but you will still need link2sd (to move apps to your external_SD)
Now if you use the link2sd app, select the "create symbolic link"
lol one more thing, you will need to partition your sdcard to use link2sd.
3.If y'all have busybox installed properly this script should work fine. In addition, this script is all set for init.d (but i have problems using this method). You will get an error for SU, because it's set for init.d. However, the script still works fine through a terminal.
Warning, using Android Tuner app can mess up your L9 and I'm not responsible if you do!
Or if you don't want to use link2sd and partition your Sdcard, you can use Android Tuner However, this app is really advance and you should make a CWM backup (thanks to Artas182x) before messing with this app. It has a lot of options and you could mess the phone up.
I did it for a better english, i hope
Will it take the apps into it!?
Sent from my LG-P765 using xda premium
hkfree said:
Will it take the apps into it!?
Sent from my LG-P765 using xda premium
Click to expand...
Click to collapse
I did it and i installed NFS Most Wanted and Asphalt 7, so definetly yes
it works, my internal now states 16gb
but i still don`t understand " The only thing to do is create a "external_sd" folder in external_sd"
does it means i have make folder external_sd after all the process?
in process so should be like this
1. install script manager
2. load script
3. check internal sd now should be as big as our mmc
4. create a "external_sd" folder in external_sd
does it right?
Normally, in /mnt/sdcard there is a folder named "external_sd" that is your microsd card, you have to create a folder named "external_sd" in it.
It doesnt matter if you create it before or after the script, i did it after and it worked but i think it would have worked in any case
Perfect it worked!!!
Sent from my LG-P760 using xda app-developers app
it really is move data of the application..
but if you take a look on "/data/app/" the installed apps is still there and the "/sdcard/app" is empty
it seems move everything including data of application (OBB files), and default location of application like whatsapp media now is in the "/sdcard/whatsapp"
is that normal or there would be any possible way to move "/data/app" to such as "/sdcard/app" ??
Roker1 said:
Hi, this is a tutorial that explain how to change the internal sd with the external.
It is an idea of danitba87, i decided to create this to shy away from talking in other threads.
I think it solves the main problem of our device that has only 2,3 gb as internal sd.
It works on this script:
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
mount -o bind /data/media /mnt/sdcard/external_sd
chmod 777 /mnt/sdcard/external_sd
The only thing to do is create a "external_sd" folder in external_sd
At first, you must have a file managar that works on rooted phones like "Root Explorer" and also "Script Manager - SManager" so you can bring the attached file into your phone, i suggest you to paste it in sys/etc. Now rename your .txt in .sh.
Open Script Manager with root permissions and find the .sh, tap on it, and if is asked how to open it, choos script/executable. In the next windows tap on "su", "boot","save" and finally "run".
If it doesnt give you any error it has worked!
Congratulations
All rights reserved to Danitba87
I did it for a better english, i hope
Click to expand...
Click to collapse
Does this work without rooting your phone?
Sorry for being a noob here...just switched to android and got this phone... :silly:
sunnydsouza said:
Does this work without rooting your phone?
Sorry for being a noob here...just switched to android and got this phone... :silly:
Click to expand...
Click to collapse
nope, you must have access to /system by rooting ur phone
itoit said:
it really is move data of the application..
but if you take a look on "/data/app/" the installed apps is still there and the "/sdcard/app" is empty
it seems move everything including data of application (OBB files), and default location of application like whatsapp media now is in the "/sdcard/whatsapp"
is that normal or there would be any possible way to move "/data/app" to such as "/sdcard/app" ??
Click to expand...
Click to collapse
the script work only for swith internal sd card whit external.
No need move apk in sdcard
Roker1 said:
At first, you must have a file managar that works on rooted phones like "Root Explorer" and also "Script Manager - SManager" so you can bring the attached file into your phone, i suggest you to paste it in sys/etc. Now rename your .txt in .sh.
Open Script Manager with root permissions and find the .sh, tap on it, and if is asked how to open it, choos script/executable. In the next windows tap on "su", "boot","save" and finally "run".
If it doesnt give you any error it has worked!
Congratulations
All rights reserved to Danitab78
I did it for a better english, i hope
Click to expand...
Click to collapse
insted of script manager u could simplify this to make a script in rom toolbox lite via scripter
just put inside the script
Code:
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:61 /mnt/sdcard
mount -o bind /data/media /mnt/sdcard/external_sd
chmod 777 /mnt/sdcard/external_sd
\
name it as u wish, example "int2sd" and make it run on boot
sorry for asking this..
if i do this switching the memory, so the external sd will be the internal and the internal will be the external sd.. is it right?
bramprasetyo said:
sorry for asking this..
if i do this switching the memory, so the external sd will be the internal and the internal will be the external sd.. is it right?
Click to expand...
Click to collapse
Yes!
thanks for the script, it's working perfect
Roker1 said:
Yes!
Click to expand...
Click to collapse
thank you for quick reply...
and how to undo this script? just delete and reboot?
bramprasetyo said:
thank you for quick reply...
and how to undo this script? just delete and reboot?
Click to expand...
Click to collapse
yes
danitab78 said:
yes
Click to expand...
Click to collapse
thanks
let me try it now...
I ran the script and then went back into folder with root explorer and it looks like all the files from sd have been copied to sd_external
Sent from my LG-P769 using xda app-developers app
R: How to exchange memories
After following this guide should i See more space here? Cause i've done IT without errors but the space avaible is the Same.
Sent from my LG-P760 using xda app-developers app
it works. thanks

bind mount at boot

Hello,
I have this old, but working, LG L65 d280n phone. It's already rooted and it runs LineageOS 14 (Android 7.1.2). It's nearly perfect for my needs, it only has little internal storage.
I'd like to bind mount (# mount -o bind ...) at boot the WhatsApp directory on another dedicated directory on the SD-card, so that I save a good share of internal storage.
I've already tried FolderMount app but it didn't work for me. I've also already tried Link2SD, but it does not support LineageOS rooting model. I don't know other apps that can solve this problem.
So I think I could just add that simple mount command to some script running at boot, I know GNU/Linux pretty well, but I don't know almost anything about Android/Linux.
Is there a place/hook/script I can use to add this command at boot?
mount -o bind /storage/self/primary/WhatsApp /sdcard/whateveritsname/WhatsApp

Categories

Resources