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系统由数以万计的文件组成,其数据存储在硬盘或者其他 ...
随机推荐
- RabbitMQ系列(八)--顺序消费模式和迅速消息发送模式
MQ使用过程中,有些业务场景需要我们保证顺序消费,而如果一个Producer,一个Queue,多个Consumer的情况下是无法保证顺序的 举例: 1.业务上产生三条消息,分别是对数据的增加.修改.删 ...
- A2. JVM 类加载机制
[概述] 虚拟机把描述类的数据从 Class 文件加载到内存,并对数据进行校验.转换解析和初始化,最终形成可以被虚拟机直接使用的 Java 类型,这就是虚拟机的类加载机制. 与那些在编译时需要进行连接 ...
- Colletions工具类常用方法
Collections 工具类常用方法: 排序 查找,替换操作 同步控制(不推荐,需要线程安全的集合类型时请考虑使用 JUC 包下的并发集合 排序操作 void reverse(List list)/ ...
- cc.Node—Action
1: Action类是动作命令,我们创建Action,然后节点运行action就能够执行Action的动作; 2: Action分为两类: (1) 瞬时就完成的ActionInstant, (2) 要 ...
- STL源码分析之第二级配置器
前言 第一级是直接调用malloc分配空间, 调用free释放空间, 第二级三就是建立一个内存池, 小于128字节的申请都直接在内存池申请, 不直接调用malloc和free. 本节分析第二级空间配置 ...
- Linux学习笔记(二) 文件管理
了解 Linux 系统基本的文件管理命令可以帮助我们更好的使用 Linux 系统,以下介绍几个常用的文件管理命令 1.pwd pwd 是 Print Working Directory 的简写,用于显 ...
- 统计nginx日志里每五分钟的访问量
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Random_lee import time import os import re cla ...
- HDU 2242 连通分量缩点+树形dp
题目大意是: 所有点在一个连通图上,希望去掉一条边得到两个连通图,且两个图上所有点的权值的差最小,如果没有割边,则输出impossible 这道题需要先利用tarjan算法将在同一连通分量中的点缩成一 ...
- [fw]Best Practices for Exception Handling
http://www.onjava.com/pub/a/onjava/2003/11/19/exceptions.html http://www.onjava.com/pub/a/onjava/200 ...
- RabbitMQ消息队列阻塞导致服务器宕机
最近工作中存储服务器由于压力太大无法及时消费消息.这个过程中,导致RabbitMQ意外挂掉,无法访问.下面是部分问题分析过程. 麒麟系统服务器分析 1.服务器异常信息: [root@localhost ...

