Questions tagged [readwrite]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
32 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
48 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 ...
0
votes
1answer
55 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 ...
3
votes
1answer
80 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
111 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
41 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 ...
0
votes
1answer
213 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
893 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
62 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
2k 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
2k 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
2k 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
795 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
501 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 ...
0
votes
1answer
339 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
43 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
97 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
637 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
116 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
6k 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
682 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
156 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
617 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
182 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
1k 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
353 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 ...
1
vote
1answer
165 views

Accessing predefined kernel virtual address in raspberry-pi

Recently, I have started working on embedded system (and I don't have any prior knowledge about it), trying to gain some knowledge in this field. I am working with Raspberry-pi. I am doing bare-metal ...
1
vote
1answer
4k views

How to write raspistill image to usb drive

I want to write an image with raspistill (or video with raspivid) to a folder on an usb drive, but get an error. I connected my usb drive and found the storage location with sudo blkid: /dev/sda1. To ...
2
votes
1answer
127 views

Is anything getting written to the boot partition?

I want to maximize the lifespan of my SD card as long as possible, the Pi is looking at a everyday 10h use for several years to come. Now I would like to have the boot partition to be writable to be ...
0
votes
1answer
652 views

Why is there a difference in USB HDD speed in my two Raspberry Pis?

Summary USB drives connected to the rev2 running Raspbmc read/write twice as quickly as the rev1 running Raspbian. Why is there a difference in speed? Testing I tested the same external USB hard ...
1
vote
3answers
494 views

What type of SD cards can handle a high volume of read/write?

I am looking for SD cards for my Pi's that are going to be the most stable, as I will be doing a lot of read/write. What type of SD cards will be the most reliable and be able to sustain a high volume ...
3
votes
2answers
10k views

How do I restart a python program on my pi when it crashes? [closed]

I have a python program named endless.py. I want to restart it whenever it crashes, and write the time that it restarted, to a file named restartlog.txt. Here is my python code so far: import time, ...
4
votes
6answers
6k views

Raspbian: mount: / is busy (tried to remount sd card as read only)

Due to an sd card corruption I decided to mount the root fs as read only. Therefore, I added the 'ro' argument in /etc/fstab /dev/mmcblk0p1 /boot vfat defaults,ro 0 2 /...
2
votes
1answer
16k views

Edit read-only file (in /etc/init.d) or override settings file from /storage directory

I am having issues with lirc and remote button press repeating. I tried everything and the last thing o try is add a parameter (--repeat-filter) to a 62_eventlircd file located in /etc/init.d Problem ...
5
votes
2answers
42k views

Raspbian stuck in read-only after reboot

I'm the new owner of a Raspberry Pi and I'm having trouble with my file-system getting stuck in read-only mode after rebooting the device. Here's the hardware I'm working with: Pi: model B PSU: ...
0
votes
1answer
1k views

Python errors reading / writing files from Python executable

I'm writing a Python application that is executable. It reads and writes to a file. The application uses wx for a GUI and has been given the following permissions: chmod +x app.py When I load the ...