Questions tagged [readwrite]

referring to a file system allowing both reading and writing files.

Filter by
Sorted by
Tagged with
1 vote
0 answers
186 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?
user avatar
0 votes
2 answers
91 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 ...
user avatar
0 votes
2 answers
414 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 ...
user avatar
1 vote
0 answers
56 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....
user avatar
  • 11
0 votes
3 answers
96 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 "...
user avatar
  • 155
1 vote
2 answers
227 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, ...
user avatar
0 votes
0 answers
26 views

How to prevent reading data off the emmc of the compute module

I want to protect the contents of my eMMC flash so that it cannot simply be cloned by a third party. Is there a way prevent the PI from letting anyone read the contents of its on-board storage?
user avatar
  • 141
0 votes
0 answers
33 views

how to write data on the emmc of the Compute module 3+ in read only mode

I am working on the Compute Module 3+ with 32GB emmc.i want to write data on emmc in read only mode so my data will be safe incase of any power failure etc.
user avatar
0 votes
2 answers
140 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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
  • 61
0 votes
1 answer
55 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 ...
user avatar
  • 338
1 vote
1 answer
402 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 ...
user avatar
1 vote
0 answers
914 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-...
user avatar
2 votes
2 answers
696 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 $...
user avatar
-1 votes
1 answer
37 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, ...
user avatar
0 votes
2 answers
663 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 ...
user avatar
  • 210
2 votes
0 answers
3k 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 ...
user avatar
1 vote
0 answers
61 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 ...
user avatar
2 votes
1 answer
710 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 ...
user avatar
0 votes
0 answers
84 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 ...
user avatar
  • 57
2 votes
2 answers
554 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, ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
408 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 ...
user avatar
1 vote
0 answers
432 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 ...
user avatar
0 votes
1 answer
121 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 ...
user avatar
  • 133
1 vote
2 answers
294 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 ...
user avatar
4 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
487 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,...
user avatar
0 votes
0 answers
223 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 ...
user avatar
  • 25
1 vote
1 answer
3k 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 ...
user avatar
0 votes
2 answers
4k 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 ...
user avatar
  • 133
0 votes
0 answers
84 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 ...
user avatar
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, ...
user avatar
  • 11
2 votes
2 answers
5k 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 ...
user avatar
1 vote
2 answers
8k 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 ...
user avatar
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 ...
user avatar
  • 123
1 vote
1 answer
809 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 ...
user avatar
-1 votes
1 answer
663 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)
user avatar
2 votes
0 answers
1k 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. (...
user avatar
  • 81
1 vote
0 answers
75 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 ...
user avatar
  • 11
1 vote
0 answers
109 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 121
0 votes
0 answers
752 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 ...
user avatar
  • 188
2 votes
0 answers
149 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 ...
user avatar
  • 340
1 vote
2 answers
10k 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 ...
user avatar
  • 33
1 vote
0 answers
1k 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 ...
user avatar
1 vote
4 answers
323 views

How to know if you're writing on your SD Card?

I've read (here: Is the Raspberry Pi suitable for running continuously, 24/7?) that using a Raspberry Pi 24/7 is possible as long as you don't write too much on the SD card. So, how do you know if ...
user avatar
4 votes
1 answer
1k views

Problem when saving many files in Raspberry Pi

Guys I'm having a problem when I write/save many files in Raspberry Pi. I'm using the RaspiCam to record videos in HD and at the same time I'm collecting alot of data and writing them in XML files ...
user avatar
2 votes
2 answers
277 views

How do I use the /sys file to control the GPIO pins

I am using a Raspberry Pi 2 Model B v1.1. I have looked at the GPIO file in /sys but I don't understand how I actually turn on/ turn off GPIO ports or I set them to read in/read out, I am trying to ...
user avatar
  • 23
0 votes
1 answer
2k views

Fastest storage setup

I'm strugling a bit how I should set up my storage for the OS/root FS. As I heard an additional USB flash drive togheter with the SD card is the fastest choice. But there are other people stating that ...
user avatar