Tips can not add files on android simulator read only file system What is the problem ah
mount-o remount, rw / have tried, with little turnover.
Use remount or useless
# 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
View 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
Check the file permissions
# 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 View
# 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 or failure
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
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Problem has been solved:
First: adb shell
After: mount-o remount, rw /
On the line without additional extra stuff on the top two lines, to solve the problem I encountered!
Reply:
You say you mount-o remount, rw / have tried, with little turnover.
adb mount
mount /-o rw, remount
Reply:
Into the command line mode:
The first step: adb shell (enter adb commands)
Step two: su (root authority), may be password
Step two: adb remount
The third step: OK
Reply:
Switch to the root user sudo-s
adb kill-server
adb reboot
adb remount
Reply:
http://bbs.csdn.net/topics/390076506
Reply:
1.ROOT your phone
2 After adb shell login using su root switch to the root user, display the # After switching, which means that successful handover
3 with the mount command to reload the file system: mount-o rw, remount yaffs2 / system
No comments:
Post a Comment