Questions tagged [readonly]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
32 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 ...
user avatar
  • 131
1 vote
1 answer
53 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 ...
user avatar
  • 11
0 votes
0 answers
27 views

How to turn off write protection on a micro sd card?

I came across an old micro SD card, previously received with a tablet sent by an educational content provider. I decided to delete the contents of that SD card in order to take it into my personal use....
user avatar
  • 1
0 votes
0 answers
30 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 ...
user avatar
0 votes
1 answer
66 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/...
user avatar
0 votes
0 answers
8 views

sappend flag is set, but file is read-only

I'm trying to set my /private/etc/hosts file on my Macbook (MacOS Catalina) to append-only (so I can easily add entries, but not remove them) I tried setting the sappend flag, but it doesn't quite ...
user avatar
0 votes
1 answer
66 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 ...
user avatar
  • 123
1 vote
1 answer
35 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 ...
user avatar
0 votes
0 answers
24 views

How to display information on readonly terminal

My custom system (based on fedora distro) does not expect any user input and interaction(my custom background services work without it). So to increase security I wanted to lock all terminals to read-...
user avatar
  • 111
0 votes
1 answer
62 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 ...
user avatar
  • 101
0 votes
1 answer
178 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 ...
user avatar
1 vote
1 answer
160 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 ...
user avatar
  • 2,153
0 votes
2 answers
86 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 ...
user avatar
1 vote
0 answers
33 views

inconsistency between fuser and /proc/$PID/fd

I wanted to find out what prevents the root filesystem on a certain from being remounted read-only. fuser -vm / found a few files which are supposed to be opened for writing. For example: root ...
user avatar
  • 81.9k
0 votes
1 answer
97 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 ...
user avatar
  • 309
1 vote
2 answers
140 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?
user avatar
2 votes
1 answer
73 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, ...
user avatar
1 vote
1 answer
536 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-...
user avatar
1 vote
1 answer
385 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 ...
user avatar
0 votes
0 answers
69 views

KVM: use read-only disk with Windows

I want to use a disk image with my Windows virtual machine but I don't want it to be able to write to the image at all. While setting the read-only flag in Windows is an option, I was hoping there was ...
user avatar
0 votes
0 answers
376 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 ...
user avatar
1 vote
1 answer
55 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 + ...
user avatar
7 votes
2 answers
683 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: ...
user avatar
2 votes
1 answer
110 views

In a user namespace as non-root, on a nosuid,nodev filesystem, why does a bind mount succeed but a remount fails?

In a Linux user namespace, as non-root, I bind mount /tmp/foo to itself. This succeeds. Then, I try to remount /tmp/foo to be read-only. If /tmp is mounted with nosuid or nodev, then the remount ...
user avatar
  • 1,246
0 votes
1 answer
487 views

How to make terminal read only?

How can I make a terminal read only? Example scenario to give some background-context: I know one time before (was quite awhile ago) - in Kali-Linux you could make a terminal read-only, but I cannot ...
user avatar
  • 3
0 votes
1 answer
191 views

Mounting parts of root filesystem read-only

I have an embedded device that I want to harden against data corruption due to unexpected power outages. It is a vanilla Ubuntu 20.04 LTS build with an app in a docker container on top, and I have ...
user avatar
0 votes
0 answers
240 views

Can the performance of ext4 or btrfs be improved for a read-only filesystem?

I have filesystem data sets of about 100G (4 million files and directories; more directories than files). This data is accessed read-only. Is there anything that can be done with either ext4 or btrfs ...
user avatar
  • 81.9k
0 votes
2 answers
2k views

Debian 10 buster apt update failed - Read-only file system

Auto updates are enabled on my Debian 10 buster server. I noticed however that many errors appeared when I ran apt update command manually: Err:2 http://security.debian.org/debian-security buster/...
user avatar
0 votes
1 answer
79 views

Create a "read-only" file system, that can still update packages

I would like to configure my system (raspbian) in a way that it is read-only most of the time. I have a script that runs every few days/weeks that updates all the important installed packages so I ...
user avatar
  • 135
0 votes
1 answer
971 views

How to fix Read only permission for secondary hard disk drives

I have two storage drive. 128GB SSD [installed Linux Mint] 1 Terabyte HDD [contain few ntfs drives and c drive contain Windows OS] I disabled fastboot in windows few months ago and then I am not ...
user avatar
  • 141
2 votes
0 answers
148 views

cannot open LUKS patition as read only

I have saved a whole disk image of a Debian Jessie in a image.img file using: $ dd if=/dev/sda of=/media/usbdisk/image.img This file is meant to be a backup of the whole disk. The whole partition was ...
user avatar
  • 21
1 vote
1 answer
153 views

Switch to systemd causes file system to be mounted read-only

I switched from SysVInit to systemd on my VPS and the file system has been mounted read-only ever since. Remounting the file system with mount -o remount,rw / works, but the file system is mounted ...
user avatar
0 votes
1 answer
299 views

Read-only rootfs on boot

I tried to install Void-Linux as secondary Linux on my laptop. I created a new partition for it on LVM, installed base system using XBPS method copied kernel and initramfs to my /boot partition and ...
user avatar
  • 418
0 votes
1 answer
215 views

I edited a file with the command "sudo xed /etc/fstab" and now my computer boots to the command line, how can I go back to GUI?

I was watching a video about what to do after installing Linux mint and the guy in the video said that you should run the command sudo xed /etc/fstab and substitute errors=remount-ro with errors=...
user avatar
0 votes
0 answers
65 views

Why mounting the root filsystem as readonly does not prevent it from changing?

I'm making some experiment with dm-verity and an ext4 filesystem. Basically, what I want is just to have an ext4 filesystem in read-only that never changes. I've tried: Adding ro,noatime in fstab ...
user avatar
  • 1
0 votes
0 answers
937 views

SSD stuck on read-only mode

I bought a second hand SSD. I made tests before buying it. When I got the disc, I ran its tests. I did low scan with HDTune. There was no error. The writing speed was also fine. I trusted and bought ...
user avatar
-1 votes
2 answers
189 views

can't update read-only /usr

Got /usr in a separate logic partition (LVM). If sudo apt-get update throws error "read-only". There's a way to keep it ro but allowing updates, or switching between ro and rw?
user avatar
1 vote
1 answer
457 views

How can I start tmux in a readonly environment?

I'm trying to start a tmux session in a readonly environment, but receive the error: pi@raspberry(ro):~/development$ tmux error creating /tmp//tmux-1000 (Permission denied) This raspberry pi project ...
user avatar
0 votes
1 answer
48 views

is my thumbdrive dead?

I got a 16GB Sandisk thumbdrive which was "locked" recently while transfering data, and now I can't do anything to the drive, only able to read the remain data. below here are some attempt ...
user avatar
1 vote
0 answers
902 views

Changing Timezone using timedatectl on a read only filesystem

I am trying to change timezone using timedatectl on a readonly file system. And I am unable to do so. I get an error saying unable to change timezone. I am guessing that is because it is a read-only ...
user avatar
0 votes
1 answer
659 views

Why Am I able to edit /etc/resolv.conf on a read only file system?

I have an embedded linux environment which has a read only root file system on it. I am unable to edit files and create new directory in the read only root file system as expected. However, I see that ...
user avatar
1 vote
1 answer
502 views

Ubuntu Server 20.04 (and 19.04) extremely high writes to SSD, remounted as readonly

I'm running a small home server which runs Ubuntu 20.04 (19.04 before). This server only runs docker and generally writes its data to a ZFS Pool that I mount (not really relevant for this story, just ...
user avatar
  • 11
0 votes
1 answer
1k views

root is mounted as read only filesystem but /etc/fstab looks alright [closed]

My ubuntu 18.04 boots into read only filesystem / and i really dont know why. I know, that a bad fstab can cause this problem, but my fstab looks okay: # /etc/fstab: static file system information. # #...
user avatar
0 votes
1 answer
120 views

Debian 10 Read-Only filesystem Unattended Upgrades

I have a Debian 10 (embedded) machine that has a read-only filesystem. The problem is that the following services fail: "apt-daily" and "apt-daily-upgrade". I need these services, ...
user avatar
0 votes
0 answers
347 views

Read Only root for Archlinux ARM

I am running Archlinux ARM on Raspberry Pi 3 model B. I want to use the Pi for running my mother's favourite news channel on YouTube with Firefox's kiosk mode. My mother will be the Pi's user, but ...
user avatar
  • 1,645
0 votes
0 answers
379 views

Unable to move shell schript to init.d, is in read only file-system on an embedded linux

When I do cp run-rfid-script.sh /init.d I get this error message cp: can't create '/init.d': Read-only file system How can I overcome this problem? Other info on what I am doing I have a shell ...
user avatar
1 vote
1 answer
2k views

read-only file system error tryng to mkdir into a windows containing HDD from a broken laptop

I just broke my laptop (running Windowns 10) which is the one that I use for music making. I've got another laptop without HDD and my plan was to mount the HDD into this second laptop and try to ...
user avatar
0 votes
1 answer
67 views

Network issues after setup a read only file system

I'm new to Linux (Raspbian Buster / Raspberry Pi 4 model B) and I have some network issues after setup a read only file system. I followed this guide to realize the ro fs. My raspberry is connected ...
user avatar
  • 115
0 votes
1 answer
2k views

Files became read-only in my Kali Linux

rm [EgyBest].Vikings.S04E20.BluRay.1080p.x264.mp4 rm: cannot remove '[EgyBest].Vikings.S04E20.BluRay.1080p.x264.mp4': Read-only file system Why did my simple videos or C files became read-only files?
user avatar
3 votes
1 answer
326 views

Can I mount ext4 without writing the last mountpoint to the filesystem?

I have an old ext4 disk partition that I have to investigate without disturbing it. So I copied the complete partition to an image file and mounted that image file while continuing my investigation. ...
user avatar
  • 287

1
2 3 4 5