(Android系统目录结构)/mnt/sdcard 和 sdcard 的区别

mnt/是Unix/Linux系统下外部设备的专用目录,Linux默认挂载外部设备都会挂载到这个目录;如将SD卡挂载后,会生成目录:/mnt/sdcard/.

shell@aeon6735m_65c_s_l1:/mnt $ ls -al
drwxr-xr-x root     system            2016-01-01 08:00 asec
dr-xr-xr-x root     root              2012-03-12 15:30 cd-rom
drwxr-xr-x system   system            2016-01-01 08:00 media_rw
drwxr-xr-x root     system            2016-01-01 08:00 obb
lrwxrwxrwx root     root              2016-01-01 08:00 sdcard -> /storage/sdcard0
lrwxrwxrwx root     root              2016-01-01 08:00 sdcard2 -> /storage/sdcard1
drwx------ root     root              2016-01-01 08:00 secure
drwx------ shell    shell             2016-01-01 08:00 shell

/sdcard/是一个软链接(一个映射),相当于是Windows下的快捷方式,链接到/storage/sdcard0/.

shell@aeon6735m_65c_s_l1:/ $ ls -al
drwxr-xr-x root     root              2016-01-01 08:00 acct
drwxrwx--- system   cache             2016-01-01 09:34 cache
lrwxrwxrwx root     root              1970-01-01 08:00 charger -> /sbin/healthd
dr-x------ root     root              2016-01-01 08:00 config
drwxr-xr-x root     root              2016-01-01 08:00 custom
lrwxrwxrwx root     root              2016-01-01 08:00 d -> /sys/kernel/debug
drwxrwx--x system   system            2016-01-01 08:00 data
-rw-r--r-- root     root          381 1970-01-01 08:00 default.prop
drwxr-xr-x root     root              2016-01-01 08:00 dev
-rw-r--r-- root     root          127 1970-01-01 08:00 enableswap.sh
lrwxrwxrwx root     root              2016-01-01 08:00 etc -> /system/etc
-rw-r--r-- root     root         1851 1970-01-01 08:00 factory_init.project.rc
-rw-r--r-- root     root        18861 1970-01-01 08:00 factory_init.rc
-rw-r--r-- root     root        31264 1970-01-01 08:00 file_contexts
-rw-r----- root     root         1979 1970-01-01 08:00 fstab.mt6735
-rwxr-x--- root     root       543928 1970-01-01 08:00 init
-rwxr-x--- root     root          605 1970-01-01 08:00 init.aee.rc
-rwxr-x--- root     root         1071 1970-01-01 08:00 init.environ.rc
-rwxr-x--- root     root         3548 1970-01-01 08:00 init.modem.rc
-rwxr-x--- root     root        43390 1970-01-01 08:00 init.mt6735.rc
-rwxr-x--- root     root        32013 1970-01-01 08:00 init.mt6735.usb.rc
-rwxr-x--- root     root          963 1970-01-01 08:00 init.no_ssd.rc
-rwxr-x--- root     root         4474 1970-01-01 08:00 init.project.rc
-rwxr-x--- root     root        23097 1970-01-01 08:00 init.rc
-rwxr-x--- root     root         2288 1970-01-01 08:00 init.trace.rc
-rwxr-x--- root     root         3885 1970-01-01 08:00 init.usb.rc
-rwxr-x--- root     root          583 1970-01-01 08:00 init.xlog.rc
-rwxr-x--- root     root          301 1970-01-01 08:00 init.zygote32.rc
-rwxr-x--- root     root          531 1970-01-01 08:00 init.zygote64_32.rc
-rw-r--r-- root     root         1062 1970-01-01 08:00 meta_init.modem.rc
-rw-r--r-- root     root         1630 1970-01-01 08:00 meta_init.project.rc
-rw-r--r-- root     root        14464 1970-01-01 08:00 meta_init.rc
drwxrwxr-x root     system            2016-01-01 08:00 mnt
drwxrws--- root     system            2016-01-01 09:34 nvdata
drwxrwx--x system   system            2016-01-01 08:00 persist
dr-xr-xr-x root     root              1970-01-01 08:00 proc
-rw-r--r-- root     root         9143 1970-01-01 08:00 property_contexts
drwxrwx--- system   system            2016-01-01 08:04 protect_f
drwxrwx--- system   system            2016-01-01 08:04 protect_s
drwx------ root     root              2016-06-23 22:25 root
drwxr-x--- root     root              1970-01-01 08:00 sbin
lrwxrwxrwx root     root              2016-01-01 08:00 sdcard -> /storage/sdcard0
-rw-r--r-- root     root          471 1970-01-01 08:00 seapp_contexts
-rw-r--r-- root     root           84 1970-01-01 08:00 selinux_version
-rw-r--r-- root     root       253961 1970-01-01 08:00 sepolicy
-rw-r--r-- root     root        11419 1970-01-01 08:00 service_contexts
drwxr-x--x root     sdcard_r          2016-01-01 08:00 storage
dr-xr-xr-x root     root              2016-01-01 08:00 sys
drwxr-xr-x root     root              1970-01-01 08:00 system
-rw-r--r-- root     root         8695 1970-01-01 08:00 ueventd.rc
lrwxrwxrwx root     root              2016-01-01 08:00 vendor -> /system/vendor
posted @ 2017-02-09 20:44  jamesK4W  阅读(5448)  评论(0编辑  收藏  举报