Questions tagged «readonly»

2
软件包升级后无法将文件系统重新安装回只读状态
在我的Debian系统上,我/在单独的分区上并已挂载read-only。只有/home/,/var/并且/tmp/是可写的。我还创建了Pre-Invoke和Post-Invoke apt hook,以便apt可以在安装或升级软件包时自动重新挂载系统以进行写入,并read-only在完成后将其重新挂载回: DPkg::Pre-Invoke {"mount -o remount,rw / ;}; DPkg::Post-Invoke {"mount -o remount / ;}; 整个设置工作良好,但有一个例外。有时,在安装/升级过程中,某些服务需要重新启动,或者在/挂载my时在短窗口中打开新文件read-write,这些文件会获得write许可打开。安装/升级完成后,我的Post-Invoke挂钩返回错误,因为它无法重新安装/到read-only。 有什么办法可以解决这个问题?这很烦人,因为在这种情况下,我通常必须重新启动服务器,这是不切实际的。 编辑 以下是我最新软件包升级的日志,该日志导致了所描述的错误: root@alpha# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: base-files curl libc-bin libc6 libcurl3 libcurl3-gnutls libmysqlclient18 libssl1.0.0 locales multiarch-support mysql-client …
10 debian  apt  readonly 

3
ISO文件只读?
我有一个ISO文件,我mount在下/mnt/isofile。然后,我将此文件复制到另一个文件夹。但是内容是只读的,属于根目录。我尝试使用chmod和chown。但是它提示信息: 它是只读文件系统。 这里发生了什么? 注意:中有一个tar文件.iso,我想对其进行压缩,但是由于出现相同的“只读文件系统”消息而失败。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.