The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
22 views

How To Induce RO To Linux FS

I've read in several places that during I/O error to system log file most linux distributions go to read only mode. Followed by how to recover from it. This is all fine, but I'm looking for a way to ...
0
votes
1answer
59 views

DHCP and read-only root filesystem

When doing ifup wlan0 on a system with / mounted as read-only (embedded computer), I get this error: Failed to connect to non-global ctrl_ifname: wlan0 error: Read-only file system Internet Systems ...
3
votes
1answer
41 views

bash silently does function return on (re-)declare of global associative read-only array

Obviously cut out of a much more complex script that was more meaningful: #!/bin/bash function InitializeConfig(){ declare -r -g -A SHCFG_INIT=( [a]=b ) declare -r -g -A SHCFG_INIT=( [c]=d ) ...
2
votes
1answer
42 views

Mark an ext4 filesystem as read-only

I want to create an ext4 filesystem, and add some files to it, then "freeze" it so it is henceforth read-only. I know it's possible to use the ro mount option. But is there some way to indicate in ...
0
votes
0answers
35 views

Filesystem check or mount failed on elementaryOS Freya

I had to move to a temporary workspace for a short time which runs on very bad hardwares, so I bought an SSD trying to speed it up. Now, I have installed elementaryOS Freya and my development ...
1
vote
1answer
305 views

Remount squashfs root filessytem read-write

I am working on an embedded device. The fstab shows the following info: <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ...
1
vote
2answers
38 views

Create mount points automatically in /mnt, even though / is read-only

I have a requirement of changing my root partition to Readonly. After changing / to readonly in /etc/fstab, I rebooted the system. Mount points of USB devices is /mnt. But after above changes USB ...
0
votes
1answer
242 views

How can I delete files on a read-only file system?

I have an encrypted .dmg file with some useless files that I need to delete to make space. How can I delete them without having to convert them into a read write system and then back? (Would take 4~5 ...
1
vote
0answers
11 views

What would be the *right* way to use netctl on a read-only root filesystem

I am attempting to use a read-only root filesystem, but am having issues with netctl, since it creates and manages systemd service files as a part of its normal operation. I have a separate partition ...
1
vote
1answer
31 views

I can read from hard disk, but I can't mount it read only

I have some problems with my hard disk - maybe it is broken, maybe the SATA cable is broken, I am just investigating it. One thing is strange. I can read raw data from this device using: # cat ...
5
votes
1answer
216 views

what does mount -o remount,ro / actually do (under the hood)

To remount a mounted filesystem to read-only, I can use following command: mount -o remount,ro /foo This is used for example in the shutdown sequence, where root filesystem (/) is remounted ...
3
votes
1answer
125 views

Remount a busy disk to read-only mode

I want to force a disk partition to read only mode and keep it read-only for more than 30 minutes. What I have tried: mount -o remount,ro (partition-identifier) (mount-point) -t (filesystem) ...
0
votes
1answer
38 views

Unable to delete a file on different user's directory

I've two user's abc & xyz and the user abc has been added to the group xyz via usermod -a -G xyz abc and here the file permission on home directory of xyz i.e /home/xyz: drwxrwxr-x 2 xyz xyz ...
1
vote
0answers
42 views

Preventing automount in CentOS 7

How can I tell CentOS 7 not to mount a new IDE drive (new to the system, but with data I want to examine) the first time I plug it in, so that I can do forensic analysis on it knowing I won't have ...
2
votes
2answers
88 views

How do I prevent Ubuntu from writing ANYTHING to an external harddrive?

There are two reasons you would want to prevent Linux from writing anything to an external harddrive or USB drive when you plug it in: To recover accidentally deleted files from now "empty" part of ...
1
vote
1answer
126 views

cryptsetup luksFormat - cannot open device for read-only access

I created a new partition that I would like to encrypt with LUKS. The device is a 1GB partition with ID 83 (Linux). I've changed the owner to root, and chmod to 777. The command I'm using is : ...
1
vote
2answers
50 views

Using a non-standard location for avahi services

I want to use avahi on a system with a read-only rootfs where /etc is not writable. I can start avahi-daemon with the -f option to specify a non-standard location for the avahi-daemon.conf file ...
2
votes
2answers
85 views

How to re-mount home partition?

My home partition went read-only. I believe this was after trying to access a file that was damaged. I am trying to re-mount it as write with mount -o remount,rw /. But get the message: sudo: unable ...
3
votes
3answers
253 views

Building a Read-Only Linux System With a Writable Layer in RAM

I have a requirement to boot RHEL 6.6/7.0 into read-only mode with a writable layer only in RAM. I believe this is similar to how live CDs work, in that the file system is read-only, but certain parts ...
1
vote
0answers
65 views

Flash memory and set to read only , Is it virus?

Becuase some of limitation of MS.Windows, my friends and my family gime their flash memory to solve their problem. Such as format, partitioning in Linux with the cfidsk ,parted, sfidsk(dump and ...
3
votes
1answer
81 views

Mount USB on Read-Only filesystem

I've got a damaged Mac filesystem, and in single-user mode the command mount -uw / fails (error is something like SATA warning: Enable auto-activate failed). However, I don't need the whole filesystem ...
0
votes
2answers
2k views

mount: warning: /etc/mtab is not writable (e.g. read-only filesystem)

Working on my system I noted that the root filesystem is mounted read-only. My system worked for months, today I get this error: mount: warning: /etc/mtab is not writable (e.g. read-only filesystem). ...
0
votes
1answer
84 views

USB forcely turn write protection off

I have a USB-flash device (SanDisk SDCZ33 BM120423519D) with no hardware switch, which is stuck in readonly mode: # hdparm /dev/sdf /dev/sdf: SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 ...
2
votes
1answer
5k views

Read-only file system error while accessing the files on Ubuntu

I have a Ubuntu machine. I am connected to it remotely and getting the following errer: mkdir: cannot create directory `/testFolder': Read-only file system LIKE WINDOWS, REBOOTING the machine ...
1
vote
1answer
121 views

How to delete a file in QNX4 format when a CF card is mounted as read-only in Linux?

Recently, the DMA device of our lab is broken and the suspected problem is in the CF card which is in QNX4 format. I want to delete a file named 'calforce.dat' and recreate it by calibrating the ...
0
votes
1answer
54 views

Declaring User-Defined variables in the C shell in UNIX read-only

I'm having trouble finding documentation, but what is the command to make a user defined variable in the c shell read-only in unix?
1
vote
1answer
627 views

Why does Ubuntu change my file system to read only

Since last Ubuntu kernel update (actual 14.04.1 LTS with GNU/Linux 3.13.0-39-generic i686) on my server I'm noticing something strange. My system boots normally - read-writable, no problems. But ...
1
vote
1answer
90 views

LVM Snapshot mount read-only or not?

In this page of Linux LVM Howto it's said that "LVM2 creates read/write snapshots by default". In this other page of Red Hat docs it's said that "Because the snapshot is read/write, you can test ...
1
vote
3answers
245 views

Unable to delete files as a root user using RS232 serial cross cable

I have a device(CCTV decoder) which was rebooting itself, so cant login using LAN cable. It has RS232 port only, no VGA and keybord/USB port(Embeded PC). I connected RS232 cross cable and used ...
1
vote
1answer
131 views

How to disable local file writes?

I maintain a shared public computer. Every user has their own directory in /home. We don't like to make /home a network mount because it takes a long time for new users to login, but we would like to ...
2
votes
1answer
483 views

Changing file permissions on an HFS+ filesystem

I ran the command fdisk -l to find out what my external drive is formatted to, I found out it's uses GPT partitions and the filesystem is HFS+. When I try and create a new folder on the external ...
3
votes
1answer
30k views

read only root filesystem

Somehow my Debian went to read only in root file system. I have no idea how this could have happened. For example when I am in /root folder and type command nano and after that press Tab to list ...
0
votes
3answers
3k views

How to format write protected SD card

I am newbie in Linux, I want to format my SD card using Ubuntu, for this I follow this tutorial After typing df command , I got list of storage devices.From here I can see my SD card name is ...
3
votes
2answers
5k views

Give read-only access to specific folders?

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users ...
15
votes
2answers
3k views

Why doesn't mount respect the read only option for bind mounts?

On my Arch Linux system (Linux Kernel 3.14.2) bind mounts do not respect the read only option # mkdir test # mount --bind -o ro test/ /mnt # touch /mnt/foo creates the file /mnt/foo. The relevant ...
1
vote
1answer
130 views

temporarily disabling one's own filesystem write permission

I can't believe there is no simple solution to this (because it seems potentially a very useful feature to me), but so far I couldn't find any. I'd like to be able to (temporarily) turn off my own ...
2
votes
1answer
571 views

How can I get write access to my usb drives?

I have trouble writing to external drives. They are monuted automatically in Nautilus, but I can not copy anything there ('Paste' and 'create Folder' are just greyed out). Does Anyone have ideas what ...
1
vote
2answers
3k views

Disk on key is read only on every computer

I have a 16 GB SanDisk Cruzer Blade Disk-on-key. After a few days of use, it has become write-protected/read-only. When I plug it in, you can see this in my Ubuntu's dmesg: [ 819.003359] usb 2-5: ...
2
votes
0answers
210 views

Set PERM_WRITE_PROTECT on an SD card

From what I read here and here I gather that there is a bit on SD cards called PERM_WRITE_PROTECT that will allow me to make an SD card read only. Is it possible to set this bit from Linux? If so, ...
1
vote
3answers
239 views

Is it dangerous to remount a partition rw/ro frequently?

I'm developing an embedded linux system running on a SD card. To protect the SD against corruption I've used a read only root filesystem as well as an extra partition where I mount /home, also in ...
0
votes
2answers
229 views

Make file in linux readonly

Is there a way to make a file readonly permanently in linux. Or can I put a password to a file to make it readonly, then apply that password again to change its permission, or before they can alter ...
10
votes
2answers
396 views

unable to remount filesystem back to read-only after package upgrade

On my Debian system, I have my / on separate partition and mounted read-only. Only /home/, /var/ and /tmp/ are writable. I have also created a Pre-Invoke and Post-Invoke apt hook, so that apt can ...
5
votes
3answers
365 views

Can I make the O/S drive READ ONLY and prevent metadata write back?

Sorry to ask a (probably) stupid question. I am a hardware designer struggling with provision of safe shutdown power to an embedded system. I am aware the Linux normally makes a heavy use of the ...
10
votes
3answers
352 views

bash: Some issue when using read <<<“$VARIABLE” on a read-only root partition. Any known workarounds?

Just by coincidence I had to use my ATA-ID-to-device-name script (found here: http://serverfault.com/questions/244944/linux-ata-errors-translating-to-a-device-name/426561#426561) on a read-only / ...
2
votes
1answer
4k views

Linux VM's disk went read-only = no choice but reboot?

I have several Linux VMs on VMware + SAN. What happened A problem occured on the SAN (failed path) so that for some time, there were I/O errors on the Linux VMs drives. When the path failover had ...
1
vote
1answer
736 views

What could cause a run time remounting of my /var partition to be read only?

I have a buildroot generated embedded linux system (x-86 geode processor) using an initramfs but with /var and /etc mounted onto a compact flash device using the default mount options specified in ...
2
votes
2answers
798 views

Adding files to Linux readonly-root

I've a netboot Linux server where the the /root is mounted as readonly. # Set to 'yes' to mount the system filesystems read-only. READONLY=yes # Set to 'yes' to mount various temporary state as ...
1
vote
1answer
383 views

Problem with chown directory

i'm login with root account i want to chown my directory i do this: [root@sop /]# chown -R webadm:webgrp /ap/P12B/ I have this error: chown: changement de propriétaire pour `/ap/P12B/': Système ...
1
vote
2answers
1k views

Cannot modify files in my home directory

I have a laptop running Ubuntu Server 12.04 and suddenly, yesterday, I don't know what happened, but all the permissions changed of my home directory, so when ever I try to create a file, it says ...
2
votes
1answer
295 views

aufs with lower writable branch

I'm trying to hide some directories on a mounted file system (it's not about security, just aesthetics). I've mounted the file system regularly on /mnt/data and wanted to use aufs to overlay a ...