How can I format SD card that was formatted as internal SD in android 6.0? - General Questions and Answers

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.

Related

How to get my backed up apps back onto SD card?

So before I resized my partitions I backed up the app and app-private folders on my SD card. Now that I have reformatted the card I am not sure how to get them back onto the card. cp -R command got the files onto the card but they didnt work (in ubuntu had a funny symbol on their icons). So I think I should be able to just copy the files back and have them work again but I cant figure out how to get them copied. And IFS drives didnt help, the SD card doesnt show up.
Ideally I would like to use windows or copying the files from my FAT32 partition onto my ext2 partition.
Code:
adb pull /sdcard/location_of_apks app/
adb push app /system/sd/app
That is working for me but for some reason it keeps hanging on/after copying instamapper. Should I keep waiting or can I do it again and leave out that file?
Ok, so I removed instamapper and tried again and it worked fine. Here is what I used, and thanks again for that command, I was close but had a problem with my syntax
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
brandenk said:
So before I resized my partitions I backed up the app and app-private folders on my SD card. Now that I have reformatted the card I am not sure how to get them back onto the card. cp -R command got the files onto the card but they didnt work (in ubuntu had a funny symbol on their icons). So I think I should be able to just copy the files back and have them work again but I cant figure out how to get them copied. And IFS drives didnt help, the SD card doesnt show up.
Ideally I would like to use windows or copying the files from my FAT32 partition onto my ext2 partition.
Click to expand...
Click to collapse
i've always backed up with "cp -a" and then copy back the same way "cp -a" for the EXT2 partition .. have not yet encountered any troubles with that .. without the "cp -a" you won't have all the permissions set properly
Thanks for the advice! Im starting to get the hang of this.

[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?

SD card problem. please help.

Format my sdcard but the same files comes up after re mounting the card to pc.
+try to copy files to it and un mount frm pc but after re mounting again they are lost.
i tried to format it with
1 windows disk manager
2 Sd Card Formatter
3 CMD
4 mini tool partition
But after i re mount sdcard to pc or phn those files appear again.
P.s tried to scan with Kaspersky virus removal tool and with microsoft security essential but no virus found.
Any help?
Whats the file?!?! Maybe it is a default system file that is required for it to work!
Sent from my LG-P705 using xda premium
Instead of formatting, you can try wiping the entire disk (in mini tool partition you get 5 different ways for wiping a disk). Theoretically every bit of data is gone afterwards
aakashasaj said:
Format my sdcard but the same files comes up after re mounting the card to pc.
+try to copy files to it and un mount frm pc but after re mounting again they are lost.
i tried to format it with
1 windows disk manager
2 Sd Card Formatter
3 CMD
4 mini tool partition
But after i re mount sdcard to pc or phn those files appear again.
P.s tried to scan with Kaspersky virus removal tool and with microsoft security essential but no virus found.
Any help?
Click to expand...
Click to collapse
Sounds like they are system files that the phone automaticly copies to your sd card when it is remounted, if this is so, then it is normal, if this is not the case then try a different sd card.
If you change the File System then all files should be gone too
Boot up a Linux distro, pop in the SD card, and run "sudo dd if=/dev/zero of=/dev/((YOUR_SDCARD))" in a terminal, where ((YOUR_SDCARD)) is the name of the device file representing your SD card (make sure that you know for sure that the "of=" parameter is pointing to your SD card's device file; "sda" is often not an SD card, but is actually your first SATA hard drive).
Assuming you got the right device file as the output file, your SD card should now contain nothing but binary zeros. You can also create a text file with a witty message and write that (change the "if" parameter to "if=/path/to/your/file".
Godspeed.
Sent from my SPH-D710
stubornman said:
Sounds like they are system files that the phone automaticly copies to your sd card when it is remounted, if this is so, then it is normal, if this is not the case then try a different sd card.
Click to expand...
Click to collapse
Nope, i am not talking about android system files.
spaz1201 said:
Whats the file?!?! Maybe it is a default system file that is required for it to work!
Sent from my LG-P705 using xda premium
Click to expand...
Click to collapse
No defaults file of android system, it is my titanium data files and some other custom roms and media.
joskevermeulen said:
Instead of formatting, you can try wiping the entire disk (in mini tool partition you get 5 different ways for wiping a disk). Theoretically every bit of data is gone afterwards
Click to expand...
Click to collapse
Yes i tried mini tool partition indeed. not helpful.
YellowApple said:
Boot up a Linux distro, pop in the SD card, and run "sudo dd if=/dev/zero of=/dev/((YOUR_SDCARD))" in a terminal, where ((YOUR_SDCARD)) is the name of the device file representing your SD card (make sure that you know for sure that the "of=" parameter is pointing to your SD card's device file; "sda" is often not an SD card, but is actually your first SATA hard drive).
Assuming you got the right device file as the output file, your SD card should now contain nothing but binary zeros. You can also create a text file with a witty message and write that (change the "if" parameter to "if=/path/to/your/file".
Godspeed.
Sent from my SPH-D710
Click to expand...
Click to collapse
this method sounds for nerdy, i might wipe my c: or d: or might brick my sd card, any other simple solution?
also thanks for your help.
Appreciated.
try formatting it on android on the SD card , that might help
SDFormatter 3.1 View attachment sdfmt3_1.zip
Did you try FULL format not QUICK? It will remove bad sectors from SD Card.

[Q] Tablet/micro SD card permissions

Hi everyone.
I've got a problem with the permissions of my brand new Micro SD Card. I was copying music files to my card from my pc and tried to delete some on my tablet. It would not let me delete them saying I didnt have permission. I can only read the files I put on it, not modify/delete them or write new ones.
My tablet is running Chromi-X 4.6.1 with _that modded stock kernel. Im not sure how to figure out what my micro SD card it formatted to, but I want to reformat it to NTFS or FAT32 since I think that is the problem. Is there any way to format the micro sd while in the tablet? Also, what should I format to, NTFS or FAT32. Im not sure what to do.
I hope someone help me with this? Thank you
wl123 said:
Hi everyone.
I've got a problem with the permissions of my brand new Micro SD Card. I was copying music files to my card from my pc and tried to delete some on my tablet. It would not let me delete them saying I didnt have permission. I can only read the files I put on it, not modify/delete them or write new ones.
My tablet is running Chromi-X 4.6.1 with _that modded stock kernel. Im not sure how to figure out what my micro SD card it formatted to, but I want to reformat it to NTFS or FAT32 since I think that is the problem. Is there any way to format the micro sd while in the tablet? Also, what should I format to, NTFS or FAT32. Im not sure what to do.
I hope someone help me with this? Thank you
Click to expand...
Click to collapse
Do you have access to a terminal emulator (GPlay Jackpal Android Terminal Emulator)? Do you have GPlay ES file explorer? What size and type of SD do you have (SDHC, Class 6?)
[Edit] First lets make sure you have your MicroSD mounted rw. In ES file explorer, in the left column find Tools, click-expand it, and find Mount RW, click that and open it. What do the radio buttons say for /Removable/MicroSD? If the RO button is dotted, change it to RW. If not, continue below.
Its probably a formatting issue but we need to check directory permissions to rule that out first. In ES file explorer, if you browse over to /Removable and then see /MicroSD as a folder, you may see permissions similar to "drwxr-xr-x" when what you need is "drwxrwxrwx". If this is the case then its a permissions problem. Proceed with the following fix.
Go open the terminal emulator and type the following code:
Code:
su
cd /Removable
chmod MicroSD 777
Which will change mode on the directory permissions to "drwxrwxrwx". The number in the code are OCTAL (4=read, 2=write, 1=execute; Sum=Root User, Group, Others) permissions codes.
If you already see "drwxrwxrwx" and still can't delete or rename then reformat your card from a PC. Quick format twice usually does it. Or you can try to copy everything off the card to PC, then copy it all back. If you want to use it ever for recovery then go FAT32. Otherwise you can go NTFS.
If its a 64GB (or larger) SDHX card, then it needs to be exFAT and you can't use it for recovery.

Can't run mount script with Link2SD

Any solution for this problem ?
http://forum.xda-developers.com/showthread.php?t=919326
As mentioned in the above link, i hv followed every step but still can't get this to work.
1.) Rooted my Xperia L with Rootkit for Xperia on latest firmware 15.3.A.1.12 (stock kernel).Root successful.
2.)Installed latest version of Link2sd, i.e. 3.1.2
3.)Connected my phone to pc as mass storage device
Formatted external 32gb sandisk card with Minitool in two partitions.First one is 20gb, primary, fat32.
Second 10gb, primary, fat32
4.)Disconnected the phone from pc & rebooted it.
5.)Checked the Storage in settings & it was showing only the second partition of my ext. sd card, i.e. 10gb
6.)Ran Link2sd, it asked for Super User permission which i granted with SuperSu
7.)Then it asked for filesystem for the second partition on ext card.i chose fat32.
8.)In next screen Link2sd said it Mount script error. Mount script cannot be created. mount : No such file or directory.
9.)Again i ran that script from left pane of link2sd.It said to reboot the phone which i did.
10.)From then on the phone goes into bootloop whenever i create two partitions in that external card.
I have to delete both partition and format it again as single one and then put it back into phone and it will normally boot.
Anyone successfully transferred apps, games to ext card with link2sd ? Pls guide me.
If you want to transfer games, GL to SD is the best option available to rooted users to transfer game data to ext.SD Card! You can also transfer apps using that, but it's not recommended. But I believe you must not be having apps that take 4gb+? I have tested GL to SD with my XL - Virtua Tennis, Asphalt 8 all work like charm and occupy no space in my Int.SD Card.
thanks .. i'll try that ...
for apps what i should use ? what about foldermount or apps2sd ?
JOYGR said:
thanks .. i'll try that ...
for apps what i should use ? what about foldermount or apps2sd ?
Click to expand...
Click to collapse
Did not try, will give a go tomorrow and tell you! Perhaps you should also try.. I had a good experience with GL to SD, so did not try them..Heard of Apps2SD Quiet often, but never Foldermount.
ok .. i'll try gl to sd
is there any bug in foldermount ?
if someone solved my link2sd prob, it would have been nice...... if i create a second partition in ext card, the phone goes into bootloop ... i think the mount script can't recognise it during bootup ... is there anyway to clear that mount script ?
can anyone atleast guide me how to do this using Terminal ?
1. Install Link2SD, launch so it makes the mounting script.
2. Remove mount scripts from /etc/init.d using terminal in my device.
Code:
cd /etc/init.d ; rm 05mountsd ; rm 11link2sd
3. transform to system app by moving Link2SD from /data/app to /system/app
Code:
mv /data/app/com.buak.Link2SD-1.apk /system/app/com.buak.Link2SD-1.apk ;reboot
JOYGR said:
can anyone atleast guide me how to do this using Terminal ?
Click to expand...
Click to collapse
What all are the files you are having in /etc/init.d directory?

Categories

Resources