2022 Developer Survey is open! Take survey.
35 votes

How can I view the Android internal partition table?

I usually use a combination of the following 4 commands and correlate them, since each of these commands gives a piece of the information that might be needed. Summarily: Using df lists the ...
user avatar
  • 1,033
21 votes
Accepted

Resize /system partition of Galaxy S 2

Firstly and most important, the credits: I made this following this great tutorial at XDA-Developers by user metalgearhathaway: http://forum.xda-developers.com/galaxy-s2/development-derivatives/mod-...
user avatar
13 votes
Accepted

Why are superuser permissions needed to acess /data partition?

First to clarify only root (UID 0) isn't enough to get access to /data at least since Android 5. Discretionary Access Control based on traditional UNIX UIDs/GIDs alone doesn't fulfill the needs of ...
user avatar
  • 17.5k
10 votes

Resize /system partition of Galaxy S 2

Kudos to @Bruno for a detailed solution and needed files. A much quicker method is listed below, which does not require installing any ROM/Gapps or reboot into the ROM in between steps. You need an ...
user avatar
  • 201
8 votes

What special privileges "/system/xbin/su" does have w.r.t. root access?

Since Android is based on Linux kernel, getting root access by executing /system/xbin/su - like one can do on a Linux system - used to work in good old days but not now. The story is a bit twisted. ...
user avatar
  • 17.5k
7 votes

How can I view the Android internal partition table?

Old thread but found something nobody else has mentioned... just in case anyone finds it useful. ls -la /dev/block/bootdevice/by-name The directory contains named symlinks to all the partitons.
user avatar
7 votes
Accepted

How to list all major partitions with their labels?

As existing answers already show, there seems to be no "unique way" to achieve that. So I started combining ideas from allover, joining them into a script (or rather a "script library") to have them ...
user avatar
  • 88.9k
7 votes
Accepted

Can we explains android terms with its analog with PC

Can we explains android terms with its analog with PC[?] We can try but it will restrict the expansion of our understanding since certain parts would never fit the analogy we're familiar in with ...
7 votes

Why is there no option to choose size in TWRP's resize partition feature?

First to clarify, Resize Partition is different than Resize File System, TWRP provides latter option. It resizes the ext2/3/4 filesystem to the size of partition it's created on. Filesystem size can ...
user avatar
  • 17.5k
7 votes
Accepted

Why do partitions get unmounted automatically after some time?

SHORT ANSWER Go to Magisk Settings and set Mount Namespace Mode to Global once for all. In SuperSU app, disable Mount Namespace Separation. OR For one time solution, use this command instead: ~$ su -...
user avatar
  • 17.5k
7 votes
Accepted

How to take full image backup of partitions or eMMC?

Yes you can boot in TWRP if bootloader is unlocked: fastboot boot /path/to/twrp.img Then you can simply dd whole eMMC or individual partitions. You need some extra memory (on external SD card) to ...
user avatar
  • 17.5k
7 votes
Accepted

How many mmcblk devices is normal?

There is nothing abnormal in this case. They is only one device in the first preformatted text, which is /dev/block/mmcblk0 (just like /dev/sda in Linux distros). The rest are the partitions within ...
user avatar
  • 23.3k
6 votes

Inconsistent UIDS and wiping a data partition

Titanium Backup users can also go to the batch actions and select manipulate data > remove orphaned files. As user48823 mentioned, you can also find the apps in /data/system/uiderrors.txt using a ...
user avatar
  • 61
6 votes

How can I view the Android internal partition table?

You can use fdisk via busybox on a droid. So, assuming you have the busybox binary on your rom, and it's on your path, the command would simply be: busybox fdisk [the various fdisk options...] ...
user avatar
  • 161
5 votes

Why is checking Android filesystem possibly harmful?

It's even riskier than cybersam says. You shouldn't check/repair a mounted filesystem (i.e. when it is in use), on any operating system, because programs might be using the files while you're checking ...
user avatar
  • 34.3k
5 votes

How to restore an image of android partition from my linux PC

I had this problem trying to push back a backup of my Samsung Galaxy S2, using ADB with the CWM (clockworkmod) recovery tool. When pushing to a device file, ADB simply deletes the block device file ...
user avatar
  • 151
5 votes

Resizing the /data partition (rooted)

As GiantTree correctly pointed out, That not mounted space might be something the device uses in something like an emergency mode to restore the device. More precisely: it not only might be, but it is....
user avatar
  • 88.9k
5 votes
Accepted

What is rootfs? Can I make persistent changes to my device's root filesystem?

What is rootfs? It's an initramfs. Basically, it's a prepopulated RAM drive. It's prepopulated with some content at boot time, usually from a cpio archive which has been compiled into the kernel. ...
5 votes

Do most Android device use GPT as their partitioning scheme?

If i'm not wrong, GPT is pretty common. Its pretty advanced format than MBR. On my Kitkat they have 36 partitions. GPT have features like backup partition table and naming/flag, supports larger disk ...
user avatar
5 votes
Accepted

How to run "parted" command in terminal emulator on my android smartphone

Note: This is applicable to Qualcomm SoC with eMMC (block device accessible through FTL). Not tested on MTK or other chipsets (paths may differ) or the devices with raw NAND/MTD memory. PARTED How ...
user avatar
  • 17.5k
5 votes
Accepted

Where is the baseband firmware stored and how does Android interact with it?

Is the firmware really stored in another eMMC than the Android firmware? No. Baseband firmware, kernel and userspace Android are all stored on the same eMMC (there might be some exception but I don't ...
user avatar
  • 17.5k
4 votes

Resize /system partition of Galaxy S 2

In my case, I needed a cross-platform solution since I use Linux. Here's what worked for me: Back everything up. This will wipe everything on the phone, including the internal SD card. Download: A ...
user avatar
  • 2,372
4 votes

FastBoot recovery failed: partition 'recovery' not support flash

Looks like this phone does not support flashing partitions via the fastboot utility. According to this guide you will first need to root the phone by following the instructions from here: ...
user avatar
  • 19.3k
4 votes

How to list all major partitions with their labels?

I stumbled upon this question. I like a challenge... Tools that I used: BusyBox I've come up with 3 commands (one you listed) to give some info about the partitions busybox ls -QAl --color=never /...
user avatar
  • 22.5k
4 votes

Link2SD error- "mount: Operation not supported on transparent endpoint"

Try with an ext4 partition. From www.link2sd.info/faq. I had the same issue and this fixed it.
user avatar
  • 141
4 votes
Accepted

Folder in root directory (/) gets automatically deleted after reboot

The / (root) directory is not a persistent filesystem on Android. It's a initramfs, which is packed into the boot image on your device. Although you can remount it with write permissions, changes will ...
user avatar
  • 36.4k
4 votes
Accepted

Editing fstab to mount /data from a different partition

As you already expected, the way your question is phrased it looks like an XY problem: There are different ways to achieve your goal (mounting /data, /cache etc. from a different partition), while ...
user avatar
  • 88.9k
4 votes
Accepted

How to resize the /data F2FS partition

As of today (May 30, 2016), the F2FS file system doesn't support shrinking. If it does by the time someone reads this, just let me know in the comments. The solution is then to delete and re-create ...
user avatar
  • 404
4 votes
Accepted

It's there a way to get /system partition permanent read/write access even after reboot?

You don't need to make /system permanently R/W. You just need to mount it as R/W at every boot. So I'm providing you with a few options to mount /system as R/W at boot automatically, but do note that ...
user avatar
  • 7,294
4 votes

Wipe system partition

You should. That is a "clean flash" and is normally recommended in installation instructions. This ensures that the ROM is written on a clean slate At times, like in the case of "nightly" ROMs or ...
user avatar
  • 37.7k

Only top scored, non community-wiki answers of a minimum length are eligible