Questions tagged [readwrite]
referring to a file system allowing both reading and writing files.
66
questions
1
vote
0
answers
27
views
Setting up "read-mostly" / "write-rarely" system - minimising writes as much as possible
Per the title - I've seen all the stuff about using read-only filesystems and overlay filesystem but there's drawbacks with that - either you have to use multiple partitions, have some method of ...
1
vote
2
answers
171
views
Python script will not write out file when scheduled (cron or bash.rc)
I have a python script to record a .mp4 file with picamera2 which executes and save correctly when run through the editor (thonny) and through the terminal. However, when I schedule it through crontab ...
1
vote
0
answers
121
views
How do I alter write permissions from root to specific user on a Samba raspberry pi nas using an exfat drive?
I've set up a nas with a raspberry pi and an exfat drive.
Unfortunately I can only read from my computer and not write since only root has write permissions on the drive and I cannot alter them using '...
0
votes
0
answers
128
views
Getting a "error creating userdata cloudinit file on FAT partition" on Rpi Imager while writing ubuntu server
trying to write a UBUNTU SERVER 22.04.01 for a raspberry PI 400 but it is always giving this error regardless of what SD card I use.
Steps:
Launch Rpi Imager
Select General OS -> Ubuntu -> ...
0
votes
1
answer
32
views
What is better to write/read to the USB or the SD card in terms of speed and reliability?
I have been using both the SD card and the USB drive to save large files (videos) over a long period of time (weeks) and wondering what is best (and why). I have had problem with both (lags, corrupted ...
1
vote
0
answers
280
views
Flush/forget all changes to OverlayFS with read-only SD
raspi-config has the ability to enable the Overlay File System so that no changes are saved to the SD card. That is fantastic, but it seems the changes are saved in RAM. The problem is, when the Pi ...
1
vote
1
answer
635
views
What read protection method is available in RP2040?
I went through the data sheet but could not find any specific details about read protection. If anyone has worked on that specific area in RP2040, then can you please give your inputs about it?
0
votes
2
answers
579
views
Is it possible to write to file located in windows directory using Node-Red via ssh?
I log into my raspberry pi via ssh. I am trying to read and write to a file located in my C drive using Node-Red. However when I deploy the Node-red task, the file that I amend is not located in the C ...
0
votes
2
answers
1k
views
Could not connect to Wi-Fi after editing 'wpa_supplicant.conf' with Python script
I'm trying a solution that can change or connect to a new Wi-Fi network with a Python script. After executing the code below that changes the content of 'wpa_supplicant.conf', the change of the file ...
1
vote
0
answers
135
views
SpiDev read from BMM150 Geomagnetic Sensor
I am completely new to this topic so please excuse my mistakes.
I have this: https://www.mikroe.com/geomagnetic-click geomagnetic click with a BMM150 sensor with this datasheet: https://download....
1
vote
3
answers
174
views
How to persistent write to registers?
I'm trying to "hardware-lock" some software written for the Pi and ensure that even if someone clones the SD card, they're unable to run a particular piece of code if it's not on an "...
1
vote
2
answers
762
views
How can I use my Raspberry Pi 4 for a write intensive application?
Context
I have just found out the hard way that SD cards have a real life attainable write limit.
I use my Rasbperry Pi 4 (amongst other things) to scrape a website 24/7 with a frequency of 1 minute, ...
-1
votes
3
answers
261
views
Raspbian buster read-only system with nmcli issue - No plugin supported adding this connection
I have installed the latest version (11 Jan 2021) of Raspbian Buster OS on my Pi 4. I changed the network manager from default to nmcli (network-manager network-manager-gnome are the packages I ...
1
vote
1
answer
196
views
Disk access seems slow? [closed]
My system seems SLOW.
In addition, I've suffered file corruption, both to my FAT32 /boot/ and to the ext3 partition.
I haven't a clue why it might be slow as the SD card is a quality Phillips card ...
0
votes
1
answer
72
views
Boot from read-only USB media
I've bought a USB flash stick with a write-protect switch. I've installed and updated buster and enabled the overlay fs (also changing /boot to read-only).
The intent is to be able to boot with the WP ...
1
vote
1
answer
626
views
Raspberry Pi Imager sets the boot partition in read only mode
Later Edit: It seems there's an issue with the Imager on Linux Mint, although Mint is based on Ubuntu. Installing the OS using the command line as described here worked flawlessly
Current setup:
Image ...
1
vote
0
answers
1k
views
LibreELEC : read-only files system
I'm using PI as LibreElec for Kodi.
I'm root in SSH and trying to modify, the file /etc/pulse/default.pa or /etc/pulse/daemon.conf for PulseAudio for an other problem.
But all the directory is on read-...
2
votes
2
answers
1k
views
Unable to edit cronjob, /tmp is read-only
I am trying to make my raspberry pi automatically restart every week. But I am unable to create the cronjob as I get a error message that the temporary crontab file was unable to be created.
/home/pi $...
-1
votes
1
answer
38
views
Arduino to Pi reads high all the time [closed]
I'm trying to read a signal coming from an Arduino through a wire attached to pin 24 of the Pi. The problem is the Pi reads high all the time.
I tried to do a pull up using GPIO.setup(24,GPIO.IN, ...
0
votes
2
answers
2k
views
Change the read-only to write [closed]
I don't know why suddenly the following message has started to appear.
-bash: cannot create temp file for here-document: Read-only file system
I can't write files, only read, can't use tab to end ...
3
votes
0
answers
4k
views
Zabbix mmcblk0: Disk read/write request responses are too high
I installed Zabbix on my Raspberry Pi 4 4GB.
So, I was building my dash and noticed a different alarm.
Zabbix server mmcblk0p2: Disk read/write request responses are too high (read > 20 ms for ...
1
vote
0
answers
82
views
Adafruit MPR121 - Read/write threshold value
Please could you help me to work out how to change the threshold on the MPR121 using circuit python?
The code is here: https://github.com/adafruit/Adafruit_CircuitPython_MPR121
By editing the ...
2
votes
1
answer
1k
views
How to write 16 bit data to device address using the i2c wiringpi lib
I am trying to write 16 bit data to i2c device . As there are no registers specified to write to the slave device, I am not able to use the built-in wiringPiI2CWriteReg16 Api.
Can some one guide me ...
0
votes
0
answers
135
views
start RPI on read only with Raspbian
I want to start my RPI in read only mode to get a perfect 24/7use setup.But I need to have a graphical user interface running. For that I tried this guideline to put the SD card in read only mode. But ...
2
votes
2
answers
925
views
Boot Raspbian from write protected SD; move all data onto external USB drive
For a Raspberry 4 setup, I'd like to keep the Raspbian's system files separated from the configuration files (i.e. /etc/resolv.conf), temp files, user files and user-installed applications. This said, ...
1
vote
1
answer
2k
views
raspberry pi 4 with usb 3 adapter to sata harddrive write slower than usual
I have a 2.5 inch SATA HDD hooked up to a UGREEN USB 3 to SATA connector.
The HDD is formatted as NTFS.
On my Windows PC I get write speeds of about 80 MBytes/s.
I am running OMV on the Pi 4.
On ...
0
votes
1
answer
580
views
Unable to create/delete files/folders from external hdd enclosure
I'm trying to write files to an external hard drive in an enclosure holding 4 drives, thru usb. It won't let me do anything with the drive, saying "permission denied", and I can't format it. I've got ...
1
vote
0
answers
520
views
I have a float switch, can I read GPIO and see if it's opened or closed?
It's something like this.
It gives either High or Low when only when it is closing the circuit.
Reading already closed circuit does not seem to work.
If I connect to ground it always give LOW no ...
1
vote
1
answer
137
views
Pi Zero onboard time lapse camera read only file system?
I'm trying to build an onboard time lapse camera for my motorbike using a Pi Zero and a Pi camera powered by a USB port of my 5V 2.1A charger socket which has a on/off switch.
since I'd rather avoid ...
1
vote
2
answers
411
views
Why write a text to file only works when call from terminal?
i got this simple code that writes a "abc" into a text file calles test.txt.
Now, on a Raspberry execute this code wit IDLE or Thonny does NOT work, the text file remains empty... but instead, when ...
4
votes
1
answer
2k
views
Pi 2: External HDD Randomly goes into Read Only File System Mode
I've a raspberry pi 2bplus and I've installed the latest Raspbian strectch on it. I've connected External HardDrive to the pi.
I'm running into a really weird problem that doesn't make sense to me ...
0
votes
1
answer
578
views
Unable to get to recovery mode, sd card write protected, vfs error unable to mount root fs on unknown- block(179,2)
So I've followed a whole bunch of issues here for a good few hours and I wouldn't ask here if I wasn't completely out of ideas.
So today I came home to find my rpi3 unresponsive. It's running Stretch,...
0
votes
0
answers
297
views
raspberry pi and ltc 2873 cufd (RS 232 and RS 485)
I have a raspberry pi compute module 3 on an I/O board in which gpio 12 is contolling the mode in ltc 2873. If it is ground it will be working in the RS 232 mode. so if I have to write something into ...
1
vote
1
answer
5k
views
Can't Write to Samba Share
I've a Raspberry Pi acting as a NAS server. It correctly mounts my drive and shares it through Samba, however, even though I can connect to the share and read stuff, I can't write anything to the ...
0
votes
2
answers
5k
views
read only Raspbian and microSD partitioning
is it true that if I set Raspbian as read only I can prevent any microSD corruption due to power faults, so that I can simply unplug the battery instead of the clean "Menu > Shutdown"?
if it is true ...
0
votes
0
answers
99
views
My Rasberry Pi do not let me install software because I don't have permission to write
When I want to install a package or do an apt-get update, the system returns an error like (read-only file system) can you help me please.
I have Raspbian Stretch Lite.
I did not download other ...
1
vote
0
answers
5k
views
SD Card goes into write protect mode and can't be used later [closed]
Whenever I flash the Raspbian OS into the SD card, the SD card automatically goes into write protect mode. I was trying to bring up the xvisor on the RPi3. For this, you need to build a custom boot, ...
2
votes
2
answers
6k
views
Size of serial port read size in c
I have a Raspberry Pi 3 and I'm currently use read(2) system call to read data from serial port. At this moment, I'm reading byte by byte from port with;
rc = read(uart_fd, &byte, 1);
I'm ...
1
vote
2
answers
10k
views
Raspberry Pi is always Read-Only after installing
Model: Raspberry Pi 3 B
SD: 8GB MicroSDHC
For the past couple of weeks I've been stuck with my Pi not working. I've followed numerous guides. I've downloaded Raspbian Stretch With Desktop OS from ...
2
votes
1
answer
1k
views
Trying to force OpenELEC to keep HDMI on, but fs is readonly
My question is like this one: How do I force the Raspberry Pi to turn on HDMI? , except for OpenELEC and not Raspbmc.
Basically I have a homemade media center Raspberry PI 3 with OpenELEC/KODI ...
1
vote
1
answer
883
views
Green Led (ACT) is blinking for mmc0 without SD card activity
The green led (ACT) on my Raspberry Pi 3 is set to mmc0 to flash on SD card activity via
echo mmc0 |sudo tee /sys/class/leds/led0/trigger
However, it flashes much more often (randomly every few ...
-1
votes
1
answer
780
views
Edit read-only XML file in Pi
I want to edit one XML file in Pi 3.
I used the command vi to edit it, but at the end I am not able to save it, it gives me an error
E45: 'readonly' option is set (add ! to override)
2
votes
0
answers
2k
views
Controlling 3 axis brushless gimbal motors
I am new to using the Raspberry Pi 3 and trying to control brushless gimbal motors with encoders to "look around"
Using I2C, I have gotten them to read its orientation from BaseCam's Simple BGC GUI. (...
1
vote
0
answers
81
views
Read notepad text from attached flash-drive. raspberry pi text editor shows 2 or 3 strange characters
I want to Read notepad text from from my laptop via my flash-drive when attached to my raspberry pi. The raspberry pi text editor shows 2 or 3 strange characters only. Putting the flash-drive into my ...
1
vote
0
answers
115
views
Reading / writing to USB storage on a Pi
I set up my Raspberry Pi about 6 months ago, (October) and everything seemed to be working fine where I could using Tight VNC to remotely access it and download torrents e.t.c.
However, eventually ...
0
votes
1
answer
3k
views
SPI using SpiDev with LIS2DH sensor, need to send 2 repeated bytes in spi.xfer2 to get data valid back
class LIS2DH_Class(object):
mySpi = 0
def __init__(self):
self.spi = spidev.SpiDev()
self.spi.open(0,0)
self.spi.max_speed_hz = 10000000 #10 Mhz is max limit on LIS2DH SPI communication
...
0
votes
0
answers
768
views
Record 1280x720 Video at > 3 Frames per seconds
I've been working on a project whereby I need to record video at a resolution of 1280x720, with at least 10 frames per second (the higher the better).
I've tried to do this using both a standard USB ...
2
votes
0
answers
152
views
How to read voltage using expander pi?
I am trying to read voltage using ADC of expander pi. when I connect one sensor the output is correct but when I connect more than 1 sensor the reading is not right. help me out on this issue. I am ...
1
vote
2
answers
12k
views
Lost all file changes after reboot
When I create any file, like .bash_aliases for example, and then I reboot using sudo reboot, all my changes are lost.
I don't know if the card is read-only (I can actually create files).
I am ...
1
vote
0
answers
2k
views
Unable to clean up mess surrounding `./usr/lib/gcc/arm-linux-gnueabihf/5' before installing another version: Read-only file system
I have the following error, how can I fix it please ?
root@raspberrypi:/usr/lib/gcc/arm-linux-gnueabihf# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading ...