进入系统,连接串口:
android2.2启动后的系统目录如下:
/ # ls -l
--------w- root root 90 1970-01-01 07:10 ts.log
dr-x------ root root 1970-01-01 07:10 config
drwxrwx--- system cache 2011-08-05 03:12 cache
lrwxrwxrwx root root 1970-01-01 07:10 udisk -> /mnt/udisk
lrwxrwxrwx root root 1970-01-01 07:10 extsd -> /mnt/extsd
lrwxrwxrwx root root 1970-01-01 07:10 sdcard -> /mnt/sdcard
drwxr-xr-x root root 1970-01-01 07:10 acct
drwxrwxr-x root system 1970-01-01 07:10 mnt
lrwxrwxrwx root root 1970-01-01 07:10 d -> /sys/kernel/debug
lrwxrwxrwx root root 1970-01-01 07:10 etc -> /system/etc
drwxr-xr-x root root 1970-01-01 01:22 system
drwxr-xr-x root root 1970-01-01 00:00 sys
drwxr-x--- root root 1970-01-01 00:00 sbin
dr-xr-xr-x root root 1970-01-01 00:00 proc
-rwxr-x--- root root 17954 1970-01-01 00:00 init.rc
-rwxr-x--- root root 1677 1970-01-01 00:00 init.goldfish.rc
-rwxr-x--- root root 492 1970-01-01 00:00 init.freescale.rc
-rwxr-x--- root root 107784 1970-01-01 00:00 init
-rw-r--r-- root root 118 1970-01-01 00:00 default.prop
drwxrwx--x system system 1970-01-01 04:47 data
drwx------ root root 2011-08-02 08:12 root
drwxr-xr-x root root 1970-01-01 07:10 dev
一,首先我们看看系统的mount情况:
/ # busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 210.5M 12.0K 210.5M 0% /dev
tmpfs 210.5M 0 210.5M 0% /mnt/asec
tmpfs 1.0M 4.0K 1020.0K 0% /mnt/shm
/dev/block/mmcblk0p2 121.5M 97.6M 23.9M 80% /system
/dev/block/mmcblk0p5 239.6M 43.5M 183.8M 19% /data
/dev/block/mmcblk0p6 121.6M 5.5M 109.8M 5% /cache
/dev/block/vold/179:1
3.2G 14.3M 3.1G 0% /mnt/sdcard
/dev/block/vold/179:1
3.2G 14.3M 3.1G 0% /mnt/secure/asec
/dev/block/dm-0 2.0M 876.0K 1.2M 42% /mnt/asec/com.aurorasoftworks.quadrant.ui.advanced-1
二,系统的主要有/system 、/data、/cache 、/sdcard ...
1,先看看/system目录:/ # cd /system/
/system # ls -l
-rw-r--r-- root root 1372 2011-07-28 02:44 build.prop
drwxrwx--x system system 1970-01-01 01:22 sd
drwxr-xr-x root root 2011-07-28 03:07 fonts
drwxr-xr-x root shell 2011-07-28 03:07 xbin
drwxr-xr-x root root 2011-07-28 03:06 usr
drwxr-xr-x root root 2011-07-28 02:45 framework
drwxr-xr-x root root 2011-08-02 07:54 lib
drwxr-xr-x root root 2011-07-28 03:07 etc
drwx------ root root 2011-08-04 08:12 lost+found
drwxr-xr-x root shell 2011-08-03 10:30 bin
drwxr-xr-x root root 1970-01-01 04:04 app
2, /system/