I was trying to recover files from android phone using adb shell and test disk. But I am getting a read only filesystem error, even though the permissions to write is granted to the user.
list the device attached. After I ran the following commands
Inside the shell I did the following
user:/ $ su user:/ # adb shell "stty raw; cat </dev/block/mmcblk0p56" > data.img sh: can't create data.img: Read-only file system
How to solve this?
Trying the proposed solutions:
$ sudo adb shell "stty raw; cat /dev/block/mmcblk0p56" > /home/user/android-backup/data.img stty: tcgetattr standard input: Not a typewriter cat: /dev/block/mmcblk0p56: Permission denied
$ sudo mount -o remount,rw /dev/block/mmcblk0p56 /tmp mount: /tmp: mount point not mounted or bad option.