OpenWrt Forum Archive

Topic: [SOLVED]Read-only file system

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey,

I just received my new TP link WR703N and proceeded to install openwrt to "change" it into a pirate box but i got some issue.

Installation worked fine but when i changed the network.config file with vi, the exit command didn't work ( wq+ENTER) ... i panicked and closed the terminal. 

I proceed to connect again ( telnet 192.xxx.)  but now i cannot change anything

the return of passwd is

passwd: /etc/passwd: Read-only file system
passwd: can't update password file /etc/passwd

and the root partition is read only

root@(none):/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14476k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)

Does anyone know how to change the permission?

EDIT:

i just had to mount the root partition, it work now
→ mount_root

(Last edited by chmol on 15 Jun 2013, 09:43)

Doesn't work for me. Can anyone explain how/why it became read only? Did we install it improperly? Why doesn't everyone have to do this? Any advice to point me in the right direction so I can configure the danm thing would be much appreciated.

Edit:
Typical, finding the answer almost immediately after asking the question. I'm running backfire, and this is a resolved issue.
The solution was here: forum.openwrt.org/viewtopic.php?id=25063

Found a workaround in forum.openwrt.org/viewtopic.php?id=10717
Running
mtd unlock rootfs_data
makes the device usable again.

(Last edited by candleLightHacker on 30 Aug 2016, 08:56)

The discussion might have continued from here.