linux安卓挂载分区,Android分区查看

查看分区数:

# cat /proc/partitions

major minor #blocks name

179 0 30535680 mmcblk0

179 1 4096 mmcblk0p1

179 2 4096 mmcblk0p2

179 3 16384 mmcblk0p3

179 4 16384 mmcblk0p4

179 5 32768 mmcblk0p5

179 6 32768 mmcblk0p6

179 7 53248 mmcblk0p7

179 8 131072 mmcblk0p8

179 9 4096 mmcblk0p9

179 10 2097152 mmcblk0p10

179 11 4096 mmcblk0p11

179 12 30720 mmcblk0p12

179 13 16384 mmcblk0p13

179 14 65536 mmcblk0p14

179 15 28018688 mmcblk0p15

查看分区名字:

# ls -l /dev/block/mtd/by-name

lrwxrwxrwx root root 2017-11-20 10:46 backup -> /dev/block/mmcblk0p7

lrwxrwxrwx root root 2017-11-20 10:46 boot -> /dev/block/mmcblk0p5

lrwxrwxrwx root root 2017-11-20 10:46 cache -> /dev/block/mmcblk0p8

lrwxrwxrwx root root 2017-11-20 10:46 kernel -> /dev/block/mmcblk0p4

lrwxrwxrwx root root 2017-11-20 10:46 kpanic -> /dev/block/mmcblk0p9

lrwxrwxrwx root root 2017-11-20 10:46 metadata -> /dev/block/mmcblk0p11

lrwxrwxrwx root root 2017-11-20 10:46 minikernel -> /dev/block/mmcblk0p12

lrwxrwxrwx root root 2017-11-20 10:46 miniresource -> /dev/block/mmcblk0p13

lrwxrwxrwx root root 2017-11-20 10:46 misc -> /dev/block/mmcblk0p2

lrwxrwxrwx root root 2017-11-20 10:46 radical_update -> /dev/block/mmcblk0p14

lrwxrwxrwx root root 2017-11-20 10:46 recovery -> /dev/block/mmcblk0p6

lrwxrwxrwx root root 2017-11-20 10:46 resource -> /dev/block/mmcblk0p3

lrwxrwxrwx root root 2017-11-20 10:46 system -> /dev/block/mmcblk0p10

lrwxrwxrwx root root 2017-11-20 10:46 uboot -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 2017-11-20 10:46 userdata -> /dev/block/mmcblk0p15

查看分区挂载点:

# cat /proc/mounts

rootfs / rootfs ro,relatime 0 0

tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,seclabel,relatime 0 0

selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0

none /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0

tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0

tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

adb /dev/usb-ffs/adb functionfs rw,relatime 0 0

/dev/block/platform/ff0f0000.rksdmmc/by-name/system /system ext4 rw,seclabel,relatime,noauto_da_alloc,data=ordered 0 0

/dev/block/platform/ff0f0000.rksdmmc/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,discard,noauto_da_alloc,data=ordered 0 0

/dev/block/platform/ff0f0000.rksdmmc/by-name/metadata /metadata ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,discard,noauto_da_alloc 0 0

/dev/block/platform/ff0f0000.rksdmmc/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,discard,noauto_da_alloc,data=ordered 0 0

/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime,mode=755 0 0

/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

查看磁盘使用情况:

# df

Filesystem Size Used Free Blksize

/dev 1007.4M 128.0K 1007.3M 4096

/sys/fs/cgroup 1007.4M 0.0K 1007.4M 4096

/mnt/secure 1007.4M 0.0K 1007.4M 4096

/mnt/asec 1007.4M 0.0K 1007.4M 4096

/mnt/obb 1007.4M 0.0K 1007.4M 4096

/dev/usb-ffs/adb: Permission denied

/system 2.0G 784.0M 1.2G 4096

/cache 108.0M 72.0K 107.9M 4096

/metadata 3.9M 24.0K 3.8M 4096

/data 26.2G 702.9M 25.5G 4096

/mnt/shell/emulated 26.2G 802.9M 25.4G 4096

更详细的内容,可以通过recovery.img下的/etc/recovery.fstab来查看:

# Android fstab file.

#

#/dev/block/rknand_user /mnt/internal_sd vfat defaults defaults

/dev/block/mmcblk0p1 /mnt/external_sd vfat /dev/block/mmcblk0 defaults

/dev/block/rknand_system /system ext4 defaults defaults

/dev/block/rknand_cache /cache ext4 defaults defaults

/dev/block/rknand_metadata /metadata ext4 defaults defaults

/dev/block/rknand_userdata /data ext4 defaults defaults

/dev/block/rknand_cust /cust ext4 defaults defaults

/dev/block/rknand_custom /custom ext4 defaults defaults

/dev/block/rknand_radical_update /radical_update ext4 defaults defaults

misc /misc mtd defaults defaults

uboot /uboot mtd defaults defaults

charge /charge mtd defaults defaults

resource /resource mtd defaults defaults

parameter /parameter mtd defaults defaults

boot /boot mtd defaults defaults

recovery /recovery mtd defaults defaults

backup /backup mtd defaults defaults

minikernel /minikernel mtd defaults defaults

miniresource /miniresource mtd defaults defaults

你可能感兴趣的:(linux安卓挂载分区)