type 의 emmc
-> 는 row data 를 뜻함.
즉, filesystem 없이 blk 단위로 read/write 하는 partition 임.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc default recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc default recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 default recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 default wait,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 default recoveryonly
/dev/block/mmcblk1p1 /sdcard vfat default recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 default recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /modem emmc default recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/modem /mdm emmc default recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/hidden /preload ext4 default recoveryonly
struct fstab_rec {
char *blk_device;
char *mount_point;
char *fs_type;
unsigned long flags;
char *fs_options;
int fs_mgr_flags;
char *key_loc;
char *verity_loc;
long long length;
char *label;
int partnum;
int swap_prio;
unsigned int zram_size;
char *old_blk_device;
};
mount 될 partition image 들을 보면 같은 partition file 들이 여기저기에 link 되어 있는것을 볼 수 있음.
# ls -al /dev/block/platform/msm_sdcc.1/ drwxr-xr-x root root 2014-09-24 01:09 by-name drwxr-xr-x root root 2014-09-24 01:09 by-num lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0 -> /dev/block/mmcblk0 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p1 -> /dev/block/mmcblk0p1 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p10 -> /dev/block/mmcblk0p10 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p11 -> /dev/block/mmcblk0p11 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p12 -> /dev/block/mmcblk0p12 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p13 -> /dev/block/mmcblk0p13 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p14 -> /dev/block/mmcblk0p14 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p15 -> /dev/block/mmcblk0p15 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p16 -> /dev/block/mmcblk0p16 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p17 -> /dev/block/mmcblk0p17 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p18 -> /dev/block/mmcblk0p18 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p19 -> /dev/block/mmcblk0p19 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p2 -> /dev/block/mmcblk0p2 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p20 -> /dev/block/mmcblk0p20 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p21 -> /dev/block/mmcblk0p21 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p22 -> /dev/block/mmcblk0p22 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p23 -> /dev/block/mmcblk0p23 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p24 -> /dev/block/mmcblk0p24 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p25 -> /dev/block/mmcblk0p25 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p26 -> /dev/block/mmcblk0p26 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p3 -> /dev/block/mmcblk0p3 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p4 -> /dev/block/mmcblk0p4 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p5 -> /dev/block/mmcblk0p5 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p6 -> /dev/block/mmcblk0p6 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p7 -> /dev/block/mmcblk0p7 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p8 -> /dev/block/mmcblk0p8 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0p9 -> /dev/block/mmcblk0p9 lrwxrwxrwx root root 2014-09-24 01:09 mmcblk0rpmb -> /dev/block/mmcblk0rpmb |
by-name 은 활용별로 분류함.
s -al /dev/block/platform/msm_sdcc.1/by-name/ < lrwxrwxrwx root root 2014-09-24 01:09 aboot -> /dev/block/mmcblk0p6 lrwxrwxrwx root root 2014-09-24 01:09 apnhlos -> /dev/block/mmcblk0p1 lrwxrwxrwx root root 2014-09-24 01:09 backup -> /dev/block/mmcblk0p18 lrwxrwxrwx root root 2014-09-24 01:09 boot -> /dev/block/mmcblk0p15 lrwxrwxrwx root root 2014-09-24 01:09 cache -> /dev/block/mmcblk0p24 lrwxrwxrwx root root 2014-09-24 01:09 dbi -> /dev/block/mmcblk0p4 lrwxrwxrwx root root 2014-09-24 01:09 ddr -> /dev/block/mmcblk0p5 lrwxrwxrwx root root 2014-09-24 01:09 efs -> /dev/block/mmcblk0p12 lrwxrwxrwx root root 2014-09-24 01:09 fota -> /dev/block/mmcblk0p17 lrwxrwxrwx root root 2014-09-24 01:09 fsc -> /dev/block/mmcblk0p19 lrwxrwxrwx root root 2014-09-24 01:09 fsg -> /dev/block/mmcblk0p9 lrwxrwxrwx root root 2014-09-24 01:09 hidden -> /dev/block/mmcblk0p25 lrwxrwxrwx root root 2014-09-24 01:09 modem -> /dev/block/mmcblk0p2 lrwxrwxrwx root root 2014-09-24 01:09 modemst1 -> /dev/block/mmcblk0p13 lrwxrwxrwx root root 2014-09-24 01:09 modemst2 -> /dev/block/mmcblk0p14 lrwxrwxrwx root root 2014-09-24 01:09 pad -> /dev/block/mmcblk0p10 lrwxrwxrwx root root 2014-09-24 01:09 param -> /dev/block/mmcblk0p11 lrwxrwxrwx root root 2014-09-24 01:09 persdata -> /dev/block/mmcblk0p22 lrwxrwxrwx root root 2014-09-24 01:09 persist -> /dev/block/mmcblk0p21 lrwxrwxrwx root root 2014-09-24 01:09 recovery -> /dev/block/mmcblk0p16 lrwxrwxrwx root root 2014-09-24 01:09 rpm -> /dev/block/mmcblk0p7 lrwxrwxrwx root root 2014-09-24 01:09 sbl1 -> /dev/block/mmcblk0p3 lrwxrwxrwx root root 2014-09-24 01:09 ssd -> /dev/block/mmcblk0p20 lrwxrwxrwx root root 2014-09-24 01:09 system -> /dev/block/mmcblk0p23 lrwxrwxrwx root root 2014-09-24 01:09 tz -> /dev/block/mmcblk0p8 lrwxrwxrwx root root 2014-09-24 01:09 userdata -> /dev/block/mmcblk0p26 |
by-num 는 파티션 num 로 mapping 함.
s -al /dev/block/platform/msm_sdcc.1/by-num/ < lrwxrwxrwx root root 2014-09-24 01:09 p1 -> /dev/block/mmcblk0p1 lrwxrwxrwx root root 2014-09-24 01:09 p10 -> /dev/block/mmcblk0p10 lrwxrwxrwx root root 2014-09-24 01:09 p11 -> /dev/block/mmcblk0p11 lrwxrwxrwx root root 2014-09-24 01:09 p12 -> /dev/block/mmcblk0p12 lrwxrwxrwx root root 2014-09-24 01:09 p13 -> /dev/block/mmcblk0p13 lrwxrwxrwx root root 2014-09-24 01:09 p14 -> /dev/block/mmcblk0p14 lrwxrwxrwx root root 2014-09-24 01:09 p15 -> /dev/block/mmcblk0p15 lrwxrwxrwx root root 2014-09-24 01:09 p16 -> /dev/block/mmcblk0p16 lrwxrwxrwx root root 2014-09-24 01:09 p17 -> /dev/block/mmcblk0p17 lrwxrwxrwx root root 2014-09-24 01:09 p18 -> /dev/block/mmcblk0p18 lrwxrwxrwx root root 2014-09-24 01:09 p19 -> /dev/block/mmcblk0p19 lrwxrwxrwx root root 2014-09-24 01:09 p2 -> /dev/block/mmcblk0p2 lrwxrwxrwx root root 2014-09-24 01:09 p20 -> /dev/block/mmcblk0p20 lrwxrwxrwx root root 2014-09-24 01:09 p21 -> /dev/block/mmcblk0p21 lrwxrwxrwx root root 2014-09-24 01:09 p22 -> /dev/block/mmcblk0p22 lrwxrwxrwx root root 2014-09-24 01:09 p23 -> /dev/block/mmcblk0p23 lrwxrwxrwx root root 2014-09-24 01:09 p24 -> /dev/block/mmcblk0p24 lrwxrwxrwx root root 2014-09-24 01:09 p25 -> /dev/block/mmcblk0p25 lrwxrwxrwx root root 2014-09-24 01:09 p26 -> /dev/block/mmcblk0p26 lrwxrwxrwx root root 2014-09-24 01:09 p3 -> /dev/block/mmcblk0p3 lrwxrwxrwx root root 2014-09-24 01:09 p4 -> /dev/block/mmcblk0p4 lrwxrwxrwx root root 2014-09-24 01:09 p5 -> /dev/block/mmcblk0p5 lrwxrwxrwx root root 2014-09-24 01:09 p6 -> /dev/block/mmcblk0p6 lrwxrwxrwx root root 2014-09-24 01:09 p7 -> /dev/block/mmcblk0p7 lrwxrwxrwx root root 2014-09-24 01:09 p8 -> /dev/block/mmcblk0p8 lrwxrwxrwx root root 2014-09-24 01:09 p9 -> /dev/block/mmcblk0p9 |
'Programming > Linux_Platform' 카테고리의 다른 글
[linux] openat / open 의 차이점 (0) | 2015.10.29 |
---|---|
Android init.rc 분석 (0) | 2015.10.26 |
linux command : stat, fstat, lstat (0) | 2015.10.19 |
헷갈리는 c string 함수들 (0) | 2015.10.19 |
epoll 에 대한 한국어 설명 (0) | 2015.10.19 |