changing permissions of Read-only file system in linux
i use this command to make a bootable flash disk of linux mint
sudo dd if=~/Desktop/linuxmint.iso of=/dev/sdx oflag=direct bs=1048576
it's work, but now my flash disk is lock and i can't change file on it now this file is on flash disk
dr-xr-xr-x 1 ahmad ahmad 2048 May 13 02:24 boot
dr-xr-xr-x 1 ahmad ahmad 2048 May 13 02:24 casper
dr-xr-xr-x 1 ahmad ahmad 2048 May 13 02:23 dists
dr-xr-xr-x 1 ahmad ahmad 2048 May 13 02:24 EFI
dr-xr-xr-x 1 ahmad ahmad 8192 May 13 02:24 isolinux
-r--r--r-- 1 ahmad ahmad 21495 May 13 02:24 MD5SUMS
dr-xr-xr-x 1 ahmad ahmad 2048 May 13 02:23 pool
dr-xr-xr-x 1 ahmad ahmad 2048 May 13 02:24 preseed
-r--r--r-- 1 ahmad ahmad 220 May 13 02:24 README.diskdefines
i try sudo chmod 777 * on my disk but it don't work
migrated from stackoverflow.com Jul 14 '14 at 8:09
This question came from our site for professional and enthusiast programmers.
- 1You can't change permissions on a ISO 9660 filesystem. – Ignacio Vazquez-Abrams Jul 14 '14 at 8:10
However you can write your resulting /dev/sdX device. After you are done with dd as you mentioned you can mount /dev/sdX as RW when you didn't boot you system from this device.
- If you have already mounted this device, and it is Read Only, you can remount it in RW by
sudo mount -o remount,rw /dev/sdX , but it works only if you are not running your / system from this partition. Check the partitions mounted with mount -l. Well, actually running OS from this device you will see that the file system changes that you have done can be seen during the sessionm but it's a kind of illusion, they will no be written to the disk.
- If you need to have a different data set in the iso file, you need it to mount, copy this data, modify and then make a new ISO by something like.
mkisofs -o /tmp/cd.iso /tmp/directory/ To make an ISO from files on your hard drive.
- If you need to make a bootable USB drive from your image: choose either
Startup Disk Creatoror UNetbootin. And if you want to make changes to be saved after you worked in OS on you USB drive you need to tell aboutpersistenceto these programs at the disc creation stage.
in Startup Disk Creator:


in UNetbootin:

You can't change permissions nor alter any data in an ISO 9660 filesystem since it's read-only by nature. Despite this you can opt to somehow update data on it if your record format supports multiple sessions. The only thing to consider is that can't change it the normal way in the UNIX filesystem. You may find this howto helpful. Directly creating a new ISO image than having multiple sessions may also be a better practice. The only thing is that it's complicated when you're creating an isolinux-bootable one.
https://superuser.com/questions/782847/changing-permissions-of-read-only-file-system-in-linux
##############################################################################################################################
#################################################################################################################################
错误:chmod: changing permissions of ‘/etc/passwd': Read-only file system
给passwd文件加权限,修改/etc/passwd目录下所有的文件夹属性为可写可读可执行,执行以下命令:chomd 777 /etc/passwd
的时候提示错误:
chmod: changing permissions of ‘/etc/passwd': Read-only file system
解决方法:
产生这个问题的原因是文件系统此时处于只读模式下,/etc/passwd和/etc/shadow不能被修改,运行下面的命令就可以解决这个问题
#mount -rw -o remount /
注:
mount 是挂载命令
-rw 是说指定的挂载文件是可读/写的
-o remount / 是说重新挂载根
changing permissions of Read-only file system in linux的更多相关文章
- chattr lsattr linux file system attributes - linux 文件系统扩展属性
我们使用 linux 文件系统扩展属性,能够对linux文件系统进行进一步保护:从而给文件 赋予一些额外的限制:在有些情况下,能够对我们的系统提供保护: chattr命令用来改变文件属性.这项指令可改 ...
- Extension of write anywhere file system layout
A file system layout apportions an underlying physical volume into one or more virtual volumes (vvol ...
- File System Design Case Studies
SRC=http://www.cs.rutgers.edu/~pxk/416/notes/13-fs-studies.html Paul Krzyzanowski April 24, 2014 Int ...
- chmod: changing permissions of ‘/etc/fstab': Read-only file system
给passwd文件加权限,修改/etc/fstab目录下所有的文件夹属性为可写可读可执行,执行以下命令:chomd 777 /etc/fstab 的时候提示错误: chmod: changing pe ...
- HDFS relaxes a few POSIX requirements to enable streaming access to file system data
https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HdfsDesign.html Introduction [ ...
- Oracle:ORA-09925 and linux Read-only file system error
今天上午有同事反映应用数据库连接不上:于是排查数据库: [oracle@db ~]$ sqlplus / as sysdba SQL*Plus: Release - Production on Thu ...
- File System Programming --- (二)
File System Basics The file systems in OS X and iOS handle the persistent storage of data files, app ...
- Parallel file system processing
A treewalk for splitting a file directory is disclosed for parallel execution of work items over a f ...
- Linux File System
目录 . Linux文件系统简介 . 通用文件模型 . VFS相关数据结构 . 处理VFS对象 . 标准函数 1. Linux文件系统简介 Linux系统由数以万计的文件组成,其数据存储在硬盘或者其他 ...
随机推荐
- vue之基础---组件基础
(1)基本示例 Vue组件示例 /* 先注册组件,定义一个名为button-component的新组件 */ Vue.component('button-component',{ data:funct ...
- css--小白入门篇4
一.前文回顾 盒模型box model 什么是盒子?所有的标签都是盒子.无论是div.span.a都是盒子.图片.表单元素一律看做文本. 盒模型有哪些组成:width.height.padding.b ...
- 魂酥的NOIP2018(真实)游记
NOIP之后才开博客 作为一个高一零基础蒟蒻 想说什么似乎也没什么可说的 才学几个月似乎也没什么发言权就是了 Day -1 期中考爆0,似乎是班里学OI的考得最惨的一个 岂不美哉 要么我也没想考好 也 ...
- Linux---文件目录管理
1. Linux文件目录架构 Linux的目录结构与win的目录有很大不同,首先,没有盘符的概念:然后Linux使用斜杠/标识目录,Linux首先建立一个根目录,然后将其他文件系统挂载到这个目录下. ...
- Python学习-变量
什么是变量? 概念:变量就是会变化的量,主要是“变”与“量”二字.变即是“变化”. 特点:与其他编程语言相同,变量是最基本的存储单位,是用来存放数据的容器.可以引用一个具体的数值,进而直接去改变这个引 ...
- linux nethogs-终端下的网络流量监控工具
推荐:更多linux 性能监测与优化 关注:linux命令大全 有很多适用于Linux系统的开源网络监视工具.比如说,你可以用命令iftop来检查带宽使用情况.netstat用来查看接口统计报告,还有 ...
- 微信小程序中如何实现分页下拉加载?(附源码)
转眼间坚持写教你微信小程序系列已经有十节系列课程了,每天的工作压力繁重,小女子也不知道自己还能坚持这样的系列教程多久.只希望每篇教程真的对大家有帮助.这节课我们要介绍的就是如何实现分页的下拉加载,我们 ...
- jmeter录制火狐浏览器
昨天看youtube,居然发现有这功能,啊哈哈 听不懂英语 也能有收获. 一.Jmeter 文件中选择Templates->Recording 二.创建之后,自动出现一个模板: 1. Threa ...
- 创建Maven版Java工程
步骤: 创建成功后,如图:
- 【Codeforces 922D】Robot Vacuum Cleaner
[链接] 我是链接,点我呀:) [题意] 让你把n个字符串重新排序,然后按顺序连接在一起 使得这个组成的字符串的"sh"子序列最多 [题解] /* * 假设A的情况好于B * 也就 ...

