How to check file system integrity? - General Questions and Answers

Hi All,
I apologize if this is a dumb question, but I'm new to modifying Android stuff.
Today I tried out using adb running on Puppy Linux to disable some apps on my new phone. It mounted the phone fine and I was able to issue the commands I found in the tutorial to disable certain apps. However, I forgot to unmount the phone before unplugging it and Puppy Linux threw up a scary looking message about how disconnecting without unmounting can cause file system corruption on the phone.
Is this something I should be concerned about or is the warning dialogue overstating the danger? Is there a way to check file system integrity on Android phones?
Thanks for any help!

Mounting partions that by default are RO ( testing state , for example /system ) as RW ( production state ) and afterwards not remounting them back as RO leaves a security whole, nothing else.

jwoegerbauer said:
Mounting partions that by default are RO ( testing state , for example /system ) as RW ( production state ) and afterwards not remounting them back as RO leaves a security whole, nothing else.
Click to expand...
Click to collapse
is that the same with usb external HDDs?

entwicklun said:
is that the same with usb external HDDs?
Click to expand...
Click to collapse
System critical partitions by default always are mounted as RO.

jwoegerbauer said:
Mounting partions that by default are RO ( testing state , for example /system ) as RW ( production state ) and afterwards not remounting them back as RO leaves a security whole, nothing else.
Click to expand...
Click to collapse
I apologize for the slow reply. Thank you very much for your response. I forgot to mention that I also copied a few files from my computer to my phone (after running adb) before disconnecting without unmounting. Does copying the files introduce the risk of corrupting the file system or is it still a non concern like you mentioned above?

ryan735 said:
I apologize for the slow reply. Thank you very much for your response. I forgot to mention that I also copied a few files from my computer to my phone (after running adb) before disconnecting without unmounting. Does copying the files introduce the risk of corrupting the file system or is it still a non concern like you mentioned above?
Click to expand...
Click to collapse
If you copied the files to system critical sections of Android OS like /system partition then it might be possible Android OS got corrupted, but an Android partition's file system - what can be thought of as an index or database containing the physical location of every piece of data on the related storage memory - itself never gets corrupted by such an action.

jwoegerbauer said:
System critical partitions by default always are mounted as RO.
Click to expand...
Click to collapse
alittle paraphrasing and human synergistics/adapting would have been helpful.... soz for being sh!t.

entwicklun said:
alittle paraphrasing and human synergistics/adapting would have been helpful.... soz for being sh!t.
Click to expand...
Click to collapse
ROFL

jwoegerbauer said:
If you copied the files to system critical sections of Android OS like /system partition then it might be possible Android OS got corrupted, but an Android partition's file system - what can be thought of as an index or database containing the physical location of every piece of data on the related storage memory - itself never gets corrupted by such an action.
Click to expand...
Click to collapse
Thank you very much. I copied an apk file over to the 'Downloads' directory in order to install it (it isn't available in the Play Store for my country). It sounds like that should be safe as I don't think that would be considered a system critical portion of the OS, right?
Thank you again. I appreciate your help and explanations. It looks like there's no need to worry in this particular situation, but I will make sure to unmount the phone before disconnecting in the future.

ryan735 said:
I copied an apk file over to the 'Downloads' directory in order to install it (it isn't available in the Play Store for my country). It sounds like that should be safe as I don't think that would be considered a system critical portion of the OS, right?
Click to expand...
Click to collapse
You got it.

Related

How to write file / folder to internal memory on rooted Android device

Hello,
I tried with root explorer, all seems ok, but after reboot created files and folders in internal memory disappear.
Where on the Internal Memory are you placing them? If their in / they will disappear when the phone reboots because the root filesystem is actually a ramdisk with /system, /data and /cache mounted on them and symlinked to fit. (I believe.)
i see so ... i want to write some files in /data/data/com_adobe_flashplayer/lib/ as wrote here http://forum.xda-developers.com/showthread.php?t=1359506 but after reboot they are gone
UN.TIGRU.NET said:
i see so ... i want to write some files in /data/data/com_adobe_flashplayer/lib/ as wrote here http://forum.xda-developers.com/showthread.php?t=1359506 but after reboot they are gone
Click to expand...
Click to collapse
That's because the package for "com_adobe_flashplayer" doesn't exist. It seems that the path might have gotten changed by the board for looking to much like a URL. Replace the underscores with periods and you should be good to go. Sorry it took so long to get back to you.
Hope I solved your problem
Alternatively, the post you linked contains a update you can flash through recovery that should fix your problem easily.

[Q] Resize internal partitions

Hi,
This has been asked many times before with no real solution that applies to different devices.
I'm running out of space on my /system partition and can't install any more apps even though I don't have that many installed.
I want a way to re-size the Android partitions manually to whatever size I want. Or just delete all current partitions and create new ones.
How do I do that? Is there any GUI partitioning tools similar to the ones available for Windows?
I don't want to move files from /system to another partition. I want to change the partition size.
My current /system partition:
For what reason are you moving apps to /system? You can't install them there, you have to push/move them there, installs go to /data. So keep them in /data, where they're installed by default. You have tons of space available there.
Partition table (start addresses and sizes) is hard-coded in bootloader, and can be redefined in kernel boot parameters (in this case recovery needs to be recompiled with the same parameters too, otherwise it won't write to the same partitions the kernel will read from). You're welcome to hack any of those. As you could probably understand from this paragraph, I wouldn't expect having GUI tools for that.
Thanks for the reply.
I'm not trying to move apps to /system. I thought apps are installed there by default because every time I try to install a new app it gives me an error message saying that there is not enough space on /system.
Now I know that apps are not installed in /system.
I just need more space in /system so I can install new apps without any errors.
What can I do to get more space on /system partition? Can I replace the bootloader?
I don't have any Android programming experience. I probably need something that is available out there to do the job.
In stock form, you shouldn't even have write permissions to /system. Nothing should be ever written there, and it can be 99.99999% utilized - there shouldn't be any free space left for anything, it shouldn't normally be used.
If you're getting that error when trying to install an app - you need to check what's reporting the error. It's not a "real" error, it means there's something wrong with your phone.
Try wiping cache partition from recovery...does this make any difference?
Jack is correct.
Swyped from my DesireS
refer to this
if this may help you http://forum.xda-developers.com/showthread.php?t=1959691
:highfive:
mayank88288 said:
refer to this
if this may help you http://forum.xda-developers.com/showthread.php?t=1959691
:highfive:
Click to expand...
Click to collapse
Way to bump a year old thread :thumbup:
“I'm bad and I'm going to hell, and I don't care. I'd rather be in hell than anywhere where you are. ”*―*William Faulkner

[Q] Samsung Galaxy S Duos GT-S7562

Hello!
Is there actually a way to mode Apps to SD Card without ROOT the phone? I'm new on Android system.
Thank's for the support!
Simon
Link2SD does not require root, and has a GUI, too.
Edit: ^That's not true!
Hello!
Thank you for the answer. On the description of the app it's written:
"Link2SD is an application that makes it easy for Android 1.6+ users with root privileges on their phone to move applications to the SD card."
Doesn't it mean I need a ROOTed phone? I know, could test it before to ask, but haven't the phone with me.
Thank's
Simon
Um, actually, yes. I'm not sure what I was thinking yesterday. All those *2sd methods are scripts, which are intended to execute upon startup, and tell the system to mount another partition. So, yes, you definitely need root.
post-mortem said:
Um, actually, yes. I'm not sure what I was thinking yesterday. All those *2sd methods are scripts, which are intended to execute upon startup, and tell the system to mount another partition. So, yes, you definitely need root.
Click to expand...
Click to collapse
Sorry for interrupting but did you mean that all those *2sd function will work after rooting? Because they don't work on my phone now without root.
The *2sd scripts are intended to run during the startup process, like in Windows you can set some programs to run automatically every time you start the computer. in this case, these scripts are only a couple lines, and they typically tell the system to mount a certain partition on the SD card as a folder. For example, if you move everything in /data/data to a partition on the SD card (i.e., /sd-ext/data), then mount the /sd-ext partition as /data/data, then every time the device tries to read or write to /data/data, it will actually be accessing /sd-ext/data. You need root authority to mount and unmount partitions.
post-mortem said:
The *2sd scripts are intended to run during the startup process, like in Windows you can set some programs to run automatically every time you start the computer. in this case, these scripts are only a couple lines, and they typically tell the system to mount a certain partition on the SD card as a folder. For example, if you move everything in /data/data to a partition on the SD card (i.e., /sd-ext/data), then mount the /sd-ext partition as /data/data, then every time the device tries to read or write to /data/data, it will actually be accessing /sd-ext/data. You need root authority to mount and unmount partitions.
Click to expand...
Click to collapse
Thanks, I'll try to do this way...
Can you tell me the exact folder which I have to redact, please.
Hii
I need clear answer and solution...
I. Is it dose all *2sd need root or no.. cause as above people said it's not working ??
II. If it's possible without root please share the app name or the steps to do that simply please...
Sent from my GT-S7562 using xda app-developers app
about kyle open rom
hi all,
This is my first post.
I am using galaxy s duos s7562(india) from last 7 months. i tried to install kyle open rom updated v2.0 to my mobile but it shows network issues. installed perfectly but only network issues i faced. In installation process cheatman said that first install XXALJ4 as base ROM, but i am not able to find that rom for my country. Please solve my issue. Thanks in advance

[Q] What does Mounting System, Data and Cache mean?

I am a newbie into this rooting and upgrading stuffs on my android phone. Iv rooted, installed custom ROMs etc etc and tinkered with my phone a lot of times. I am also a curious learner. could anyone please tell me what exactly mounting storage, mounting data or mounting cache mean. Iv mounted and unmounted them alot of times going by the guidelines provided for the specific installations. Would be nice if i actually know why i am doing it Also Kindly let me on what actions can be performed or not performed when.they are mounted/ unmounted thank you.
#wannabeDeveloper
if you want to install a custom rom, sometimes a procedure for mounting tell you, it's like you open a permission to install that rom to your device
Sorry for my bad english
Achesh97 said:
I am a newbie into this rooting and upgrading stuffs on my android phone. Iv rooted, installed custom ROMs etc etc and tinkered with my phone a lot of times. I am also a curious learner. could anyone please tell me what exactly mounting storage, mounting data or mounting cache mean. Iv mounted and unmounted them alot of times going by the guidelines provided for the specific installations. Would be nice if i actually know why i am doing it Also Kindly let me on what actions can be performed or not performed when.they are mounted/ unmounted thank you.
#wannabeDeveloper
Click to expand...
Click to collapse
Mounting is the point where you can edit the files in the folder that you mount, it similar to that of mounting drives.
Similarly there are mounting such as when you use root explorers you can mount them as read/write or read only.
A Linux user can explain you in the best way, coz they usually mount their partitions as drives to work on them.
Hit thanks rather than typing it now Free
zipperX said:
if you want to install a custom rom, sometimes a procedure for mounting tell you, it's like you open a permission to install that rom to your device
Sorry for my bad english
Click to expand...
Click to collapse
your English is fine
so everytime you have to perform an update or flashing anything, you have to make sure that all the three are mounted? rigjt?
parkourkarthik said:
Mounting is the point where you can edit the files in the folder that you mount, it similar to that of mounting drives.
Similarly there are mounting such as when you use root explorers you can mount them as read/write or read only.
A Linux user can explain you in the best way, coz they usually mount their partitions as drives to work on them.
Hit thanks rather than typing it
Click to expand...
Click to collapse
Thank You there so whenever i have to flash a zip file or particularly an update, i have to mount everything? and what should be their states before rebooting? like mounted or unmounted?
Achesh97 said:
Thank You there so whenever i have to flash a zip file or particularly an update, i have to mount everything? and what should be their states before rebooting? like mounted or unmounted?
Click to expand...
Click to collapse
No need of mounting everytime you flash.
Mostly the zip files itself contains scripts to mount your partition, they do the job theirself.
In rare cases the developer of the flashable zip file would recommend you to mount the partitions required, in those cases only you need to mount through CWM
Hit thanks rather than typing it now Free

[Q] [SOLVED] Impossible to free internal storage

I have an SD card of 64Gb and arround 20-25Gb of datas (including TWRP backup) but only 10Gb remain free. As you can see on the pictures, several Gb are missing. I have an idea of the cause, but no idea of the solution to free them.
I did a dual-boot on my tf700 to put lubuntu aside android. After using it a few months, I had some trouble and try to reinstall it ( I couldnt't syncronise zotero anymore because the version of firefox was to old and it was impossible to get a newer version without upgrading lubuntu and the upgrading of lubuntu was not working...) . As it was not working even after reinstalling lubuntu, I had to reinstall it a few times and I think that every times it occupied more space on my SD. As I'm not an expert, I decided to wipe and abandon my dual boot. I did a factory reset wipe (not including internal storage) and reinstall Cromi 5.4. I don't have the dual boot anymore, but it hasn't free the space....
The only idea I have left to free the space is to wipe also the internal storage... but as I don't think it will help (I may be wrong), I'm not very enclined to do it.
Have you any idea of how I can free this space?
Did the lubuntu installs create additional partitions?
Run ls -l /dev/block to see a list of yur partitions
berndblb said:
Did the lubuntu installs create additional partitions?
Click to expand...
Click to collapse
Unlikely, but who knows.
The other possible explanation would be that the lubuntu data is stored somewhere in /data where it is not detected by the storage settings page.
_that said:
Unlikely, but who knows.
The other possible explanation would be that the lubuntu data is stored somewhere in /data where it is not detected by the storage settings page.
Click to expand...
Click to collapse
Then a simple format of /data should bring it all back, right?
The command ls -l/dev/block indicate ls: Unkwown option '-/' . Aborting
But I installed Partition Table and it indicate that 81% (47Gb) of the memory is in /data (as in the screenshot attached)
I suppose that, as berndblb propose, I should format /data
What's the best ways to do it? With the option "format data" of TWRP ?
berndblb said:
Then a simple format of /data should bring it all back, right?
Click to expand...
Click to collapse
Yes, but this will erase *all* data. Erasing just the offending directory with a root-enabled file manager would be probably faster.
Tugende said:
The command ls -l/dev/block indicate ls: Unkwown option '-/' . Aborting
Click to expand...
Click to collapse
The space after "-l" was not just for decoration.
Tugende said:
What's the best ways to do it? With the option "format data" of TWRP ?
Click to expand...
Click to collapse
Yes. Remember that it takes a very long time (more than an hour) because it does a secure erase.
_that said:
Yes, but this will erase *all* data. Erasing just the offending directory with a root-enabled file manager would be probably faster.
The space after "-l" was not just for decoration.
Click to expand...
Click to collapse
YES! I found it. There was a folder data/media/linux with files taking space for each time I installed lubuntu. I erased it and everything is fine now!
(Sorry for the space after "-l". My eyes saw the previous one but not this one...)
Thanks very much for the help!

Categories

Resources