oppalu
oppalu
2015-02-11 10:28

安卓开发中read-only file system

  • android

android模拟机上不能加文件提示read only file system 是什么问题啊
mount -o remount ,rw /都试过了 ,没什么用额。

使用重新挂载还是无用

mount -o remount,rw rootfs /system/

mount -o remount,rw rootfs /system/

cd sdcard

cd sdcard

mkdir a

mkdir a
mkdir failed for a, Read-only file system

查看mounts

cat /proc/mounts

cat /proc/mounts
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /acct cgroup rw,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock0 /system yaffs2 rw 0 0
/dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0

查看文件权限

ls -l

ls -l
dr-x------ root root 2012-05-31 03:12 config
drwxrwx--- system cache 2012-05-31 03:12 cache
lrwxrwxrwx root root 2012-05-31 03:12 sdcard -> /mnt/sdcard
drwxr-xr-x root root 2012-05-31 03:12 acct
drwxrwxr-x root system 2012-05-31 03:12 mnt
lrwxrwxrwx root root 2012-05-31 03:12 d -> /sys/kernel/debug
lrwxrwxrwx root root 2012-05-31 03:12 etc -> /system/etc
drwxr-xr-x root root 2010-06-30 21:06 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 12995 1970-01-01 00:00 init.rc
-rwxr-x--- root root 1677 1970-01-01 00:00 init.goldfish.rc
-rwxr-x--- root root 107412 1970-01-01 00:00 init
-rw-r--r-- root root 118 1970-01-01 00:00 default.prop
drwxrwx--x system system 2012-05-31 03:13 data
drwx------ root root 2010-01-28 00:59 root
drwxr-xr-x root root 2012-05-31 03:13 dev

mout查看

mount

mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /acct cgroup rw,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock0 /system yaffs2 rw 0 0
/dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0

mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system

mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system

exit

exit

push 还是失败
E:>adb push e:/WL_LX_12_TianPing.dxf /mnt/sdcard
failed to copy 'e:/WL_LX_12_TianPing.dxf' to '/mnt/sdcard/WL_LX_12_TianPing.dxf'
: Read-only file system

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换