How to remove permanent read only from internal sdcard - Hardware Hacking General

Sent from my GT-I9100 using xda premium

Please tell me how can I change permanent read-only (r/o) on my internal sdcard. I have tried root explorer but it only gave a temporary solution. My cell has root but don't know what to do
Sent from my GT-I9100 using xda premium

I doubt that the entire MMC is read-only, you'd not be able to save any data at all.
Certain partitions (like /system) are probably mounted read-only.
This is all specified in init.rc

Nice info
Sent from my GT-S5360 using Tapatalk 2

That's the problem my entire internal mmc has turned r/o and yes I can't save or delete anything.. could you tell me how change that in init.rc
Sent from my GT-I9100 using xda premium

Can you get ADB working?
If not, follow the tutorials elsewhere.
Just type:
Code:
mount
Into adb and see what you have mounted and how.

try to format using a pc, usually internal memory will be mounted on a pc once you connect your phone to it

You could try to mount the SD as USB disk in Recovery... when you plug the cable to your PC it asks you to format the SD card...

Related

ICS JackpotClavin070112.zip mounting sdcard problem

I think this ROM has fixed this problem. However; there is nothing when I plug my KF. I also put the vold into /system/bin and change its permission into 777. Is there any way work around ??? Thank you
I believe the only way to mount the SD card is by TWRP, and installing/copying whatever you need then rebooting back into the OS. Someone correct me if I'm wrong, but that's what I believe is the solution. Forgive me if I'm wrong.
the sdcard fix was for installing apps on the device. mounting it as a sdcard on ur pc is still an issue within the os. reboot to twrp and mount SD card to transfer files.
Sent from my HTC Glacier using xda premium

p-3113 Swap ExternalSDCard 2 Internal

Here's a script I modified originally its a script written by mattiadj so I gotta give him props
Here's his thread its for the Galaxy S III I think - http://forum.xda-developers.com/showthread.php?t=1772234
This will make your external SDcard as Internal and your Internal SDCard external
It mounts data/media to your extSdcard
Please make a backup before you do this, just in case.
Let me know if you have any problems
1. Anyway.. you will need to place this script in your /data folder (Yes you need to be rooted)
2. Next use ES file manager and give it 777 permission (For the non-linux users, that's full permission on it, Read, write, execute for just user)
-----------------to do this with ES file manager just press and hold down on the file and look at its properties. At the bottom you can see Permissions, hit the Change button and check-mark everything for user
3. Use Smamager (Download it if you dont have it, ... .its free) and goto the script file and open as script/execute, then when it opens choose "Is executable" and then click "Su" & "Boot". Click "Save".
4. Reboot and enjoy.
To go back to the normal setup just delete the script or open it back up in smanager and clear the SU & Boot options.
In order for some apps to function properly you will have to copy some folders from your old internal sdcard to your "New" one.
For example.. aptoide wouldnt work until the aptoide repos folder was copied over. If you want you can just copy over everything to be safe. I on the other hand just picked and chose what I needed
xalien8dx said:
2. Next use ES file manager and give it 777 permission (For the non-linux users, that's full permission on it, Read, write, execute for everyone)
-----------------to do this with ES file manager just press and hold down on the file and look at its properties. At the bottom you can see Permissions, hit the Change button and check-mark everything
Click to expand...
Click to collapse
IMO, this is terrible advice. The script is probably getting run as root, and you're opening it up to be written by anyone. Imagine if malware edited the script? Think of what malware could do if it had root access...
Sent from my Galaxy Tab 2
imnuts said:
IMO, this is terrible advice. The script is probably getting run as root, and you're opening it up to be written by anyone. Imagine if malware edited the script? Think of what malware could do if it had root access...
Sent from my Galaxy Tab 2
Click to expand...
Click to collapse
Changed it to just user read, write, execute..
thanks
So, after this what happens to the internal SdCard. Does it, or is it still being used, and if so for what...?
^ same ? and has anyone tested this and is it safe?
All this is is a modded script from mattiadj. It was written for the GS3, so I changed it to work on the 3113 tablet
Here is what it does quoted from mattiadj
My aim was to use the external sd as internal sd and the original internal sd ONLY for apps installation.
So now my 64gb external sd is used for all tasks which the internal sd was used and the original internal sd is only used for apps storage!! All extra files (resources, caches, etc etc) are stored in my external SD, which is now mounted as internal
Click to expand...
Click to collapse
The original internal sdcard is mounted by default from the system as /data/media as well as /sdcard and mnt/sdcard
so with this script it puts data/media as extSDCard and /sdcard and /mnt/sdcard are mounted to the original external SDcard
you can still access the internal SDcard from data/media or /extSDCard or mnt/extSDcard
my code
Code:
sleep 5
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:25 /mnt/sdcard
sleep 5
mount -o bind /data/media /mnt/extSdCard
this can be easily modified to work on other systems.
Hope this helps,
N8
Tried this out last night. For me it works only if run manually... After reboot, I get long "checking SD for errors" and when it actually mounts SD it gets mounted twice- as both internal sdcard and extSdCard.
Sent from my GT-P3100 using Tapatalk 2
I ran this with SCript Manager (Play Store) and it works great on my p3113. My External SD card was mounted as internal and my Internal Memory was mounted as ExternalSDcard. I am going to love having this script!
If your having problems with it mounting as your internal and external try unmounting/remounting your external card in settings under storage. Or if your skilled enough try changing the second sleep value in the script to a higher number like 10 that should fix it
Works famously. For the apps that have issues just clear data under settings and it seems to be golden.
Sent from my GT-P3113 using xda app-developers app
I haven't done anything quite like this before but I have a use in mind. My GPS program, Sygic, puts the mapset on the internal sd card. Just the Western USA states are 500 mb If I get this running, and have Sygic do it's normal install, will the mapset to to the 32 GB MicroSD card that I have?
king200 said:
I haven't done anything quite like this before but I have a use in mind. My GPS program, Sygic, puts the mapset on the internal sd card. Just the Western USA states are 500 mb If I get this running, and have Sygic do it's normal install, will the mapset to to the 32 GB MicroSD card that I have?
Click to expand...
Click to collapse
It should. For example, I use Amazon MP3 and when I downloaded a song before they went to the internal card. Now they are stored on the external. The device reads your external as though it is the internal.
Sent from my GT-P3113 using xda app-developers app
so is there Anyway on how to force this to start on boot?
Sent from my GT-P3113 using xda app-developers app
kdog48 said:
so is there Anyway on how to force this to start on boot?
Sent from my GT-P3113 using xda app-developers app
Click to expand...
Click to collapse
Yes
in script manager choose su and boot. If you follow the first post it will execute on boot. Or if you have a rom with init.d support place this script in your /etc/init.d folder, I dont have a rom with init.d support so I dont know if that would work but it should. If someone could test this and let me know I would appreciate it. Im not sure if you still have to set permissions to execute on it.
Well I've had problems downloading certain apps to SD it says insufficient memory delete 0mb of data so I actually will just manually use it haha
Sent from my GT-P3113 using xda app-developers app
Working 100% using a 32GB memory card! thanks for this!
hi guys
is applicable to 2 10.1 GalaxyTab P5100?
requires Android 4.1.1 or 4.0.4. ?
Thank you.
If this works, I will name my next born child after you!
Anyway, I would like to know if this will work on Cyangenmod 9.0.0? Or will it only work on the stock rom. I have my old stock rom of 4.0.4 saved if I need to go back... because I will if this works.
does root explorer have the 'su boot' option? never used it to run scripts...:silly:
I already used the thank link... but stilll thank you so, so much! I just recently got my 8gb 3113... needless to say, I REALLY needed some space. If any, it was a good lesson for me to definitely choose the 16GB Nexus 4.
MadDogE134 said:
does root explorer have the 'su boot' option? never used it to run scripts...:silly:
Click to expand...
Click to collapse
It's from SManager.

[Q] [PA 3.99] Enable USB mass storage instead of MTP?

Hello,
Is there a way to enable USB Mass Storage on Paranoid Android 3.99? I know it will supposedly prevent the phone from accessing the virtual sdcard partition while plugged to a computer, but this would be a minor annoyance in comparison to the complete pain in the ass that is MTP:
1. Transfers are slow and unreliable (stopping unexpectedly...)
2. It can only perform one task at a time (can't browse folders while copying files for example)
3. Poor implementation on Windows (Explorer keeps asking stupid questions like "are you sure this type of file will be recognized by your device?")
4. Computers with restricted user rights prevent MTP devices from installing.
and so on...
I've tried the following trick:
Code:
su
setprop persist.sys.usb.config mass_storage
reboot
But it didn't work.
Please help. I know it may require a lot of effort but I don't care: MTP is really too much of an annoyance.
No you cannot mount the sdcard as usb mass storage
In order to do that the sdcard has to be it's own fat partition.
On the nexus 4 it is part of the data partition and the folder is fused to the sdcard mount point.
Basically meaning that you can't mount /sdcard because it's not able to be mounted as it's not actually a partition.
And secondly the format is ext4 so even if you could mount it, it would not be readable by Windows
Sent from my Nexus 4 using xda app-developers app
Alex240188 said:
No you cannot mount the sdcard as usb mass storage
In order to do that the sdcard has to be it's own fat partition.
On the nexus 4 it is part of the data partition and the folder is fused to the sdcard mount point.
Basically meaning that you can't mount /sdcard because it's not able to be mounted as it's not actually a partition.
And secondly the format is ext4 so even if you could mount it, it would not be readable by Windows
Click to expand...
Click to collapse
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
CutterX said:
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
Click to expand...
Click to collapse
According to this article that should work.
http://www.engadget.com/2011/11/21/ice-cream-sandwich-supports-usb-mass-storage-after-all-galaxy-n/
Swyped from my Nexus 4 using Tapatalk 4
CutterX said:
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
Click to expand...
Click to collapse
It would work. However doing that is not an easy task.
It would require;
1. Changing the partition table on the phone.
2. Rewriting the bootloader (not 100% sure on this one, but it would be needed to flash any rom from the bootloader (stock)).
3. Rewriting a recovery to support the new partition.
4. Finally making the changes to the rom to support ums mounting.
Sent from my Nexus 4 using xda app-developers app
It looks like this would be something in relatively high demand. So I've been trying to get Android/vold to mount and recognize a vfat image as an sdcard but haven't had any success. It might be easier to work with if I killed off the fuse mount to start, but I'm not really looking to do that right now. Manually mounting the image isn't a problem (busybox mount or using losetup first to establish the loop) but without Android recognizing it, there's no chance of being able to use usb mass storage.
Of course the inherent issue will then be "lost" space with regards to the internal storage, since it'd be dedicated to the "sdcard". It seems most users would be fine with this, setting aside a gig or two.

mount folder from external sdcard in internal sdcard

hi,
some apps store there data on the internal sdcard without the possibility to change the folder. i'be tried the app foldermount and could mount some foldern from the external sdcard to the internal sdcard, so the apps don't know that there store there data on /storage/sdcard1. but how can i do this without an extra app? i now that i can start scripts after android start. so i've tried this in terminal emulator
Code:
mount -o bind /storage/sdcard1/folder /storage/sdcard0/folder
but it doesn't work: "mount: Operation not permitted". how can i do this?
i use stock 4.4.2 (rooted)
gene
You missed su at the beginning of your command
Sent from my Xperia Z2 using Tapatalk
yes, thanks.
but now there is the error "bad option". whats that?
gene2 said:
yes, thanks.
but now there is the error "bad option". whats that?
Click to expand...
Click to collapse
I am using GL2SD app for that purpose. all the games data is in my sd card.
Not too sure what you are up to, but would symlinking work?
Sent from my D6503 using XDA Free mobile app
Maybe, but i think the extsd is fat32 and i'm not sure android can use ext formated sdcards. Fat32 doesn't support symbolic links.
I don't understand what 'bad option' mean.
I use Folder Mount for this purpose. It can move anything (per app obb/data)to external. Try it. if you like it... buy it (3 links max in free version)
Does require root though!
At the moment i use it too. but this is an extra app i have to install. Mounting with script should be the better way - but it doesnt work.

Internal storages Swap. HOW ?

Hi,
i have two identical NC devices [ from the outside], but
here are the difference in the inside:
#first:
- internal storage for the apps that can't be unmounted have 0.9GB
- internal storage for the user data that can be unmounter/remounted have 5GB
#second:
- internal storage for the apps that can't be unmounted have 4.9GB
- internal storage for the user data that can be unmounter/remounted have 1GB
and i want to change #second NC internal storage to look/work as onthe #first
i read and tried this:
- changing from this
/devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1 auto auto defaults voldmanaged=sdcard1:auto,noemulatedsd
/devices/platform/omap/omap_hsmmc.1/mmc_host/mmc0 auto vfat defaults voldmanaged=sdcard0:8,nonremovable
to this:
/devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1 auto auto defaults voldmanaged=sdcard0:auto
/devices/platform/omap/omap_hsmmc.1/mmc_host/mmc0 auto auto defaults voldmanaged=sdcard1:8
Also fstab.encore are identical on both devices.
but does not helped.
Can anyone help with this or point to the right dirrection ?
Thanks
The issue is that BN changed the internal partitioning sizes for the newer Nook Colors. Dean Gibson developed a set of tools to repartition the newer nooks back to the original sizes if desired. See this thread:
http://forum.xda-developers.com/showthread.php?p=14101197
Sent from my BN NookHD+ using XDA Premium HD app
Yes,
i just found this thread, but
repartitioning files does not installs [ got cwm error] and
i looking to make usb adb cwm setup and
try do this manually.
It's good that i can resize but, have issue with Cwm adb setup on win 8.1 x64
purenoise said:
Yes,
i just found this thread, but
repartitioning files does not installs [ got cwm error] and
i looking to make usb adb cwm setup and
try do this manually.
It's good that i can resize but, have issue with Cwm adb setup on win 8.1 x64
Click to expand...
Click to collapse
You are using too new of a CWM it must be older than v6045. You can find one on my Nook Color Tips thread.
Sent from my BN NookHD+ using XDA Premium HD app
Managed to manually resize partitions.
Will try with older CWM, but is it possible to make .zip for newer CWM ?
purenoise said:
Managed to manually resize partitions.
Will try with older CWM, but is it possible to make .zip for newer CWM ?
Click to expand...
Click to collapse
No, it takes a little effort to change files and make sure they work. Not worth to me the extra effort when it can be flashed with the older CWM.
Sent from my BN NookHD+ using XDA Premium HD app
Tried your CWM-6.0.1.2-bootable_SD & CWM-5.5.0.4-bootable_SD:
- it boot CWM but then not mount Sdcard even manually
Suggestions ?
purenoise said:
Tried your CWM-6.0.1.2-bootable_SD & CWM-5.5.0.4-bootable_SD:
- it boot CWM but then not mount Sdcard even manually
Suggestions ?
Click to expand...
Click to collapse
You mean when you say install zip from SD it says it will not mount?
Sent from my SCH-i705 using XDA Premium HD app
leapinlar said:
You mean when you say install zip from SD it says it will not mount?
Sent from my SCH-i705 using XDA Premium HD app
Click to expand...
Click to collapse
Yes, gives me an error that there is no SD, but
was booted from SD with your CWMs.
And can't mount in 'Mounts and...' - same error
CWM-based Recovery v6.0.1.2
E:Can't mount /sdcard/
Error mounting /sdcard!
SOLVER - WORKS:
- just reflashed CWM-6.0.1.2-bootable_SD.img
Thanks.
RePartitioning
So i can repartition other devices
[ i know, not with this files]
just i need to know what partitions is to safe resizeable ?
purenoise said:
So i can repartition other devices
[ i know, not with this files]
just i need to know what partitions is to safe resizeable ?
Click to expand...
Click to collapse
Each device uses different partition structures so there is not an easy answer for this. And on top of that most newer devices do not use the DOS partition structure like the PC and the Nook Color does. Therefore fdisk will not work on them. They use a newer structure called GPT that is more robust than the DOS structure. And you must use the tool gdisk.
Sent from my BN NookHD+ using XDA Premium HD app

Categories

Resources