android ter - Galaxy Tab 2 Q&A, Help & Troubleshooting

Hey all, i stuck with a problem:
I am trying to write a sd card image from my internal memory to an external sdcard with my galaxy tab 2 with terminal emulator. I am running cyanogenmod 10.2
I got all the commands ready but it wont write to the external card because it only has a read permission, but whatever i try, i cant mount it as read/write.
so my question: how can i remount my external sdcard with write permission in the terminal emulator?
thanx in advance?
p.s. location of my external sd card is /storage/sdcard1

try:
/extSdCard
or
/external_sd
instead of /storage/sdcard1

Android-Andi said:
try:
/extSdCard
or
/external_sd
instead of /storage/sdcard1
Click to expand...
Click to collapse
thanks for your reaction, but it still doesn't work. I still get the message" /extSdCard is opened for read only"

set root for apps & adb in developeroptions?
run as "su" ?
remounted as rw?

Android-Andi said:
set root for apps & adb in developeroptions?
run as "su" ?
remounted as rw?
Click to expand...
Click to collapse
Yest i have done both.
and if i remount as RW it gives the following error:
ro,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

Related

[Q] Moving and linking Folders to external SDCard (eg Google Music cache)

Hello folks,
I am trying to move my google music cache to the external 32GB SD card so that it won't fill up my internal storage but somehow I fail.
Here is what I did so far:
format sdcard as ext2
manually mount sdcard since it won't automatically when ext:
Code:
mkdir /Removable/MicroSD
mount -r -w -t ext2 /dev/block/vold/179\:9 /Removable/MicroSD
mkdir /Removable/MicroSD/GoogleMusicData
Then move all data from /sdcard/Android/data/com.google.android.music/cache to /Removable/MicroSD/GoogleMusicData/cache
I did this with root explorer since I'm not too much of a terminal h4xx0r.
Delete the folder /sdcard/Android/data/com.google.android.music/
Link the new Folder on external MicroSD Card to the original location via this terminal command:
Code:
ln -s /Removable/MicroSD/GoogleMusicData /data/media/Android/data/com.google.android.music
Since /sdcard is already a link like the one I am setting up here, it is not possible to link to this linked location (/sdcard/Android/data/com.google.android.music).
Instead I had to link to the origninal destination of /sdcard which is /data/media.
Now the microSD card is accessible for root explorer. It shows read and write access.
But google music won't find it. It says that it doesn't have enough space to stream music so I figure that it somehow doesn't have access to the sd card.
What could be the issue here?
Also instead of 28GB free memory root explorer shows me only 364,44MB free memory. the command "df" in terminal however confirms 28GB of free memory.
I thought that a reboot might do it. But it doesn't. Instead it gets rid of all the hacking I've done in terminal. So I guess I would have to place a script in /etc/init.d for the link to be set everytime I reboot, right?
Help please?
We don't know how gmusic checks that, but I would suggest checking the perms on the mount, perhaps even mounting somewhere else.
Never done it and don't have the resources but I'm sure with root, making /mnt/sdcard a real microsd is possible.
Sent from my Transformer Prime TF201 using Tapatalk
Maybe this thread will help ?
Thanks for your response!
What do you mean by "checking the perms on the mount"?
I don't want to mount my microsd to /sdcard since then I would have 16 gigs of unused space on my internal memory.
I would rather just link this music folder to my external card and maybe some others later (e.g. DCIM and so on).
I have also tried the mount -o bind command instead of ln but that didn't do the job either. the folder com.google.android.music then only appeared under /data/media/Android/data/ but not under /sdcard/Android/data/ which I totally don't understand how that can happen.
I have root of course.
Does anybody maybe have a script by hand of a similar undertaking so that I can look into that and try to understand how this whole mounting and binding thing works?

[Q] voldfstab loop mount

My sd card slot is broken in my mesmerize and i have been using
Code:
su
busybox mount -o loop /data/local/tmp /mnt/sdcard
mkdir /data/local/tmp/Android
mkdir /data/local/tmp/Android/data
exit
exit
to get an sd card
but what is the syntax for using fstab to do this.
What i really need is for applications to recognize an sd card is mounted as the only app that works is Poweramp
Is there some intent i can broadcast?
I am using awesome sauce 10.7 with kgb fa16 and red voodoo cwm with lagfix enabled
so everything is ext4
I can post my vold.fstab if needed.
Another question.
(is it safe?)can i just put the mesmerize sd card tray from http://www.globaldirectparts.com/Samsung-Galaxy-S-Mesmerize-SCH-i500-SD-Card-Tray-p/smsng6101440.htm here inside the mesmerize if i take it apart and ground myself?

[Q] sony xperia l.storage problem after root...(3 storage place)..HELP pls

hi my name is nikhil,i have sony xperia L.i rooted my phone because i want to swap memory(internal to sd).
although ..i did that..but the thing is...in xperia L, i have 3 place to store.
1>.device memory(1.57gb),
2>.internal storage(5gb)
3>.sd(16 gb)..
normally when i download stuff in playstore it goes into device memory.so i wanted to store app default in sd card.
so now when i swap the memory with the help of rootfixer.and this 2 command line in emulator.
mount -t vfat -o umask=0000 /dev/block/vold/179:33 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
i got ****ed up,because device memory is still there.and sd memory swap in to internal storage...but app still going into device memory.so can any 1 tell me..what should i do.?
nikbird12 said:
hi my name is nikhil,i have sony xperia L.i rooted my phone because i want to swap memory(internal to sd).
although ..i did that..but the thing is...in xperia L, i have 3 place to store.
1>.device memory(1.57gb),
2>.internal storage(5gb)
3>.sd(16 gb)..
normally when i download stuff in playstore it goes into device memory.so i wanted to store app default in sd card.
so now when i swap the memory with the help of rootfixer.and this 2 command line in emulator.
mount -t vfat -o umask=0000 /dev/block/vold/179:33 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
i got ****ed up,because device memory is still there.and sd memory swap in to internal storage...but app still going into device memory.so can any 1 tell me..what should i do.?
Click to expand...
Click to collapse
You did everything right, the swap is only to swap extsd to sdcard so that all the big game obb files stay in external
ty for your reply..but the thing is.....main memory is device memory.in which my app goes whenever i install somthing.i want to set sd card as my default memory.so if u have any suggestion most welcome..

How can I format SD card that was formatted as internal SD in android 6.0?

Dear Friends,
I need your help, my Redmi Note 3 pro is dead and the 64GB sd card was formatted as internal storage and that means it canoot be used in other device, I cannot format it is regular whey- is there a way to remove the android protection?
all the filles are there- just cant delete/format or add files.
Xperia-Ray said:
Dear Friends,
I need your help, my Redmi Note 3 pro is dead and the 64GB sd card was formatted as internal storage and that means it canoot be used in other device, I cannot format it is regular whey- is there a way to remove the android protection?
all the filles are there- just cant delete/format or add files.
Click to expand...
Click to collapse
So you can't delete the files? Do a live boot of linux and see if it shows up.
sd card
ive just formated my sd card to ext4 partation for android 6.0 with KDE partation manager in linux mint and the sd card works fine on my phone so maybe try that hope it helps.
also if u cant delete files it more than likley because of permissions so ude need to chmod the permissions on the media device as such so bring up a terminal in linux or u could try terminal emulaitor and cd to the directory of ur storage usually something like /media/username/devicename in linux and the directory for ur phone may be different but u can bring its directory up with any file manager anyway once that is done su to root then once cd to directory or sub directory of mount point chmod 777 -r or chmod -r 777 for recursive and press enter if formating as root in linux dosent work. hope it helps
Or you can start a live cd version of gparted and wipe the whole thing and let it mount and let the device you want to use it on create the partitions itself. That's what I'd do.

How to unmount an SD Card with Android 11

Android 11 has made several changes to sd cards relating to sdcardfs and some other things. I would like to know how to unmount and mount the sd card via a terminal command or shell script.​
umount /dev/block/vold/public:179,1
does not seem to work.
There is an sm command listed in this older thread (https://forum.xda-developers.com/t/...-sd-card-from-command-line-or-script.3386830/) :
sm unmount public:179
however following the guidenance three it does not work either.
Doing a mount command shows the sd card is mounted and remounted 7 or 8. What is the proper way to unount and remount an sdcard in Android 11 from the shell?
MOD ACTION:
Thread closed at the request of the OP since he has solved the issue and stated " the sm unmount command actually does work"

Categories

Resources