Questions tagged [readonly]
The readonly tag has no usage guidance.
259
questions
0
votes
1
answer
29
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/...
-1
votes
1
answer
80
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
...
0
votes
0
answers
42
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:
$ ...
0
votes
1
answer
40
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 ...
0
votes
0
answers
20
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 ...
0
votes
1
answer
141
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 ...
0
votes
1
answer
44
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 ...
1
vote
0
answers
26
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 ...
0
votes
1
answer
69
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 ...
0
votes
1
answer
85
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 ...
1
vote
1
answer
76
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/...
0
votes
1
answer
78
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!
[...
0
votes
0
answers
24
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-...
3
votes
4
answers
179
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 ...
0
votes
0
answers
130
views
Overlay as root - can I change it to read-only?
I have an SBC onto which I installed Debian Bullseye.
Now, I wish to make it as proof-as-possible to power-recycles, and I'm thinking on setting the rootfs read-only: that way no file on rootfs can go ...
0
votes
1
answer
30
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: ...
0
votes
2
answers
24
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 ...
0
votes
0
answers
110
views
HDD randomly goes Read Only on Ubuntu
I have a system with one SSD and one HDD attached. The Ubuntu 22.04.1 LTS has been installed on the SSD. The HDD has a few partitions and one partition has Windows 10 installed as well. The dual boot ...
-3
votes
1
answer
382
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 ...
0
votes
0
answers
243
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 ...
0
votes
1
answer
3k
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 ...
0
votes
0
answers
812
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?
0
votes
0
answers
18
views
where is shm_dir defined
I have problems using shm_open, from what I've read here I understood that shm_open is the same as the regoular open just adding shm_dir before.
My question is: how can I set that specific value that ...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
74
views
Not able to add user to system with readonly fs in ubuntu linux
According to the requirement I want to add a user to an OS where the / is mounted as readonly. As we know that the OS will not be able to create lock files and edit passwd files the operation fails.
...
0
votes
0
answers
285
views
Repair of very stubborn readonly filesystem error after sfill on SSD
I did an sfill command on an SSD, and during that connected a drive, so the Ubuntu thusly spat out some error and apparently (which I saw at next reboot) went into "read-only filesystem" ...
1
vote
1
answer
118
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 ...
1
vote
2
answers
147
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 ...
0
votes
0
answers
172
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 ...
1
vote
1
answer
4k
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&...
0
votes
1
answer
1k
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.
...
0
votes
1
answer
236
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. ...
2
votes
0
answers
75
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 ...
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 ...
0
votes
0
answers
479
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 ...
1
vote
1
answer
1k
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/...
0
votes
1
answer
743
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 ...
1
vote
1
answer
94
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 ...
0
votes
1
answer
191
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 ...
0
votes
1
answer
973
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 ...
1
vote
1
answer
583
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 ...
0
votes
2
answers
333
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 ...
0
votes
1
answer
377
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 ...
1
vote
2
answers
954
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?
2
votes
1
answer
134
views
How do I create linux system that will not save changes
Is there a way to create linux-based system (best would be centOS), that would be tabula rasa after every reboot ?
The system would only save changes during runtime. So I could install packages, ...
1
vote
1
answer
6k
views
Removing write protection on a usb drive
I have an usb flash-drive that is write protected since a system crash. In the dmesg, the device write protection is first off, then it is turned on.
Here is the dmesg:
sd 2:0:0:0: [sdb] 60566016 512-...
1
vote
1
answer
842
views
How to install SELinux policy for guix-daemon.service on Fedora?
After installing Guix, how do I install the bundled SELinux policy, which is intended to allow the guix-daemon.service to run?
To install Guix 1.3.0 on Fedora 34 Workstation, I used the shell ...
0
votes
1
answer
3k
views
How to mount an LVM from Read-only to Read and Write
I have a VM with an LVM. Occasionally when updates are performed, and the system has restarted it will go into a read-only state. This is an issue because I perform daily backups.
Unfortunately, for ...
1
vote
1
answer
236
views
Privilege drop: Allow readonly access to file for unprivileged process on a readonly file system
An ideally least privileged process should be able to have readonly access to data on a filesystem, which itself is readonly. Hence this is the situation
root@linux# ###(1) filesystem is untrusted + ...
7
votes
2
answers
1k
views
Bash variables do not expand inside array if declare is used
Recently I decided to read a bit more on the bash built-ins declare, local, and readonly, which led me to switch from:
local variable_name
variable_name='value'
readonly variable_name
To:
...