Mounting / and /system - General Questions and Answers

What's the command to mount rw and ro AND /system like ES File Explorer does? And are there other directories that can be mounted as rw/ro?
Because I see in CWM Recovery there's mount options for /cache and /data and /sdcard as well. What happens when you mount those? Do they get mounted as rw or something else?
Also on the galaxy nexus and other phones which have internal storage, does mounting sdcard have any effect?

And I also would like to create init.d scripts and "shortcut" scripts like sysro and sysrw in /system/bin?

Anyone?

Mounting is nothing like getting into it and copy or paste something.
While in cwm it mounts sdcard becoz the rop or any file.zip will be used there.
It mounts system becoz few things must be replaced while flashing there.
It mounts data to paste data u need which will be in file.zip from sdcard.
................................................................................................
---------- Post added at 12:04 AM ---------- Previous post was at 12:03 AM ----------
No problem from mounting, it after all work umounts on its own.
................................................................................................
---------- Post added at 12:06 AM ---------- Previous post was at 12:04 AM ----------
Create init.d at system/etc/init.d folder:thumbup::thumbup::thumbup:
................................................................................................

Thanks! So how would you mount /system and / as read/writable at each boot? What stuff to put in the script?

mount("MTD", "system", "/system" );
mount("MTD", "userdata", "/data" );
Hit this in updater script.
Hit thanks on my post
................................................................................................
---------- Post added at 10:57 PM ---------- Previous post was at 10:55 PM ----------
Or else try downloading any sample meta-inf and edith it...:thumbup:
................................................................................................

Related

[Q] Error unmounting system

i rooted my stock sk4g with superoneclick and got cwm as well. When i tried to install the ics rom i check my mounts and it said unmount cache, mount sdcard, mount sd-ext, unmount system when i clicked unmout system it says error unmounting system. Does anyone know how to help?
yeah. if you flashed cwm through rom manager, that is most likely the reason you are having problems. flashing cwm through rom manager creates a bad update.zip file on your sd card, which causes cwm to have limited functionality. head over to the sk4g dev section and find a thread about cwm for the sk4g, titled something like cwm for the sk4g. enjoy! in the first post of that thread, you will find detailed instructions on installing cwm properly, as well as an update.zip file that you can download to replace the update.zip file on your sd card. save that update.zip file to your default downlaod location. go to the root of your sd card and delete the update.zip file that you find there. then move the other update.zip to the root of your sd card. after that, you should be set.
---------- Post added at 01:28 AM ---------- Previous post was at 01:25 AM ----------
please remember to thank me if what i said is helpful. i would really appreciate it.

[Q] How to mount second primary partition in android

hi
i created a second ext3 primary partition of my sdcard for link2sd
i wanna ask that how can i mount the second ext3 partition on my android device to store my data on it.
second partition name is sd-ext
my phone:-
samsung galaxy s duos GT-S7562
rooted- yes
Same question here...
No answer as well.
---------- Post added at 11:23 AM ---------- Previous post was at 10:47 AM ----------
And if it helps on something, here it is what i'm trying to achieve:
http://forum.xda-developers.com/showthread.php?t=2227471

Link2SD : Mount Script error after removing memory card

Hi,
I had created a ext2 partition on my HTC Explorer and was using Link2SD to link files to it.
I removed the card while my phone was on .
Now i am getting the error :
Code:
Mount Script cannot be created.
mount: Invalid argument
ext2 may not be supported on your device.Try FAT32 on the second partition.
Pls help
AlbusDumbelodr said:
Hi,
I had created a ext2 partition on my HTC Explorer and was using Link2SD to link files to it.
I removed the card while my phone was on .
Now i am getting the error :
Code:
Mount Script cannot be created.
mount: Invalid argument
ext2 may not be supported on your device.Try FAT32 on the second partition.
Pls help
Click to expand...
Click to collapse
Please pm moderators to move this thread in Q&A
Sent from my HTC Powered with Minimilised ROM
if you are on stock rom follow these instrcutions:
http://androidgamingcentre.blogspot.in/2013/01/trick-how-to-increase-internal-memory.html
---------- Post added at 10:35 PM ---------- Previous post was at 10:34 PM ----------
AlbusDumbelodr said:
Hi,
I had created a ext2 partition on my HTC Explorer and was using Link2SD to link files to it.
I removed the card while my phone was on .
Now i am getting the error :
Code:
Mount Script cannot be created.
mount: Invalid argument
ext2 may not be supported on your device.Try FAT32 on the second partition.
Pls help
Click to expand...
Click to collapse
if you are on stock rom follow these instrcutions:
http://androidgamingcentre.blogspot.in/2013/01/trick-how-to-increase-internal-memory.html
Saumitra Yadav said:
if you are on stock rom follow these instrcutions:
http://androidgamingcentre.blogspot.in/2013/01/trick-how-to-increase-internal-memory.html
---------- Post added at 10:35 PM ---------- Previous post was at 10:34 PM ----------
if you are on stock rom follow these instrcutions:
http://androidgamingcentre.blogspot.in/2013/01/trick-how-to-increase-internal-memory.html
Click to expand...
Click to collapse
I am using cm9.1
the problem is this was working fine before i removed the memory card

HTC One S C2 Help needed

Hey guys, I really need help with my One S after i installed the ViperS rom i wanted to boot it and i only get to the HTC Screen with the Dev Information and then I get a Black screen, Like it's Powered off. I am really thankful for every answer
I think ur phone is bricked!
Try to follow the steps that im telling u
Reboot in twrp or cwm recovery
Format
/system
/data
/cache
Remount system,data,cache
Now install the rom
Remount system,data,cache again
Reboot
If u still fail flash stock rom
Sent from my GT-S5830i using XDA Free mobile app
---------- Post added at 09:58 PM ---------- Previous post was at 09:55 PM ----------
First of all
Go to clockworkmod or twrp recovery
Go to mounts and storage
Format /system
/data
/cache
Now in mounts and storage remount system,data,cache
Go back flash rom
Again remount data,system,
cache
Reboot
U r done!
If u still face problem then flash stock rom
Give thanks if i helped u
Sent from my GT-S5830i using XDA Free mobile app

Corrupted superblock of the 'android_meta' sdcard partition

Hello there,
With no reason, my phone rebooted by itself yesterday and since that, it can't read the sdcard. So I plugged the sdcard to my linux computer to check what's wrong and it seems there is an error with the 16MB 'android_meta' partition:
Code:
fsck -v /dev/sdb1
fsck from util-linux 2.29.2
e2fsck 1.43.4 (31-Jan-2017)
Error reading block 7372800 (Invalid argument). Ignore error<y>? yes
Force rewrite<y>? yes
Superblock has an invalid journal (inode 8).
Clear<y>? yes
*** journal has been deleted ***
Superblock has_journal flag is clear, but a journal is present.
Clear<y>? yes
The filesystem size (according to the superblock) is 15273728 blocks
The physical size of the device is 4096 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes
Error writing block 7372800 (Invalid argument). Ignore error<y>? yes
SDCARD: ***** FILE SYSTEM WAS MODIFIED *****
Of course, I'm not 100% sure the error with the sdcard comes from this bad superblock or even from this partition but it's my only clue. So I tried a couple of things but I can't find how to rewrite/correct the superblock and/or the partition table.
Any ideas? It could works to overwrite the whole 'android_meta' partition from a standard dump or something with dd, or there are too specific data on it? My goal is to keep my data safe and so the 'android_expand' partition.
I don't know if it helps, but I'm using Android 6.0 with an encrypted sdcard used as internal storage.
Thank you very much. Have a great day!
up #mylastchance
mount-t f2fs /dev/mapper/crypt1 /mnt/1
---------- Post added at 01:50 AM ---------- Previous post was at 01:46 AM ----------
p1e2d3 said:
mount-t f2fs /dev/mapper/crypt1 /mnt/1
Click to expand...
Click to collapse
Look after that command in google and you will find a web with the answer. It is in spanish
I don't know how to use it.
---------- Post added at 02:03 AM ---------- Previous post was at 01:50 AM ----------
p1e2d3 said:
mount-t f2fs /dev/mapper/crypt1 /mnt/1
---------- Post added at 01:50 AM ---------- Previous post was at 01:46 AM ----------
Look after that command in google and you will find a web with the answer. It is in spanish
I don't know how to use it.
Click to expand...
Click to collapse
Para tratar de acceder a la tarjeta micro sd de almacenamiento interno de android 6
memory internal micro sd Android 6
h0m said:
Hello there,
With no reason, my phone rebooted by itself yesterday and since that, it can't read the sdcard. So I plugged the sdcard to my linux computer to check what's wrong and it seems there is an error with the 16MB 'android_meta' partition:
Of course, I'm not 100% sure the error with the sdcard comes from this bad superblock or even from this partition but it's my only clue. So I tried a couple of things but I can't find how to rewrite/correct the superblock and/or the partition table.
Any ideas? It could works to overwrite the whole 'android_meta' partition from a standard dump or something with dd, or there are too specific data on it? My goal is to keep my data safe and so the 'android_expand' partition.
I don't know if it helps, but I'm using Android 6.0 with an encrypted sdcard used as internal storage.
Thank you very much. Have a great day!
Click to expand...
Click to collapse
If you have windows you can do a check disk
Do a check disk (dont format) just run a disk check
Or in a Linux distro use run gparted application
Then go to the desired disk and do a check by right clicking on partition then choose check
Idk if this might help or not but
fsck -a /dev/yyy where y's varies from PC to another check it by doing
fsck -l if you are not sure

Categories

Resources