OpenWrt Forum Archive

Topic: Make file system writable...? (Asus RT-AC66U)

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

My apologies if this is a little more of a stupid newbie question than some of you are used to, but i'm trying to find a way to edit the file system and i'm still in the 'dangerous' category when it comes to linux commands.   

dmesg gives me the following:

VFS: Mounted root (squashfs filesystem) readonly.

admin@RT-AC66U:/# mkdir test
mkdir: can't create directory 'test': Read-only file system

here's my current mounts:

admin@RT-AC66U:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw)
devfs on /dev type tmpfs (rw,noatime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)

As you can see, /dev/root is mounted as read-only.  I've tried to remount it using "mount -o remount,rw /dev/root /" and this appears to work (it gives no error or successful message) but the filesystem remains read-only.

Anyone remember a way around this?  This is currently the stock ASUS firmware.

Edit:  Here's my uname -a for the device:  Linux RT-AC66U 2.6.22.19 #1 Tue Nov 4 22:09:24 CST 2014 mips GNU/Linux

(Last edited by covzire on 28 Dec 2014, 22:46)

SquashFS is a read-only compressed filesystem.  OpenWrt uses overlayfs to mount a writeable filesystem "on top" of the read-only /rom filesystem.

The discussion might have continued from here.