Guest elkay62 Posted October 24, 2010 Report Posted October 24, 2010 (edited) Hi folks, I'm trying to copy in a new gps.conf to /system/etc I'm on 1.6, and have rooted using UA, which appears to have worked successfully. My current "mounts" are: # 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 /dev/block/mtdblock8 /data yaffs2 rw,nosuid,nodev 0 0 /dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev 0 0 tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 /dev/block/mtdblock6 /system yaffs2 rw 0 0 /dev/block/mtdblock7 /lgdrm yaffs2 rw,nosuid,nodev 0 0 /dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid= 1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,s hortname=mixed,utf8 0 0 # I have tried the following commands, before "pushing" the file: # mount -o remount,rw /dev/block/mtdblock6 /system # mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system This is what I get when I try to copy the file: C:\Users\elkay>adb push gps.conf /system/etc failed to copy 'gps.conf' to '/system/etc/gps.conf': Permission denied I have managed to remove the original using rm, but still get the same error message. Any ideas? Any dummies guide to adb would also be appreciated :-) regards elkay PS: also tried this: C:\Users\Leslie>adb remount remount failed: Operation not permitted Edited October 24, 2010 by elkay62
Guest ASY9650 Posted October 25, 2010 Report Posted October 25, 2010 (edited) Hi folks, I'm trying to copy in a new gps.conf to /system/etc I'm on 1.6, and have rooted using UA, which appears to have worked successfully. My current "mounts" are: # 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 /dev/block/mtdblock8 /data yaffs2 rw,nosuid,nodev 0 0 /dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev 0 0 tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 /dev/block/mtdblock6 /system yaffs2 rw 0 0 /dev/block/mtdblock7 /lgdrm yaffs2 rw,nosuid,nodev 0 0 /dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid= 1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,s hortname=mixed,utf8 0 0 # I have tried the following commands, before "pushing" the file: # mount -o remount,rw /dev/block/mtdblock6 /system # mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system This is what I get when I try to copy the file: C:\Users\elkay>adb push gps.conf /system/etc failed to copy 'gps.conf' to '/system/etc/gps.conf': Permission denied I have managed to remove the original using rm, but still get the same error message. Any ideas? Any dummies guide to adb would also be appreciated :-) regards elkay PS: also tried this: C:\Users\Leslie>adb remount remount failed: Operation not permitted Copy it into the directory you want using Root Explorer. Edited October 25, 2010 by ASY9650
Guest elkay62 Posted October 25, 2010 Report Posted October 25, 2010 Copy it into the directory you want using Root Explorer. Are there any free alternatives to Root Explorer on Market? Ta Elkay
Guest ASY9650 Posted October 25, 2010 Report Posted October 25, 2010 Are there any free alternatives to Root Explorer on Market? Ta Elkay Not that I am aware of.
Guest merrymenvn Posted October 26, 2010 Report Posted October 26, 2010 adb shell $ su # mkdir /data/yourname # chmod 777 /data/yourname # exit $ exit adb push gps.conf /data/yourname adb shell $ su # mount -o remount,rw /dev/block/mtdblock6 /system (copy :P) # mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system (copy :D) # mv /data/yourname/gps.conf /system/etc
Guest elkay62 Posted October 26, 2010 Report Posted October 26, 2010 First I managed to copy my file in after doing a chmod on /system/etc However, for the sake of learning... Second @merrymenvn I understand the approach here, looks good.....except, can you explain what these do? # mount -o remount,rw /dev/block/mtdblock6 /system # mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system Also, when I got to mv /data/pics/gps.conf /system/etc I got failed on '/data/pics/gps.conf' - Cross-device link Any ideas? Third @flyboyovyick Droid Explorer looks very interesting. It may get the honour of being my first paid-for app (62p!) Fourth Back to First - I can't remember what chmod instruction I used, but I know I should put it back the way it was - what chmod is required to do this? Thanks for all the help folks! elkay
Guest merrymenvn Posted October 26, 2010 Report Posted October 26, 2010 (edited) I'm sorry, I havent tested. You can't execute adb push gps.conf /system/etc because only root have permission to write in /system/etc, but you are not root, you are shell user. # mkdir /data/yourname # chmod 777 /data/yourname // make a folder and enable write permission for anyone. # exit $ exit adb push gps.conf /data/yourname // copy gps.conf to writable folder on your phone adb shell $ su # mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system (copy ) // remount to write to /system because default is read only (ro) # mv /data/yourname/gps.conf /system/etc // error here Change mv command to: # rm /system/etc/gps.conf //delete old file # cat /data/yourname/gps.conf > /system/etc/gps.conf //copy new file to /system/etc check content of new file: # cat /system/etc/gps.conf All commands: adb shell $ su # mkdir /data/yourname # chmod 777 /data/yourname # exit $ exit adb push gps.conf /data/yourname adb shell $ su # mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system # rm /system/etc/gps.conf //delete old file # cat /data/yourname/gps.conf > /system/etc/gps.conf //copy new file to /system/etc Edited October 26, 2010 by merrymenvn
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now