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 [readwrite]

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

-1
votes
0answers
37 views

Raspberry pi 3 b+ doesnt read rfid tags

we are currently working on our class project that contains raspberry pi 3 b+ in which is connected rfid reader that should read tags. The thing is, it does not. We have used different tutorials but ...
0
votes
1answer
44 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
133 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
56 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
1k 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, ...
1
vote
2answers
1k 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
910 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 ...
0
votes
1answer
582 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 ...
0
votes
0answers
1k views

sd card read only

I couldnt update Rasbian anymore and started investigating. Seems my sd card 16GB is read only, all of a sudden. Cannot create any new files anywhere nor store anything. Decided to check it on the ...
1
vote
1answer
435 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
274 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
41 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
92 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
1k 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
564 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
100 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
5k 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
548 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
143 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
539 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
172 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 ...
1
vote
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
339 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
155 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
126 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
646 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
445 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
9k 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
15k 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 ...
4
votes
2answers
37k 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
948 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 ...