如何在只读模式下写入文件

如何在只读模式下写入文件

我正在通过 SSH 访问设备。我想更改www目录中的文件,但尝试执行此操作时,系统提示Read-only file system

mount给了我一些信息,但我看不到任何参考www,为什么www是 RO 或如何www安装:

admin@(none):/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=127752k,nr_inodes=31938,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock4 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)

这没什么关系,但我有写入文件的权限:

drwxr-xr-x   14 admin root          5999 May 27 05:17 www

我能做什么?


admin@(none):/# ls -l /
drwxr-xr-x    2 admin root             3 May 27 05:17 asus_jffs
drwxr-xr-x    2 admin root           667 May 27 05:12 bin
drwxr-xr-x    2 admin root             3 May 27 05:17 cifs1
drwxr-xr-x    2 admin root             3 May 27 05:17 cifs2
drwxr-xr-x    5 admin root          1580 Nov  8 18:46 dev
lrwxrwxrwx    1 admin root             7 May 27 05:17 etc -> tmp/etc
lrwxrwxrwx    1 admin root             8 May 27 05:17 home -> tmp/home
drwxr-xr-x    5 admin root             0 Nov  8 20:19 jffs
drwxr-xr-x    3 admin root           402 May 27 05:17 lib
lrwxrwxrwx    1 admin root             9 May 27 05:17 media -> tmp/media
drwxr-xr-x    2 admin root             3 May 27 05:17 mmc
lrwxrwxrwx    1 admin root             7 May 27 05:17 mnt -> tmp/mnt
lrwxrwxrwx    1 admin root             7 May 27 05:17 opt -> tmp/opt
dr-xr-xr-x   97 admin root             0 Jan  1  1970 proc
drwxr-xr-x    7 admin root           766 May 27 05:17 rom
lrwxrwxrwx    1 admin root            13 May 27 05:17 root -> tmp/home/root
drwxr-xr-x    2 admin root          2566 May 27 05:17 sbin
drwxr-xr-x   11 admin root             0 Jan  1  1970 sys
drwxr-xr-x    2 admin root             3 May 27 05:17 sysroot
drwxrwxrwx   12 admin root           880 Nov  8 20:19 tmp
drwxr-xr-x    8 admin root           139 May 27 05:17 usr
lrwxrwxrwx    1 admin root             7 May 27 05:17 var -> tmp/var
drwxr-xr-x   14 admin root          5999 May 27 05:17 www

相关内容