Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何将文件系统或所有目录/etc/从RO ReadOnly更改为RW?_Linux - Fatal编程技术网

Linux 如何将文件系统或所有目录/etc/从RO ReadOnly更改为RW?

Linux 如何将文件系统或所有目录/etc/从RO ReadOnly更改为RW?,linux,Linux,我有一个问题,我有一个只读的RO文件系统。为了能够编辑系统文件或所有/etc/目录编辑,我需要在文件fstab中更改什么。我只能编辑fstab。 fstab文件: /etc # cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount pt> <type> <options> <dump> <

我有一个问题,我有一个只读的RO文件系统。为了能够编辑系统文件或所有/etc/目录编辑,我需要在文件fstab中更改什么。我只能编辑fstab。 fstab文件:

/etc # cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount pt>     <type>   <options>         <dump> <pass>
/dev/root       /              ext2     rw,noauto         0      1
proc            /proc          proc     defaults          0      0
devpts          /dev/pts       devpts   defaults,gid=5,mode=620   0      0
tmpfs           /dev/shm       tmpfs    mode=0777         0      0
tmpfs           /tmp           tmpfs    defaults          0      0
sysfs           /sys           sysfs    defaults          0      0
/etc#cat/etc/fstab
#/etc/fstab:静态文件系统信息。
#
#                    
/dev/root/ext2rw,noauto01
proc/proc proc默认值0
devpts/dev/pts devpts默认值,gid=5,mode=6200
tmpfs/dev/shm tmpfs模式=0777 0
tmpfs/tmp tmpfs默认值为0
sysfs/syssysfs默认值0

我对Linux了解不多,因此我将非常感谢您的帮助。

尝试以下版本,它应该独立于/etc/fstab的内容工作:

mount -o remount,rw /dev/xxxx /
使用对驱动器有效的任何设备,而不是/dev/xxxx