Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [readonly]

The tag has no usage guidance.

-2
votes
1answer
23 views

Ubuntu do not boot [closed]

I have been workinng on ubuntu that is installed on dual boot with windows 10 for a while and yestrday a have descovred that all my files are on read only i can't modify or delete .... I found then ...
2
votes
2answers
38 views

How can I filter read only file systems out of df output?

I use df to check if any of my mounted file systems are close to getting full. I have a cron job that sends me email if any of them are getting to be above 90% full. The problem is that some ...
2
votes
3answers
52 views

Function to conditionally set a variable read-only

If I had a script which sets variables read-only to some odd values, and sets errexit because of other unsafe operations: #!/bin/bash set -e declare -r NOTIFY=$(case "$OS" in (macosx) echo ...
1
vote
1answer
23 views

rootfs readonly vs overlayfs

We need to have a read-only rootfs because of safety issues (no change to the FS in flash is possible). Other writable partition can be used with the read-only rootfs (for logs for example). In terms ...
0
votes
0answers
34 views

Make read-only system into writable failing when remounting as rw

I'm working with an IP Camera by Thundersoft, having a Qualcomm Snapdragon 625 running a Linux distribution. The filesystem by default is read only, but during the past month I've been able to skip ...
1
vote
1answer
37 views

Boot option for mounting read only and run script?

I would like to make a special boot option in grub2. When this boot option is selected as a boot target, it will mount as read only (instead of the normal read/write mode), and run a script that doesn'...
3
votes
0answers
86 views

How does the Linux kernel decide if a block device gets the read-only flag set by default?

I have a USB stick which (for about 2 months) constantly gets mounted read-only. After a bit of research and testing I found out, that the block devices of the device itself (/dev/sdc) and one of the ...
3
votes
1answer
840 views

HFS+ file system being mounted as read-only

I have an external drive that I am formatting for a Mac friend, so I set it to HFS+ using Gparted. I am unable to write any files to the drive now, even after running the mount command with the rw ...
0
votes
1answer
66 views

Is rsync completely read only?

If I use the following command: rsync -r <source> <dest> it only reads the files from source? Such that if all of the source directory were read-only, it should never have a problem, is ...
0
votes
1answer
326 views

Mount device as RW for root and RO for everyone else

I have a device I want to mount for root with full permissions and for everyone else as readonly. The man page tells me this is possible. So: sudo mkdir /mnt/foo sudo mkdir /mnt/fooReadOnly sudo ...
9
votes
3answers
3k views

Why is a file with 400 permissions seen writable by root but read-only by user?

If I create a file as an unprivileged user, and change the permissions mode to 400, it's seen by that user as read-only, correctly: $ touch somefile $ chmod 400 somefile $ [ -w somefile ] && ...
0
votes
1answer
206 views

Read-only filesystem - Considerations and Loss of Functionality

I'm creating an embedded system using Buildroot. Currently, my Buildroot configuration ensures the rootfs is remounted as read/write during startup. However I would like to remove this feature and ...
0
votes
1answer
897 views

How to fix read-only EFI system partition?

I have a EFI partition, /dev/sda1, that I was once able to install GRUB to and change the boot order with efibootmgr without issue, unfortunately now, however, I cannot I receive 'Read-only file ...
0
votes
1answer
395 views

Usability is compromised on Ubuntu because of read-only filesystem error

Over the past couple of days Ubuntu has been progressively locking me out of the the system. I can't open some programs and the last straw was a few minutes ago when it refused to save a screenshot. ...
-1
votes
1answer
71 views

Drive in readonly, after cryptsetup

I have been having some trouble with my 16Gb USB. You see I decided to attempt to encrypt it using cryptsetup, and I have done this before without problems, but his time, when I was creating a ...
0
votes
0answers
177 views

UBIFS going into Read only mode

I have a customer unit having UBIFS file system on it. Unit is up and running fine. The unit under goes a test of power cycling (AC mode-Battery mode- AC mode). At some point of time the unit(UBIFS ...
0
votes
1answer
2k views

root file system stays read-only

I am currently trying to start working with an embedded linux device (arm). When I am trying to install packages it fails saying that some /usr/... path points to a read-only filesystem. By looking ...
1
vote
1answer
27 views

Does mounting external media read only make ejecting the media unnessesary? If so, how to mount all external media read only?

I am building hardware solutions for video debriefing purposes, where users will connect and remove cameras and/or SD cards to computers all the time. I am working with Raspberry pi's (Raspbian) for ...
0
votes
1answer
64 views

Is it possible to write on a mounted hard-drive that has Apple HFS/HFS+ file system

Running the latest Tails I have attached my hard-drive that got automatically mounted. However it seems only to be read-only. Is there a way to mount it in read/write ? Or is this not possible since ...
-2
votes
1answer
2k views

Mount external HDD with writing permissions

I'm using a 2.7T Porsche Design Desktop Drive (external HDD) at work and I need to mount it on a Proxmox 4.4-13 server. Currently I have several personal info but also have around 1TB free and the ...
1
vote
0answers
223 views

Add GRUB entries when grub.cfg resides on read-only filesystem

Kali Live USB has grub.cfg on a ISO 9660 partition that is obviously read-only. I want to add more GRUB entries to pass kernel parameters needed for my laptop to boot correctly, is there any way to ...
1
vote
0answers
2k views

(Errno 30: Read-only file system) when creating python virtualenv in shared folder

I am running Ubuntu 17.10 trying to create a python virtual enviroment (named "my_virtualenv") inside my VBOX shared folder with the idea to use this python interpreter in pycharm from my Windows host....
0
votes
0answers
75 views

Restricting user to read-only access for different folders in RHEL

I have referred all the similar questions in this site, but couldn't find out the correct answer. My requirement is that I have a user testUser where he should only access different folders /etc/...
1
vote
2answers
57 views

samba user write error

I have an issue when I want to write to a raspberry smb share from my PC (linux mint). users on the raspberry: default user "pi" and new user "TF" "pi" user has write permission, but "TF" does not ...
11
votes
1answer
175 views

Unable to remount / back to read-only after package upgrade

I am using Debian Stretch. My root partition is mounted read-only. Only when I install or upgrade packages, is / remounted to read-write (by using apt hook), and then remounted back to ro. Sometimes ...
2
votes
0answers
1k views

How to properly mount other partitions (NTFS) on my Fedora FSH?

I recently switched to Fedora 27 Beta (UEFI install, dual-boot with Win 10), and I changed my /etc/fstab to include the two following lines: UUID=D0E24ECDE24EB78C /media/DownloadsBin ntfs-3g auto,...
2
votes
0answers
222 views

Can't set filesystem to rw after crash

My Mint crashed twice yesterday. Googling for frozen system with flashing caps and scroll-lock LEDs made me believe it was a hardware problem. I carefully cleaned everything, and the hardware seems to ...
2
votes
2answers
282 views

LVM volume on USB drive fails: Read-only file system

This is on a Raspberry Pi running Raspbian 8 (Linux kernel 4.9.) I have a 64 GB USB pen drive plugged (as /dev/sda) and configured as an LVM physical volume. There's only one volume group ("data") and ...
5
votes
1answer
295 views

Is `mount -o remount,ro` guaranteed to fail if there are files open for writing?

I am working on a safe and race-condition-free alternative to umount -l with removable devices: I'm planning on: umount --move under a 000 permissions directory so no more files can be opened by ...
3
votes
1answer
294 views

Device writable even after `blockdev --setro`

I want to use the functionality of umount -l, then remove the underlying device as safely as possible afterward. I can't use umount --force to unmount the filesystem as it has become invisible to new ...
1
vote
0answers
298 views

How to NFS share 'RO' for all user and 'RW' to some ip's

I'm trying to figure out how can I NFS share same directory RO for all users and RW for some IPs. OS: Arch Linux & File System: ZFS I have a config in "/etc/exports.d/testPool.aaa.exports" /...
0
votes
2answers
1k views

Can't format USB Stick

Ok so here's what happened. I had been using a USB stick to re-install Windows 10 and quickly reformat my dads laptop. Now I used the existing Windows 10 to create the live USB drive and I guess it ...
0
votes
0answers
58 views

Taking Read-Only off Microsoft USB

So I have a Microsoft USB I got that I no longer have any use for, so I was going to format it and put Ubuntu on it as a joke, but when I try to format it it gives me a "Read-Only" error and I've done ...
-5
votes
2answers
552 views

Can't save files or open programs in Kali Linux [duplicate]

I rebooted my Kali Linux which was working fine, but now most of the programs won't start, I can't save anything to any of the partitions, including the Kali Instalation partition. Whenever I try to ...
3
votes
0answers
566 views

“Read-only file system error” on Samba share, alternative share with identical options working (Linux client)

I'm experiencing a very strange problem which I've been trying to solve in the past few days and I already tried various methods of resolution to which I will get to in a moment. My home network ...
0
votes
2answers
874 views

Cannot edit or delete read only file(s) in embedded linux

i have this hardware piece: it called: airfiber x5 this device can be accessed through SSH using putty program or WinSCP to view its operating system's files it has an embedded web interface, ...
0
votes
1answer
536 views

How to build a readonly root filesystem in Arch-ARM

I have the following set-up: hw: RPi 3 Model B os: 4.4.37-1-ARCH #1 SMP armv7l GNU/Linux file system: /boot(vfat), /(ext4), /var(ext4) partitions: three; mounted: /boot, /, /var storage: mlc nand ...
1
vote
1answer
299 views

Limit the size of tmpfs with overlayroot

Recently I found out that it's possible to use overlayroot with tmpfs to create stateless readonly root. However I couldn't find any info about limiting the size of tmpfs. Is it possible?
0
votes
1answer
304 views

Samba share security changes: read-only and IP/MAC restrictions

I have a samba share and I want to make some changes for security. Today everybody can read and write my files. It's not safe. I'd like to do the these things: 1- set up for everybody just read files ...
0
votes
3answers
2k views

usb read only after formatting

I have formatted a USB flash drive, but when I try to move files from somewhere (or create one) into it, it tells me "Destination is read-only". However, I already tryied to chmod 777 /media/denis/...
2
votes
0answers
197 views

What can I do if my USB flash drive / SD-card is write-protected or read-only?

When I plug in my USB flash drive (or SD card), it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on ...
1
vote
1answer
55 views

Symlink directory with content

So I have /usr as 'ro' filesystem (cannot change that, work rules and security) and I have another directory /bigdata which is 'rw'. I'm installing some services but it needs to write in /usr/foo, so ...
1
vote
1answer
257 views

How to ensure that an NTFS disk image file is not being written to when mounted?

I have a 500GB raw disk image file on my HDD that I’ve called dysk.img and that is a result of dd'ing the contents of an external single NTFS partion drive. Its purpose is to attempt data recovery ...
0
votes
2answers
26 views

Are there any partitions that could be set to read only?

I install Debian with separate /, /boot, /usr, /usr/local, /var, /tmp, and /home partitions. Assuming some of these partitions could be placed on a drive that has a physical "read only" switch, could ...
0
votes
1answer
884 views

mounting /var as overlayfs

I'm running a read only filesystem on a raspberry pi so far everything works fine until i tried to mount /var as overlayfs for nginx and other services to work using this: VAROVRL="-o lowerdir=/var,...
2
votes
2answers
2k views

Mount ext4 read-only

This will still write to /dev/foo if there is a journal: mount -oro /dev/foo /mnt/disk How can I treat /dev/foo as read-only?
-2
votes
1answer
610 views

Showing read only /var partition on Debian

I have seen an industrial computer running Debian, to protect the flash disk from writes and have the system in a defined state after every boot, the whole disk was mounted read-only, there are no ...
0
votes
0answers
36 views

How to safely discharge UPS using workstation (prevent filesystem damage)

I'm using quite big UPS comparing to hardware attached to it in order to achieve longer uptime on UPS (up to 1h). However as maintenance practice it's advised to discharge it at least every 3 months. ...
0
votes
2answers
2k views

I can't -o “remount,rw” a usb drive

I have a usb drive. It mounts as "ro." When I mount -o "remount,rw" I see this in dmesg. hfsplus: filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. leaving read-only. The ...
1
vote
1answer
261 views

Embedded linux read only

I'm currently working on an embedded linux device, i'm trying to make the file system read only which is fairly easy to do, but the application requires read/write access to files in /etc folder (...