Skip to main content

Questions tagged [readonly]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

Why did the root file system become RO?

Approximately once every 2 months, the remote dedicated server stops working. The logs show that all logs stop being written at the same time. Can't connect via ssh. The server responds, but ...
SkyN's user avatar
  • 109
13 votes
3 answers
1k views

Why does setting a variable readonly in the outer scope prevent defining a local variable with the same name?

I've found nothing about this in all my searching. In the code below, Bar1 acts like I'd expect a "regular" variable to act (since help declare says that -g is only "seen" in ...
RonJohn's user avatar
  • 1,144
1 vote
0 answers
23 views

vgrename but without writing to storage (read-only PV)

when dealing with image backups of systems I often run into issues with the VG within the mounted backup image having the same name as the live one. Also because the backup is read-only I cannot ...
K. Frank's user avatar
  • 111
4 votes
1 answer
486 views

Why a filesystem is unmounted but still in use?

I was using ext4 filesystems for a long time, and it's the first time I see a weird behavior of ext4 filesystem. There is ext4 filesystem in /dev/dm-2 An I/O error happened in the underlying device, ...
melonfsck's user avatar
1 vote
1 answer
55 views

Linux mount and save changes to RAM (while not changing the underlying file system)

I am looking for a way to discard any changes written to a filesystem. Currently, I am mounting a file system with mount -o ro. If programs write to it, an error will be raised. I would like to change ...
user avatar
0 votes
0 answers
103 views

Linux rootfs on iSCSI: Cannot remount read-write

I have a Linux server with an ext4 rootfs on iSCSI. The iSCSI server rebooted and this interrupted the communication, which is usually not a big deal because the server is quick to restart. However, ...
teapot's user avatar
  • 19
0 votes
1 answer
84 views

Ubuntu file system read-only after Windows system restore at previous point

I am running Ubuntu 18-04 via WSL on a Windows Virtual Machine in Azure. I needed to restore the machine to a previous point, and what happened was that the Ubuntu file system is now read-only.  When ...
Eliseo Di Folco's user avatar
0 votes
1 answer
52 views

Research and Folleys/Three RO Filesystems and No Way to Get the SD Card Back Operating

I have this SD Card that has three read-only filesystems on it. I am using a Linux computer to try to erase via dd or another command tool. I am currently trying to write an image to the SD Card. ...
For Ward's user avatar
0 votes
0 answers
218 views

Debian 12 kiosk as readonly

I have a Debian 12 kiosk. It runs one single flutter app fullscreen with X for ship diagnostic data. It needs to boot fast (it does in 7secs) and is "shutdown" by power loss regularly. fsck ...
Piranha's user avatar
  • 101
-1 votes
1 answer
106 views

Is the following `readonly` use POSIX-ly correct?

I defined the following as read-only: readonly root_command='sudo -s' later used in my script as in: exec $root_command My question is, maybe I am slow or something, but I do not fully understand ...
Vlastimil Burián's user avatar
0 votes
0 answers
14 views

Laptop second ssd are read only after swapping primary win11 ssd for ubuntu22 ssd

I had dramas installing win11, ubuntu 20.04 and ubuntu 20.04 on my primary ssd. After the struggle got win11 recovered and formatted the second ssd. (new simple volume) I then replaced the primary ssd ...
user56037's user avatar
0 votes
1 answer
248 views

How to add a static IP address to a network interface using systemd.networkd, if the filesystem is read-only?

I have a situation where I'd like to add a static IP address to one of the network devices on an embedded Linux machine, via systemd.networkd. Normally I'd do that by creating a file like /etc/systemd/...
Jeremy Friesner's user avatar
0 votes
2 answers
2k views

SCP copy remote to local returns "Read-only file system" error on remote folder

I used the following command: scp -r root@IP:/home/user/remotefolder /localfolder After entering my passphrase (I'm using SSH key), I get the following error: /remotefolder: Read-only file system ...
Limerick's user avatar
0 votes
0 answers
519 views

BTRFS partition regularly becomes read-only

I have/home mounted on a btrfs partition and it regularly (after a few minutes) becomes mounted read only after which I need to reboot for it to become rw again. journalctl tell me the following: $ ...
stdcerr's user avatar
  • 2,079
0 votes
1 answer
70 views

Chagnes done to the rootfs do not redirect to the overlay set in fstab

The fstab is a link to the next fstab file: # <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ext2 ro,noauto 0 1 proc ...
קובי עיני's user avatar
0 votes
0 answers
49 views

FAT32 SD Cards and Other Removeable Drives Give Off Read Only Error and Input/Output Errors

Distro: Debian 12.0 (Bookworm) Greetings, I really need help with with an error I get on seemingly every sd card or portable storage device formatted to fat32 that I use. Basically, whenever I try to ...
Vivian's user avatar
  • 1
0 votes
1 answer
3k views

Read/write /etc with read-only filesystem

I have a setup for an embedded project where I'd like to keep the root filesystem read-only and system configuration on a read/write partition. Users cannot install programs, but they can modify ...
A. Que's user avatar
  • 643
0 votes
1 answer
85 views

Why is chmod working inconsistently between files?

I am making 3 sites in Drupal and need to frequently change the settings.php file in each website folder. This file is read-only for security reasons by default, so before I can edit it, I use: chmod ...
GeorgeCiesinski's user avatar
1 vote
0 answers
94 views

NetworkManager refuses to follow symlinks to another filesystem

We're building a pseudo-embedded system, where we're trying to replace Centos7.x with RHEL9.x (or AlmaLinux9.x). CentOS7.x used config files as scripts in /etc/sysconfig/network-scripts but RHEL9.x ...
Popup's user avatar
  • 646
0 votes
1 answer
273 views

Fstab adding data=journal crashed my Linux' ext4 upon boot, how to fix?

I changed my /etc/fstab from: UUID=f1fc7345-be7a-4c6b-9559-fc6e2d445bfa / ext4 errors=remount-ro 0 1 UUID=4966-E925 /boot/efi vfat umask=0077 ...
Vlastimil Burián's user avatar
0 votes
1 answer
777 views

How to enter and Exit out of Vim edit mode when using less?

I mostly use less when looking through logs or config files as I expect it to be read-only. However every once in a while I enter into Vim mode where I can make changes to the file I want to be read ...
MichaelE's user avatar
  • 103
1 vote
1 answer
226 views

external HDD drive become Read-only file system with wrong file system type

I have a Toshiba HDD with an ext4 file system that I have been using extensively until yesterday. Suddenly, it has become a read-only file system, and when I run fdisk -l, it shows the type as HPFS/...
iago's user avatar
  • 135
0 votes
1 answer
255 views

Plank dock shows read-only error in terminal

When I run plank dock in the terminal console I see the following errors popping up: [WARN ...] [Preferences:192] '/usr/share/themes/io.elementary.stylesheet.blueberry/plank/dock.theme' is read-only! [...
Nadu's user avatar
  • 101
0 votes
0 answers
38 views

Read-Only mode for the OS - best way to make an inaccessible SD card last longer?

It's for a book navigation device for street children, using recycled laptop LCD's where the SD card would be encapsulated in cement and very difficult to change. If the bits of an SD card are not re-...
bandybabboon's user avatar
3 votes
4 answers
366 views

Why can I still write to /dev/null even after /dev is mounted read-only?

I was surprised to discover that I can still write to /dev/null even after remounting /dev to be read-only. Here is a demonstration: # echo foo > /dev/null # echo foo > /dev/foo # mount -o ...
mpb's user avatar
  • 1,661
0 votes
1 answer
42 views

Cannot modify /lib on Gentoo live image

I am trying to install Gentoo on my laptop. The wifi included is not supported by the Linux kernel, so I found a driver for it. When I went to install the driver to /lib/modules/..., I got the error: ...
922073's user avatar
  • 3
0 votes
2 answers
38 views

How Can I Put Something in a RO FS (Linux Debian) if it will Not Boot?

I have a Debian Linux install that boots but only to a specific point... The booting stops at a firmware error. My system seems to be RO and when I boot into a "safe mode," to alter the set ...
De Funct's user avatar
  • 105
-3 votes
1 answer
944 views

How to make a drive read-only?

how to make SSD drive read-only? Linux, windows, and mac and make a way to rewrite when the drive needs to update Like rewrite CD / DVD When boot from disk can not be modified But as data disk on set ...
kc0hwa's user avatar
  • 11
0 votes
0 answers
399 views

btrfs external SSD forced read-only, will mount, some files unstable — how to recover data?

I formatted an external SSD with the btrfs filesystem and had been using it fine reading and writing to it whether I am root or the only other user. I think Pop OS did not like how the ssd was removed ...
needtowrite's user avatar
0 votes
1 answer
6k views

Centos "cannot create temp file for here-document: Read-only file system"

I am getting this error what ever I want to do on my server cannot create temp file for here-document: Read-only file system cpanel, whm and all websites are Down All my system files are read-only. I ...
alirezaashrafi's user avatar
0 votes
0 answers
2k views

cant echo or touch into file.txt Read only File system

Hi I cannot touch or Echo into file because it says Read only file system (these are the permissions from the Root directories) how to change file system so I can write files and so forth?
David 's user avatar
  • 101
2 votes
1 answer
2k views

File system goes read-only on NVMe SSD seemingly at random

I am currently running a somewhat fresh Kubuntu 22.04 install on a relatively new M.2 NVMe drive. However, I have a problem where my computer drive (I think) turns read only, causing the system to ...
Lirik's user avatar
  • 21
1 vote
1 answer
168 views

USB Drive is not detecting and is in read only mode with error NTFS signature is missing

command : sudo hdparm -r0 /dev/sdb Output : /dev/sdb: setting readonly to 0 (off) readonly = 1 (on) By any chance it will be turned off ? If yes how can we? Issue: USB is not detected. Unable to ...
Srinathiya Murugesan's user avatar
1 vote
2 answers
213 views

Read only file can be written through the network

I have a text file for which I have set chmod 444 file and I effectively see -r--r--r-- 1 blah blah 310 Aug 27 20:00 file with ls -ls. If I try to write on this file e.g. with nano I cant, this is ...
user171780's user avatar
0 votes
0 answers
451 views

List of read only filesystems

What are all the read only filesystems still in use today? I'm looking for one to create a read only archive flash drive. The only ones I know about so far are: SquashFS ISO 9660 I'm looking for ...
olfek's user avatar
  • 731
1 vote
1 answer
5k views

copy/paste not working in ubuntu22

just copied some files from /home/user/Downloads directory and tried pasting into ntfs filesystem,and got this way "could not paste files;permissions do not allow to paste files in this directory&...
techquest's user avatar
0 votes
1 answer
3k views

Managing systemd services on read-only filesystem

I am looking for strategies how to manage enabling and disabling of systemd services on a read-only filesystem. It's not possible as the multi-user.target.wants directory contents get modified. ...
chameleon's user avatar
0 votes
1 answer
697 views

My bootable pendrive turns into (read only) generic flash drive how to fix it

My booted drive has gone read only mode. no operations can be done on my drive So i was installing linux (pop_os) on my laptop. i successfully installed it on my laptop with my 8gb booted pendrive. ...
Tanuj Rarh's user avatar
2 votes
0 answers
232 views

Should only / be mounted as Read-Only for security in case of power loss, or also /boot

I have an embedded system (specifically, Google Coral with Mendel Linux), which will be running some models. I expect it to get turned off in not a secure way (basically plugging it off) mostly every ...
M.K's user avatar
  • 143
1 vote
1 answer
2k views

Cannot install packages, error: E: Sub-process /usr/bin/dpkg returned an error code (2)

I already few days cannot install any packages, I getting this error: dpkg: error: unable to access the dpkg database directory /var/lib/dpkg: Read-only file system E: Sub-process /usr/bin/dpkg ...
KKL344's user avatar
  • 11
0 votes
0 answers
709 views

Read-only NTFS flash drive refuses to format

I have this SanDisk Cruzer Edge where it's a write-protected NTFS partition that I got from my dad as I needed a flash drive. I tried using GParted, didn't work, I saw something online that used the ...
sgal5208's user avatar
2 votes
1 answer
3k views

Mount root filesystem with user permission using sshfs

I want to use sshfs to mount filesystem folder on my machine (let's say ~/home). I would like to be able to edit files inside the / folder that got mounted using any editor (for example, edit /etc/...
23176xsk's user avatar
0 votes
1 answer
884 views

How to run a process with read-only permissions?

I am running a bunch of python3 scripts containing programming assignments. I'd like to run them on a machine such that they are unable to modify (add/remove/write-to) the file system. Is there a way ...
hazrmard's user avatar
  • 123
1 vote
1 answer
107 views

Can ls show read-only files in a specific color?

I like using ls --color=auto and I know how to use dircolors to change the colors of ls's output. I want ls to display read-only files in a color different than "normal" files but don't see ...
David Levner's user avatar
0 votes
1 answer
237 views

Installing linux mint on pc with hybrid drive, ssd is read only (no dual boot)

I'm attempting to install linux mint on my pc with a hybrid drive system (SSD and disk); not dual boot. I'm booting linux mint from a usb and install is erroring on grub install, but says the ...
Jason's user avatar
  • 101
0 votes
1 answer
1k views

Push contents of a read-only file system to remote git repo

I have on system A a (remote, read-only mounted from server B via sftp/sshfs) filesystem with data on it that needs to be pushed to a remote git repository regularly. I was not able to find a git ...
Alexander Stumpf's user avatar
1 vote
1 answer
856 views

"systemd-tmpfiles-setup.service" slow on read-only filesystem

On a headless embedded computer (booting on a read-only filesystem), I see that systemd-tmpfiles-setup.service is rather slow, and prevents other services to start earlier (I checked with systemctl ...
Basj's user avatar
  • 2,549
0 votes
2 answers
502 views

Unable to format or use two USB flash drives

I have 2 USB's I'm unable to use... One went out a Month ago and the second followed suit yesterday. The USB's are Supersonic RAGE Elite 128GB drives and I've tried everything I can think of through ...
Austin Reed 's user avatar
0 votes
1 answer
399 views

Can not delete files

I copied some files from a DVD using the 'cp -a' command. Now, I can't delete any of the copied files. I set selinux to "permissive" to remove that as source of the problem. Here is what ...
Garnet's user avatar
  • 398
1 vote
2 answers
1k views

Assigning value to readonly variable during declaration

Is the following type of readonly variable definition valid?: #!/bin/sh readonly a=1 readonly b=1 readonly c=$((a+b)) Is this type of declaration in combination with assignment allowed/recommended?
Rahul Bharadwaj's user avatar

1
2 3 4 5 6