10

Hi. I have an LG-Optimus HUB E510 Android Device.

Two weeks ago I rooted my device to access internal storage and change some files (such as alarms, notifications, sounds, .etc).

Well I did it. But after re-storing factory settings, internal storage files became again read-only.

Then I tried adb-shell to change the privileges of folders and files with

chmod  777  "folder destination"

but the shell responded as

Unable to chmod system/media/audio/alarms: Read-only file system

Now I don't know what to do. So, I need your suggessions. Thank you.


Pictures

This is the changing permission attempt from shell in ubuntu This is the changing permission attempt from shell in ubuntu The files included with current permissions in eclipse DDMS perspective The files included with current permissions in eclipse DDMS perspective

cagcak
  • 3,894
  • 2
  • 21
  • 22
  • Welcome to StackOverflow. This site is for programming questions. This is not a programming questions. You might have more luck posting your questions in a forum supporting the tools you used to root your device. – 323go Sep 20 '13 at 13:54

2 Answers2

6

Try to use one of the following ways:
mount -o rw,remount -t rootfs /system
or
mount -o rw,remount -t rootfs rootfs /system

You also can use it for any folder that you need even root (/)

Laser
  • 6,652
  • 8
  • 54
  • 85
  • Thanks. The second command worked for me. – cagcak Sep 20 '13 at 13:59
  • 1
    Note that this is only a momentary fix; it will revert every time the phone reboots, as the startup script mounts the partition read only. Leaving it writable isn't really necessary - anything that depends on that is probably not the right way to solve whatever problem is trying to be solved. – Chris Stratton Sep 20 '13 at 15:04
  • `mount: Operation not permitted` I guess the device needs to be rooted? – Stijn de Witt Feb 16 '15 at 08:49
  • @StijndeWitt Yes, It was in question: "Two weeks ago I rooted my device to access internal storage ...." – Laser Feb 16 '15 at 14:05
  • Doesn't work: mount -o rw,remount -t rootfs /system mount: Read-only file system – tribbloid Sep 01 '16 at 09:53
  • 1
    Doesn't work: **mount: Invalid argument** – Ado Sep 15 '17 at 07:29
1

You can also try this:

adb root
adb remount

and this will also mount /system

orglce
  • 513
  • 2
  • 7
  • 19