Questions tagged [readwrite]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
44 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
0answers
29 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....
0
votes
3answers
63 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 "...
0
votes
2answers
64 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, ...
0
votes
0answers
11 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?
0
votes
0answers
17 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.
0
votes
2answers
66 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 ...
0
votes
1answer
45 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
1answer
43 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
1answer
292 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
0answers
620 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
2answers
396 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
1answer
36 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
2answers
309 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 ...
2
votes
0answers
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 ...
1
vote
0answers
43 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
1answer
531 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
0answers
73 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
2answers
337 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
1answer
835 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
1answer
296 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
0answers
372 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 ...
0
votes
1answer
114 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
2answers
225 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
1answer
830 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
1answer
420 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
0answers
201 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
1answer
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 ...
0
votes
2answers
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 ...
0
votes
0answers
76 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
0answers
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
2answers
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 ...
1
vote
2answers
7k 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
1answer
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
1answer
750 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
1answer
606 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
0answers
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. (...
1
vote
0answers
72 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
0answers
108 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
1answer
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 ...
0
votes
0answers
737 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
0answers
147 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 ...
0
votes
1answer
9k 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
0answers
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 ...
1
vote
4answers
253 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 ...
4
votes
1answer
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 ...
2
votes
2answers
256 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 ...
0
votes
1answer
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 ...
2
votes
2answers
2k views

How to get a read-only Raspbian not to corrupt SD on power-loss

I need your help on this : How can I protect my read-only Raspian Raspberry pi not to corrupt SD card sectors ? Why does it ever happen and so frequently in my case ? (I did probably did something ...
3
votes
1answer
402 views

System writeprotected all the sudden

I've had Raspberry Pi running few years Arch Linux ARM 24/7. All the sudden there seems to be inability to write anything, can't create new files nor edit anything, even as root. Same applies to any ...